phy: qcom-qusb2: Power-on PHY before initialization
authorManu Gautam <mgautam@codeaurora.org>
Tue, 16 Jan 2018 10:56:59 +0000 (16:26 +0530)
committerKishon Vijay Abraham I <kishon@ti.com>
Thu, 8 Mar 2018 08:26:07 +0000 (13:56 +0530)
commit937e17f36a32fc2ec01b9f99bac5b80acf22923c
tree2140a92b69ebaf626f0a3b1da2c71dcc1ce49eae
parent717dab9d670eb0015c40f91e105c89537abd5f6a
phy: qcom-qusb2: Power-on PHY before initialization

PHY must be powered on before turning ON clocks and
attempting to initialize it. Driver is exposing
separate init and power_on routines for this.
Apparently USB dwc3 core driver performs power-on
after init. Also, poweron and init for QUSB2 PHY
need to be executed together always, hence remove
poweron callback from phy_ops and explicitly perform
this from init, similar changes needed for poweroff.

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