]> git.baikalelectronics.ru Git - kernel.git/commit
usb: dwc3: ep0: only change to ADDRESS if set_config() succeeds
authorFelipe Balbi <balbi@ti.com>
Mon, 22 Jul 2013 09:31:31 +0000 (12:31 +0300)
committerFelipe Balbi <balbi@ti.com>
Mon, 29 Jul 2013 10:57:03 +0000 (13:57 +0300)
commitb6848c65dcadbf9def8872be287dfb206117f6dc
treef4b6632736d94fa4a3c15a07df8027487340dc03
parent86754b51b82dd78e27e57b56e3492e097fb89ecb
usb: dwc3: ep0: only change to ADDRESS if set_config() succeeds

In case we're switching back to USB_STATE_ADDRESS
from USB_STATE_CONFIGURED (if host sends
a set configuration command for configuration
zero), we should only switch if the request
is successfully processed by the gadget driver.

Reported-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc3/ep0.c