You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Commits 7b8ef22 ("usb: xhci: plat: Add USB phy support") and
9134c1f ("usb: xhci: plat: Add USB 3.0 phy support") added support
for looking up legacy PHYs from the sysdev devicetree node and
initialising them.
This broke drivers such as dwc3 which manages PHYs themself as the PHYs
would now be initialised twice, something which specifically can lead to
resources being left enabled during suspend (e.g. with the
usb_phy_generic PHY driver).
As the dwc3 driver uses driver-name matching for the xhci platform
device, fix this by only looking up and initialising PHYs for devices
that have been matched using OF.
Note that checking that the platform device has a devicetree node would
currently be sufficient, but that could lead to subtle breakages in case
anyone ever tries to reuse an ancestor's node.
Fixes: 7b8ef22 ("usb: xhci: plat: Add USB phy support")
Fixes: 9134c1f ("usb: xhci: plat: Add USB 3.0 phy support")
Cc: [email protected] # 4.1
Cc: Maxime Ripard <[email protected]>
Cc: Stanley Chang <[email protected]>
Signed-off-by: Johan Hovold <[email protected]>
Tested-by: Stefan Eichenberger <[email protected]>
Tested-by: Stanley Chang <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
0 commit comments