From patchwork Fri Nov 2 15:29:41 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Artur Petrosyan X-Patchwork-Id: 10665687 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A177B13BF for ; Fri, 2 Nov 2018 15:29:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8E9F72C16A for ; Fri, 2 Nov 2018 15:29:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 810642C177; Fri, 2 Nov 2018 15:29:50 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5E1E82C16A for ; Fri, 2 Nov 2018 15:29:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726098AbeKCAhP (ORCPT ); Fri, 2 Nov 2018 20:37:15 -0400 Received: from smtprelay2.synopsys.com ([198.182.60.111]:34792 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726085AbeKCAhO (ORCPT ); Fri, 2 Nov 2018 20:37:14 -0400 Received: from mailhost.synopsys.com (mailhost1.synopsys.com [10.12.238.239]) by smtprelay.synopsys.com (Postfix) with ESMTP id EAF7D10C057E; Fri, 2 Nov 2018 08:29:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1541172587; bh=l2vNEl70Ny4yk5CJhnjL156mceOgdFxjfjNjoPGmSsU=; h=Date:From:Subject:To:CC:From; b=hE5DtGzTEOH28zlJIxg8N0ocnniLa2fx0D5/1cOpukMtKoQZfe6dQ7MN4ITUTgDBD /1NhJL7JqSqN77M2kHqL2gJflAiz0E72z+O4VmMzLaO9mAVzzTJhFWjixvdrfnlhug FK5NvFDPnNMR+FEG3U/E5wdxinv/V2W21QwEYSN9oigfg9L0GSNxSggDsTdavXOcGb +crroFRCjvlaEGyu/7t3C7SuZVgeiR8oeCum1LJVH4h7O7xWysM3Cf1BsjDLmVTuaD I8bJJTMTRzx01EPfET2vppM3TpnoOEra8AmJBzl0S/Z83gBcdck5spRI7CU1I/hbFX dYGjIR6Wu++Jw== Received: from US01WXQAHTC1.internal.synopsys.com (us01wxqahtc1.internal.synopsys.com [10.12.238.230]) by mailhost.synopsys.com (Postfix) with ESMTP id D54055E3A; Fri, 2 Nov 2018 08:29:47 -0700 (PDT) Received: from US01WEHTC1.internal.synopsys.com (10.12.239.236) by US01WXQAHTC1.internal.synopsys.com (10.12.238.230) with Microsoft SMTP Server (TLS) id 14.3.408.0; Fri, 2 Nov 2018 08:29:47 -0700 Received: from arturp-ubuntu (10.13.184.20) by us01wehtc1.internal.synopsys.com (10.12.239.236) with Microsoft SMTP Server (TLS) id 14.3.408.0; Fri, 2 Nov 2018 08:29:46 -0700 Received: by arturp-ubuntu (sSMTP sendmail emulation); Fri, 02 Nov 2018 11:29:41 -0400 Date: Fri, 2 Nov 2018 11:29:41 -0400 Message-ID: From: Artur Petrosyan Subject: [PATCH v1 0/2] usb: dwc2: gadget: Fix Service Interval support. To: Felipe Balbi , Greg Kroah-Hartman , Minas Harutyunyan , CC: John Youn , Artur Petrosyan , Grigor Tovmasyan MIME-Version: 1.0 X-Originating-IP: [10.13.184.20] Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 1. This patch set fixes WkupAlert interrupt handler. 2. Adds support to accept LPM token when TxFIFO is not empty. NOTE: Request to add this patch set on "tag: usb-for-v4.20" Changes from V0: - Add Fixes: tag in "56f25126ae1f usb: dwc2: gadget: Fix WkupAlert interrupt handler." - Modify patch description of "47df165e6d0f usb: dwc2: gadget: Accept LPM token when TxFIFO is not empty" - Fix and modify some register definitions in the same patch changed from #define GLPMCFG_RETRY_CNT_0 21 #define GLPMCFG_RETRY_CNT_1 22 #define GLPMCFG_RETRY_CNT_2 23 to #define GLPMCFG_LPM_ACCEPT_CTRL_CONTROL BIT(21) #define GLPMCFG_LPM_ACCEPT_CTRL_ISOC BIT(22) - Set GLPMCFG_LPM_ACCEPT_CTRL_ISOC bit in GLPMCFG register in dwc2_gadget_init_lpm function. Artur Petrosyan (2): usb: dwc2: gadget: Fix WkupAlert interrupt handler. usb: dwc2: gadget: Accept LPM token when TxFIFO is not empty drivers/usb/dwc2/gadget.c | 3 ++- drivers/usb/dwc2/hw.h | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-)