]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - releases/2.6.38.8/usb-gadget-at91sam9g20-fix-end-point-max-packet-size.patch
Fixes for 4.19
[thirdparty/kernel/stable-queue.git] / releases / 2.6.38.8 / usb-gadget-at91sam9g20-fix-end-point-max-packet-size.patch
CommitLineData
1c258d2c
GKH
1From bf1f0a05d472e33dda8e5e69525be1584cdbd03a Mon Sep 17 00:00:00 2001
2From: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
3Date: Fri, 13 May 2011 17:03:02 +0200
4Subject: usb/gadget: at91sam9g20 fix end point max packet size
5
6From: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
7
8commit bf1f0a05d472e33dda8e5e69525be1584cdbd03a upstream.
9
10on 9g20 they are the same as the 9260
11
12Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
13Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
14Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15
16---
17 drivers/usb/gadget/at91_udc.c | 2 +-
18 1 file changed, 1 insertion(+), 1 deletion(-)
19
20--- a/drivers/usb/gadget/at91_udc.c
21+++ b/drivers/usb/gadget/at91_udc.c
22@@ -1767,7 +1767,7 @@ static int __init at91udc_probe(struct p
23 }
24
25 /* newer chips have more FIFO memory than rm9200 */
26- if (cpu_is_at91sam9260()) {
27+ if (cpu_is_at91sam9260() || cpu_is_at91sam9g20()) {
28 udc->ep[0].maxpacket = 64;
29 udc->ep[3].maxpacket = 64;
30 udc->ep[4].maxpacket = 512;