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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 20 Dec 2013 15:45:08 +0000 (07:45 -0800)
commit82628480bdbe8eba0f39ede6ee9b540c3a729f72
tree99223a26616eb2ef3d2c10b8fac434af5f6bbfe8
parente6303463eee8685f5b7d7a1b58f6f7ff1518d3af
usb: gadget: composite: reset delayed_status on reset_config

commit 2bac51a1827a18821150ed8c9f9752c02f9c2b02 upstream.

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.

Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/composite.c