Re: [PATCH] USB: ehci-omap: Fix missing usb_phy_init() error handling
From: Greg KH
Date: Tue Dec 02 2025 - 03:30:52 EST
On Tue, Dec 02, 2025 at 04:00:27PM +0800, Haotian Zhang wrote:
> usb_phy_init() may fail if the PHY clock or regulator setup fails,
> but ehci_hcd_omap_probe() does not check its return value,
> potentially causing later operations to act on an uninitialized PHY.
>
> Add proper error checking for usb_phy_init() calls. Add a new
> error label to properly remove the hcd.
>
> Fixes: 4e5c9e6fa2d2 ("USB: ehci-omap: Tweak PHY initialization sequence")
> Fixes: 49f092198f4f ("USB: ehci-omap: Fix detection in HSIC mode")
> Signed-off-by: Haotian Zhang <vulab@xxxxxxxxxxx>
How was this found and tested?
thanks,
greg k-h