usb: gadget: composite: Clear "suspended" on reset/disconnect
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 26 Jul 2019 04:59:03 +0000 (14:59 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Sep 2019 08:20:44 +0000 (10:20 +0200)
commite95debe397986f68d38c6075b7ef89bf81316b5b
tree4c74741c333108d8feee4d23e2e9352a798d24f2
parentb441242b28637c7e37973d8b82dbbee30d872df2
usb: gadget: composite: Clear "suspended" on reset/disconnect

[ Upstream commit 602fda17c7356bb7ae98467d93549057481d11dd ]

In some cases, one can get out of suspend with a reset or
a disconnect followed by a reconnect. Previously we would
leave a stale suspended flag set.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/usb/gadget/composite.c