Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 1c03dfda authored by Devdutt Patnaik's avatar Devdutt Patnaik Committed by Mayank Rana
Browse files

usb: phy: qusb: Update ref_clk and ref_clk_src clock usage



GCC_QUSB_REF_CLK_EN register controls the enable/disable of the
DIFF/CML clock to the QUSB2 PHY. When using SE/CMOS clock, control
of the DIFF clk is not needed. ref_clk is optional clock but driver
is not marking ref_clk as NULL if it fails to get reference of this
clock. Hence query or update this clock reference only if devicetree
qusb2phy node is having reference to this clock.

ref_clk_src is mandatory to provide SE/CMOS or DIFF/CML based
reference clock. Hence make ref_clk_src as mandatory clock.

Also use qusb_phy_enable_clocks() API within qusb_phy_remove() API
for disabling QUSB2 PHY related clocks.

Change-Id: I697e5c718285449268d5bb32deff5d18acf0cc2a
Signed-off-by: default avatarDevdutt Patnaik <dpatnaik@codeaurora.org>
Signed-off-by: default avatarMayank Rana <mrana@codeaurora.org>
parent 74fdd731
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment