Hi,
It does not solve the problem. When I wrote my patch (usb: gadget: add
"maxpacket_limit" field to struct usb_ep) I didn't noticed that original
code sets maxpacket values to field of struct at91_ep, not struct
usb_ep. Function usb_ep_set_maxpacket_limit() should not be used in this
place. Init
commit e117e742 (usb: gadget: add "maxpacket_limit"
field to struct usb_ep) added a build warning to
at91_udc when it passed the wrong argument to
usb_ep_set_maxpacket_limit().
Fix this by passing correct argument.
Signed-off-by: Felipe Balbi
---
drivers/usb/gadget/at91_udc.c | 14 +++--