]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
USB: EHCI: ehci-mv: make the PHY optional
authorLubomir Rintel <lkundrak@v3.sk>
Sat, 21 Dec 2019 06:50:07 +0000 (07:50 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 30 Dec 2019 19:11:28 +0000 (20:11 +0100)
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>
drivers/usb/host/ehci-mv.c

index 66ec1fdf9fe7d9860c3c0d277391b430c516e339..d476a2516bf625478542e6eeb4593970d0116c23 100644 (file)
@@ -116,7 +116,7 @@ static int mv_ehci_probe(struct platform_device *pdev)
                ehci_mv->set_vbus = pdata->set_vbus;
        }
 
-       ehci_mv->phy = devm_phy_get(&pdev->dev, "usb");
+       ehci_mv->phy = devm_phy_optional_get(&pdev->dev, "usb");
        if (IS_ERR(ehci_mv->phy)) {
                retval = PTR_ERR(ehci_mv->phy);
                if (retval != -EPROBE_DEFER)