[PATCH v2 4/7] usb: gadget: udc: atmel: use 1 bank endpoints for control transfers

From: cristian.birsan
Date: Fri May 15 2020 - 07:16:45 EST


From: Cristian Birsan <cristian.birsan@xxxxxxxxxxxxx>

Use 1 bank endpoints for control transfers

Signed-off-by: Cristian Birsan <cristian.birsan@xxxxxxxxxxxxx>
---
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 beb7246935a8..a73b0e78a357 100644
--- a/drivers/usb/gadget/udc/atmel_usba_udc.c
+++ b/drivers/usb/gadget/udc/atmel_usba_udc.c
@@ -1061,6 +1061,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:
--
2.17.1