]> git.baikalelectronics.ru Git - kernel.git/commit
USB: dwc3: gadget: drop dead hibernation code
authorJohan Hovold <johan+linaro@kernel.org>
Tue, 4 Apr 2023 07:25:17 +0000 (09:25 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 May 2023 09:53:26 +0000 (11:53 +0200)
commitbd8ea0e8ef2d6ee0762694d5c438ac0dd6388ece
tree8a120d7aa726dc8e5c6a25a6c360528aa351dc1c
parentff0b22ab10f02dfa23421a8666075612efdf4a9b
USB: dwc3: gadget: drop dead hibernation code

[ Upstream commit bdb19d01026a5cccfa437be8adcf2df472c5889e ]

The hibernation code is broken and has never been enabled in mainline
and should thus be dropped.

Remove the hibernation bits from the gadget code, which effectively
reverts commits 03487380d08d ("usb: dwc3: workaround: bogus hibernation
events") and 314f357539c2 ("usb: dwc3: gadget: set KEEP_CONNECT in case
of hibernation") except for the spurious interrupt warning.

Acked-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Link: https://lore.kernel.org/r/20230404072524.19014-5-johan+linaro@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Stable-dep-of: 39674be56fba ("usb: dwc3: gadget: Execute gadget stop after halting the controller")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/usb/dwc3/gadget.c