Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

USB: EHCI: ehci-mv: make the PHY optional

We may be using a NOP transceiver and those are treated specially by the
USB core and return -ENODEV with devm_phy_get().

Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Link: https://lore.kernel.org/r/20191221065008.266445-3-lkundrak@v3.sk
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Lubomir Rintel and committed by
Greg Kroah-Hartman
cf94ca49 eb148836

+1 -1
+1 -1
drivers/usb/host/ehci-mv.c
··· 116 116 ehci_mv->set_vbus = pdata->set_vbus; 117 117 } 118 118 119 - ehci_mv->phy = devm_phy_get(&pdev->dev, "usb"); 119 + ehci_mv->phy = devm_phy_optional_get(&pdev->dev, "usb"); 120 120 if (IS_ERR(ehci_mv->phy)) { 121 121 retval = PTR_ERR(ehci_mv->phy); 122 122 if (retval != -EPROBE_DEFER)