From patchwork Thu Jul 23 18:49:00 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cristian Birsan X-Patchwork-Id: 11681531 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2692113B1 for ; Thu, 23 Jul 2020 18:49:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0E1DB22B47 for ; Thu, 23 Jul 2020 18:49:28 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b="YhcoKZnx" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728289AbgGWSt0 (ORCPT ); Thu, 23 Jul 2020 14:49:26 -0400 Received: from esa3.microchip.iphmx.com ([68.232.153.233]:57925 "EHLO esa3.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728262AbgGWStZ (ORCPT ); Thu, 23 Jul 2020 14:49:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1595530165; x=1627066165; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=MnRMwgeR1VP4Ff/VfkHXb0v/p9CjQoRUD0iRNqINwto=; b=YhcoKZnx/5LUFpqFoWpbhM9gdNYpTb1yzKzxGOs/vczzirIzWcYOHSWR kR3847jVgcEf+9sc/KFEzjxL2gcjc0DZuZLA6QRQPUtPq0u51FZEbk9BB tTkKZT0cu9Q5a4v/zNKDdqhbDnLoGd1eQqyfjzWRcdWosbFUhlw77Rvqm Nya2kpJRmfIEXmuczFk9nXP2HGJVoAFLiIW/rmxnsSwkeyKEFgv5GFxWB zv3uSQgUC2BUdwTcAg5uJka9rgSUqevii6uDJ3GqiR9KdzIUIclvmerp+ t/FQjYLdvA5lUDEKdaLQqqFFST1fBL0omdq2rqP8/WPAUYGKdv2KcqK84 g==; IronPort-SDR: FHDKERzMy/NtMaEsyYOzB8X7FTf07smKJe9p31CtIMtWE3yULkLer6qhpO/N9on6vsdVT+NEII FAv+LGITudw6oTM7Lj7oWX0CALiv9JDBMvUKibOqXzIw8LodE/B44QYQaDGJylXi1ZYI6C6nXf YXIey+X2qeC9GnQoNudrhTRrLZ3gFXply83Cf2Yz/iS/slpQujv9H9q3/sPFYjZy/9vtCjAr3F Bfr7rFxx9ZS1m0x1UAvVTdPKTl5i8Z//UTW5Qc5NRGsCVhLAW5fPn8N3ordja2bwV3YwjYgYub A7A= X-IronPort-AV: E=Sophos;i="5.75,387,1589266800"; d="scan'208";a="85153693" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa3.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 23 Jul 2020 11:49:25 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1979.3; Thu, 23 Jul 2020 11:48:45 -0700 Received: from cristi-P53.lan (10.10.115.15) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server id 15.1.1979.3 via Frontend Transport; Thu, 23 Jul 2020 11:48:41 -0700 From: To: , , , , , , , , , , CC: Cristian Birsan Subject: [PATCH v4 4/6] usb: gadget: udc: atmel: use 1 bank endpoints for control transfers Date: Thu, 23 Jul 2020 21:49:00 +0300 Message-ID: <20200723184902.416705-5-cristian.birsan@microchip.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200723184902.416705-1-cristian.birsan@microchip.com> References: <20200723184902.416705-1-cristian.birsan@microchip.com> MIME-Version: 1.0 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org From: Cristian Birsan Use 1 bank endpoints for control transfers Signed-off-by: Cristian Birsan --- drivers/usb/gadget/udc/atmel_usba_udc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/gadget/udc/atmel_usba_udc.c b/drivers/usb/gadget/udc/atmel_usba_udc.c index 10fa72ec8b79..59b200e32784 100644 --- a/drivers/usb/gadget/udc/atmel_usba_udc.c +++ b/drivers/usb/gadget/udc/atmel_usba_udc.c @@ -1056,6 +1056,7 @@ static struct usb_ep *atmel_usba_match_ep(struct usb_gadget *gadget, switch (usb_endpoint_type(desc)) { case USB_ENDPOINT_XFER_CONTROL: + ep->nr_banks = 1; break; case USB_ENDPOINT_XFER_ISOC: