]> git.baikalelectronics.ru Git - kernel.git/commit
usb: dwc3: disable USB core PHY management
authorJohan Hovold <johan+linaro@kernel.org>
Tue, 6 Sep 2022 12:07:02 +0000 (14:07 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 15 Sep 2022 10:04:53 +0000 (12:04 +0200)
commit40d299a8273b95a507eec3fe809d28fdb7374981
tree60e9345495ca65fd7929625f54bba463410e67fd
parent9131fb2b7e8fb0ed55e0b23594f255f42cdc68bc
usb: dwc3: disable USB core PHY management

commit 927616b960e021f51026bfa1a7abbfbc6d3a725e upstream.

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 4a952938703c ("usb:
host: xhci-plat: add platform data support") and 7b30aeaedf42 ("usb:
host: xhci-plat: add priv quirk for skip PHY initialization") to
propagate the setting for now.

Fixes: e6013a6acb11 ("usb: add a flag to skip PHY initialization to struct usb_hcd")
Fixes: 87038c6d01c0 ("usb: core: hcd: integrate the PHY wrapper into the HCD core")
Tested-by: Matthias Kaehlcke <mka@chromium.org>
Cc: stable <stable@kernel.org>
Reviewed-by: Matthias Kaehlcke <mka@chromium.org>
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Link: https://lore.kernel.org/r/20220825131836.19769-1-johan+linaro@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
[ johan: adjust context to 5.15 ]
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc3/host.c