OSDN Git Service

USB: dwc3: clean up phy init error handling
authorJohan Hovold <johan+linaro@kernel.org>
Tue, 4 Apr 2023 07:25:20 +0000 (09:25 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 20 Apr 2023 08:18:22 +0000 (10:18 +0200)
commitc8e9eccf6ed29f6c20fa489286eee1059566d035
treef689db8ec7196d66165b4300840cab1d6c571ef6
parentfe296046c7219c3b156cddc90a0efaa52a5eb996
USB: dwc3: clean up phy init error handling

While there likely are no platforms out there that mix generic and
legacy PHYs the driver should still be able to handle that, if only for
consistency reasons.

Add the missing calls to shutdown any legacy PHYs if generic PHY
initialisation fails.

Note that we continue to happily ignore potential errors from the legacy
PHY callbacks...

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