OSDN Git Service

phy: qcom-qmp: Enable pipe_clk before PHY initialization
authorManu Gautam <mgautam@codeaurora.org>
Wed, 2 May 2018 21:06:09 +0000 (02:36 +0530)
committerKishon Vijay Abraham I <kishon@ti.com>
Sun, 20 May 2018 16:21:27 +0000 (21:51 +0530)
commitfdf37e1a1f050c5f03fbede28cc1b48f3cc80705
tree344b07b38a139b3145a1510a25c47bfc443725d3
parent52113be1c6e92f7b99ed15ed908a10ac333ce6a9
phy: qcom-qmp: Enable pipe_clk before PHY initialization

QMP PHY for USB/PCIE requires pipe_clk for locking of
retime buffers at the pipe interface. Driver checks for
PHY_STATUS without enabling pipe_clk due to which
phy_init() fails with initialization timeout.
Though pipe_clk is output from PHY (after PLL is programmed
during initialization sequence) to GCC clock_ctl and then fed
back to PHY but for PHY_STATUS register to reflect successful
initialization pipe_clk from GCC must be present.
Since, clock driver now ignores status_check for pipe_clk on
clk_enable/disable, driver can safely enable/disable pipe_clk
from phy_init/exit.

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