linux-yocto/drivers/usb/chipidea
Fedor Pchelkin 3ec61fa704 usb: chipidea: ci_hdrc_imx: implement usb_phy_init() error handling
commit 8c531e0a8c upstream.

usb_phy_init() may return an error code if e.g. its implementation fails
to prepare/enable some clocks. And properly rollback on probe error path
by calling the counterpart usb_phy_shutdown().

Found by Linux Verification Center (linuxtesting.org).

Fixes: be9cae2479 ("usb: chipidea: imx: Fix ULPI on imx53")
Cc: stable <stable@kernel.org>
Signed-off-by: Fedor Pchelkin <pchelkin@ispras.ru>
Acked-by: Peter Chen <peter.chen@kernel.org>
Link: https://lore.kernel.org/r/20250316102658.490340-4-pchelkin@ispras.ru
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-05-02 07:44:32 +02:00
..
bits.h
ci_hdrc_imx.c usb: chipidea: ci_hdrc_imx: implement usb_phy_init() error handling 2025-05-02 07:44:32 +02:00
ci_hdrc_imx.h
ci_hdrc_msm.c
ci_hdrc_pci.c
ci_hdrc_tegra.c
ci_hdrc_usb2.c
ci.h
core.c
debug.c
host.c
host.h
Kconfig
Makefile
otg_fsm.c
otg_fsm.h
otg.c
otg.h
trace.c
trace.h
udc.c
udc.h
ulpi.c
usbmisc_imx.c