Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

clk: qcom: Skip halt checks on gcc_usb3_phy_pipe_clk for 8998

The gcc_usb3_phy_pipe_clk is generated by the phy, but is also used by
the phy during init. The clock needs to be enabled during the init
sequence, but may not be fully active until after the init sequence is
complete. This causes a catch-22 if the clock status is checked during
enable. As a result, skip the checks to avoid the troubling situation.

Signed-off-by: Jeffrey Hugo <jhugo@codeaurora.org>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>

authored by

Jeffrey Hugo and committed by
Stephen Boyd
5f2420ed 0c8ff625

+1 -1
+1 -1
drivers/clk/qcom/gcc-msm8998.c
··· 2544 2544 2545 2545 static struct clk_branch gcc_usb3_phy_pipe_clk = { 2546 2546 .halt_reg = 0x50004, 2547 - .halt_check = BRANCH_HALT, 2547 + .halt_check = BRANCH_HALT_SKIP, 2548 2548 .clkr = { 2549 2549 .enable_reg = 0x50004, 2550 2550 .enable_mask = BIT(0),