usb: host: ehci-tegra: Stop managing PHY's power
authorDmitry Osipenko <digetx@gmail.com>
Mon, 6 Jan 2020 01:34:15 +0000 (04:34 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jan 2020 15:21:59 +0000 (16:21 +0100)
There is no need to use usb_phy_set_suspend during of driver's probe
because now PHY driver enables hardware during of PHY's initialization.

Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Link: https://lore.kernel.org/r/20200106013416.9604-20-digetx@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ehci-tegra.c

index 32483bef046b244fcf1f5656c4242839af1858ce..1eb94205a5acf171e5821f45d3b438a79bf66147 100644 (file)
@@ -480,12 +480,6 @@ static int tegra_ehci_probe(struct platform_device *pdev)
        }
        u_phy->otg->host = hcd_to_bus(hcd);
 
-       err = usb_phy_set_suspend(hcd->usb_phy, 0);
-       if (err) {
-               dev_err(&pdev->dev, "Failed to power on the phy\n");
-               goto cleanup_phy;
-       }
-
        irq = platform_get_irq(pdev, 0);
        if (!irq) {
                dev_err(&pdev->dev, "Failed to get IRQ\n");