usb: gadget: composite: reset delayed_status on reset_config
authorMichael Grzeschik <m.grzeschik@pengutronix.de>
Mon, 11 Nov 2013 22:43:32 +0000 (23:43 +0100)
committerFelipe Balbi <balbi@ti.com>
Mon, 25 Nov 2013 16:54:17 +0000 (10:54 -0600)
commit2bac51a1827a18821150ed8c9f9752c02f9c2b02
tree0cba2044eb2fa51ed95c9ff7c8a3773cd50316eb
parenta655f481d83d6d37bec0a2ddfdd24c30ff8f541f
usb: gadget: composite: reset delayed_status on reset_config

The delayed_status value is used to keep track of status response
packets on ep0. It needs to be reset or the set_config function would
still delay the answer, if the usb device got unplugged while waiting
for setup_continue to be called.

Cc: stable@vger.kernel.org
Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/composite.c