]> git.baikalelectronics.ru Git - kernel.git/commit
usb: gadget: gr_udc: Return error code when trying to set ep.maxpacket > ep.maxpacket...
authorAndreas Larsson <andreas@gaisler.com>
Thu, 27 Mar 2014 15:15:58 +0000 (16:15 +0100)
committerFelipe Balbi <balbi@ti.com>
Mon, 21 Apr 2014 19:07:27 +0000 (14:07 -0500)
commit01b0fbbe783837a37c033a20a0efc61db8d36a90
tree0b7fed4b0390b1f576a2d14ac037f2370ec2e0d7
parent23b631846c8368ce35851fe6d9b67ee00e54847d
usb: gadget: gr_udc: Return error code when trying to set ep.maxpacket > ep.maxpacket_limit

Make gr_ep_enable fail properly when a call requests a larger ep.maxpacket than
ep.maxpacket_limit.

Signed-off-by: Andreas Larsson <andreas@gaisler.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/gr_udc.c