]>
Commit | Line | Data |
---|---|---|
1c258d2c GKH |
1 | From bf1f0a05d472e33dda8e5e69525be1584cdbd03a Mon Sep 17 00:00:00 2001 |
2 | From: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | |
3 | Date: Fri, 13 May 2011 17:03:02 +0200 | |
4 | Subject: usb/gadget: at91sam9g20 fix end point max packet size | |
5 | ||
6 | From: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | |
7 | ||
8 | commit bf1f0a05d472e33dda8e5e69525be1584cdbd03a upstream. | |
9 | ||
10 | on 9g20 they are the same as the 9260 | |
11 | ||
12 | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | |
13 | Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com> | |
14 | Signed-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; |