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:19:42 +0000 (10:19 +0200)
commitd023765893154158b590ca94f5f5e11df857c9a7
treed3848e7369fd5cf0b7a865f80dc1290ec06d5c3d
parent10f13d9804080db737f0b5678ac202fcbbf8e1be
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