usb: gadget: gr_udc: Fix check for invalid number of microframes
authorAndreas Larsson <andreas@gaisler.com>
Thu, 26 Jun 2014 11:07:48 +0000 (13:07 +0200)
committerFelipe Balbi <balbi@ti.com>
Fri, 27 Jun 2014 15:53:07 +0000 (10:53 -0500)
commit6ee96cc0004c084df22fc1d5d9e2cef2d38d8010
tree22bd717029f5b233d09cc972fd5a790cede7ec8a
parent7adb5c876e9c0677078a1e1094c6eafd29c30b74
usb: gadget: gr_udc: Fix check for invalid number of microframes

The value 0x3 (not 0x11) in the field for additional transaction/microframe
is reserved and should not be let through. Be clear in the error message about
what value caused the error return.

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