Re: [PATCH] usb: dwc3: disable USB core PHY management

From: Matthias Kaehlcke
Date: Thu Aug 25 2022 - 17:56:17 EST


On Thu, Aug 25, 2022 at 03:18:36PM +0200, Johan Hovold wrote:
> The dwc3 driver manages its PHYs itself so the USB core PHY management
> needs to be disabled.
>
> Use the struct xhci_plat_priv hack added by commits 46034a999c07 ("usb:
> host: xhci-plat: add platform data support") and f768e718911e ("usb:
> host: xhci-plat: add priv quirk for skip PHY initialization") to
> propagate the setting for now.
>
> Fixes: 4e88d4c08301 ("usb: add a flag to skip PHY initialization to struct usb_hcd")
> Fixes: 178a0bce05cb ("usb: core: hcd: integrate the PHY wrapper into the HCD core")
> Signed-off-by: Johan Hovold <johan+linaro@xxxxxxxxxx>

Reviewed-by: Matthias Kaehlcke <mka@xxxxxxxxxxxx>
Tested-by: Matthias Kaehlcke <mka@xxxxxxxxxxxx>

(tested on sc7x80 with '[gcc_]usb30_prim_gdsc' set to ALWAYS_ON)