phy: qcom-qmp: Power-on PHY before initialization
authorManu Gautam <mgautam@codeaurora.org>
Tue, 16 Jan 2018 10:56:58 +0000 (16:26 +0530)
committerKishon Vijay Abraham I <kishon@ti.com>
Thu, 8 Mar 2018 08:26:06 +0000 (13:56 +0530)
commit717dab9d670eb0015c40f91e105c89537abd5f6a
tree4124d20ca93a464f68aae8cecbb0249d96e075dc
parent10939b10741d2f022d5fc01915b264160395f32e
phy: qcom-qmp: Power-on PHY before initialization

PHY regulators which are enabled from power_on() must be ON
before turning-on clocks and initializing it as part of init().
As most of the core drivers perform power_on() after init(), move
PHY regulators enable to com_init() and use power_on() to
only enable pipe_clk. This pipe_clk is output from PHY and some
core drivers e.g. PCIe follow specific sequence after phy_init()
that mandates pipe_clk to be enabled from power_on() only.
On similar lines move clk_enable from init() to com_init() which
executes once for multi lane PHYs.

Signed-off-by: Manu Gautam <mgautam@codeaurora.org>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
drivers/phy/qualcomm/phy-qcom-qmp.c