From patchwork Thu May 3 13:25:37 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Minas Harutyunyan X-Patchwork-Id: 10378183 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D781660159 for ; Thu, 3 May 2018 13:25:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C905C29033 for ; Thu, 3 May 2018 13:25:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BCF9229048; Thu, 3 May 2018 13:25:47 +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=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID 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 4F29729033 for ; Thu, 3 May 2018 13:25:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751088AbeECNZp (ORCPT ); Thu, 3 May 2018 09:25:45 -0400 Received: from smtprelay.synopsys.com ([198.182.37.59]:38442 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750922AbeECNZp (ORCPT ); Thu, 3 May 2018 09:25:45 -0400 Received: from mailhost.synopsys.com (mailhost1.synopsys.com [10.12.238.239]) by smtprelay.synopsys.com (Postfix) with ESMTP id A392D1E0281 for ; Thu, 3 May 2018 15:25:43 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1525353943; bh=Y+XmbicYbZ4rUlkkviHmzds08M/JWL2RUVaYhey+OoM=; h=Date:From:Subject:To:CC:From; b=X2OhBabBhLlqtHRMAwzJlePg/AWMxgVXtVhTmACKUso7/SpGQgmR2ZC2LwhBUvldo PTHL18uvxkDjmA0IxR8w3dWkU0j9brsvEDgvR1BYnMkG1tp0G6xIOE23RPHViOEKiy A8pkgeDIIQ77Fa0PwA18c7TrD35Hvgbr8lwZT+ypKnYmphAfTUSfIQmIHIwSG/bDpU t3trBy+oBW8xwUF/1gVVS0HpL+MQeRFswvq21FTkMZNCsmsZplKpj7ZceQf242VE51 lBCOQuBDavq4EozP1dLhz5SLITgIhY+nGvNKvDGhq6mPq+Kt6552D+OO1adbm2ecKd VoCdnkoshmqvQ== Received: from US01WEHTC2.internal.synopsys.com (us01wehtc2.internal.synopsys.com [10.12.239.237]) by mailhost.synopsys.com (Postfix) with ESMTP id 0DD80556C; Thu, 3 May 2018 06:25:43 -0700 (PDT) Received: from US01WEHTC1.internal.synopsys.com (10.12.239.236) by US01WEHTC2.internal.synopsys.com (10.12.239.237) with Microsoft SMTP Server (TLS) id 14.3.361.1; Thu, 3 May 2018 06:25:42 -0700 Received: from hminas-z420 (10.13.184.20) by us01wehtc1.internal.synopsys.com (10.12.239.236) with Microsoft SMTP Server (TLS) id 14.3.361.1; Thu, 3 May 2018 06:25:41 -0700 Received: by hminas-z420 (sSMTP sendmail emulation); Thu, 03 May 2018 17:25:37 +0400 Date: Thu, 3 May 2018 17:25:37 +0400 Message-ID: From: Minas Harutyunyan Subject: [PATCH] usb: dwc2: Enable BNA interrupt for IN endpoints To: Felipe Balbi , Greg Kroah-Hartman , Minas Harutyunyan , CC: John Youn 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 In DDMA mode required to enable BNA interrupt for both directions. Signed-off-by: Minas Harutyunyan --- drivers/usb/dwc2/gadget.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/usb/dwc2/gadget.c b/drivers/usb/dwc2/gadget.c index 6c32bf26e48e..c231321656f9 100644 --- a/drivers/usb/dwc2/gadget.c +++ b/drivers/usb/dwc2/gadget.c @@ -3320,8 +3320,10 @@ void dwc2_hsotg_core_init_disconnected(struct dwc2_hsotg *hsotg, hsotg->regs + DOEPMSK); /* Enable BNA interrupt for DDMA */ - if (using_desc_dma(hsotg)) + if (using_desc_dma(hsotg)) { dwc2_set_bit(hsotg->regs + DOEPMSK, DOEPMSK_BNAMSK); + dwc2_set_bit(hsotg->regs + DIEPMSK, DIEPMSK_BNAININTRMSK); + } dwc2_writel(0, hsotg->regs + DAINTMSK);