Commit 7ac85f4a authored by Dmitry Osipenko's avatar Dmitry Osipenko Committed by Greg Kroah-Hartman

usb: chipidea: tegra: Stop managing PHY's power

Tegra's USB PHY driver now provides generic PHY init/shutdown callbacks
and thus the custom PHY management could be removed from Tegra-specific
part of the ChipIdea driver.
Signed-off-by: default avatarDmitry Osipenko <digetx@gmail.com>
Link: https://lore.kernel.org/r/20200106013416.9604-18-digetx@gmail.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f1f0c751
...@@ -83,13 +83,6 @@ static int tegra_udc_probe(struct platform_device *pdev) ...@@ -83,13 +83,6 @@ static int tegra_udc_probe(struct platform_device *pdev)
return err; return err;
} }
/*
* Tegra's USB PHY driver doesn't implement optional phy_init()
* hook, so we have to power on UDC controller before ChipIdea
* driver initialization kicks in.
*/
usb_phy_set_suspend(udc->phy, 0);
/* setup and register ChipIdea HDRC device */ /* setup and register ChipIdea HDRC device */
udc->data.name = "tegra-udc"; udc->data.name = "tegra-udc";
udc->data.flags = soc->flags; udc->data.flags = soc->flags;
...@@ -109,7 +102,6 @@ static int tegra_udc_probe(struct platform_device *pdev) ...@@ -109,7 +102,6 @@ static int tegra_udc_probe(struct platform_device *pdev)
return 0; return 0;
fail_power_off: fail_power_off:
usb_phy_set_suspend(udc->phy, 1);
clk_disable_unprepare(udc->clk); clk_disable_unprepare(udc->clk);
return err; return err;
} }
...@@ -119,7 +111,6 @@ static int tegra_udc_remove(struct platform_device *pdev) ...@@ -119,7 +111,6 @@ static int tegra_udc_remove(struct platform_device *pdev)
struct tegra_udc *udc = platform_get_drvdata(pdev); struct tegra_udc *udc = platform_get_drvdata(pdev);
ci_hdrc_remove_device(udc->dev); ci_hdrc_remove_device(udc->dev);
usb_phy_set_suspend(udc->phy, 1);
clk_disable_unprepare(udc->clk); clk_disable_unprepare(udc->clk);
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment