Message ID | 1438701646-7876-3-git-send-email-kishon@ti.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Tue, Aug 04, 2015 at 08:50:41PM +0530, Kishon Vijay Abraham I wrote:
> No functional change. Previously omap_control_phy_power() was used to power
there is a slight functional change. You moved PHY power off from before
to after pm_runtime_enable(), clk_prepare_enable() and creation of the
PHY device. That ought to have a slight impact on how the driver
behaves.
Hi, On Tuesday 04 August 2015 09:36 PM, Felipe Balbi wrote: > On Tue, Aug 04, 2015 at 08:50:41PM +0530, Kishon Vijay Abraham I wrote: >> No functional change. Previously omap_control_phy_power() was used to power > > there is a slight functional change. You moved PHY power off from before > to after pm_runtime_enable(), clk_prepare_enable() and creation of the > PHY device. That ought to have a slight impact on how the driver > behaves. okay. I'll modify the commit log. I think it won't impact the functionality as such since the ->init and ->power_on callbacks won't be invoked at that point. Thanks Kishon -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
On Wed, Aug 05, 2015 at 07:42:24PM +0530, Kishon Vijay Abraham I wrote: > Hi, > > On Tuesday 04 August 2015 09:36 PM, Felipe Balbi wrote: > > On Tue, Aug 04, 2015 at 08:50:41PM +0530, Kishon Vijay Abraham I wrote: > >> No functional change. Previously omap_control_phy_power() was used to power > > > > there is a slight functional change. You moved PHY power off from before > > to after pm_runtime_enable(), clk_prepare_enable() and creation of the > > PHY device. That ought to have a slight impact on how the driver > > behaves. > > okay. I'll modify the commit log. I think it won't impact the functionality as > such since the ->init and ->power_on callbacks won't be invoked at that point. all right, then
diff --git a/drivers/phy/phy-ti-pipe3.c b/drivers/phy/phy-ti-pipe3.c index 072d308..9782c16 100644 --- a/drivers/phy/phy-ti-pipe3.c +++ b/drivers/phy/phy-ti-pipe3.c @@ -474,8 +474,6 @@ static int ti_pipe3_probe(struct platform_device *pdev) if (ret) return ret; - omap_control_phy_power(phy->control_dev, 0); - platform_set_drvdata(pdev, phy); pm_runtime_enable(phy->dev); @@ -494,6 +492,8 @@ static int ti_pipe3_probe(struct platform_device *pdev) return PTR_ERR(generic_phy); phy_set_drvdata(generic_phy, phy); + ti_pipe3_power_off(generic_phy); + phy_provider = devm_of_phy_provider_register(phy->dev, of_phy_simple_xlate); if (IS_ERR(phy_provider))