USB: dwc3: drop dead hibernation code
authorJohan Hovold <johan+linaro@kernel.org>
Tue, 4 Apr 2023 07:25:18 +0000 (09:25 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 20 Apr 2023 08:18:22 +0000 (10:18 +0200)
commitf56d0d29b018b6c19b4d5c60e768b5f90bb20c8d
treeb6cbcf80d03b926d5d24714577103a1b2a7e063e
parentbdb19d01026a5cccfa437be8adcf2df472c5889e
USB: dwc3: drop dead hibernation code

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

Specifically, the scratch buffer DMA mapping would have been leaked on
every suspend cycle since commit 51f5d49ad6f0 ("usb: dwc3: core:
simplify suspend/resume operations") if this feature was ever enabled.

The related error handling was also broken and could have resulted in
attempts to unmap never mapped buffers, etc.

This effectively revert commit 0ffcaf3798bf ("usb: dwc3: core: allocate
scratch buffers").

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-6-johan+linaro@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc3/core.c
drivers/usb/dwc3/core.h