]> www.infradead.org Git - users/jedix/linux-maple.git/commit
clk: qcom: gcc-sm8550: Don't park the USB RCG at registration time
authorStephen Boyd <swboyd@chromium.org>
Mon, 19 Aug 2024 23:36:27 +0000 (16:36 -0700)
committerStephen Boyd <sboyd@kernel.org>
Thu, 29 Aug 2024 17:48:09 +0000 (10:48 -0700)
commit7b6dfa1bbe7f727315d2e05a2fc8e4cfeb779156
treedb4aaf200d19a04a1e3e44af039a192eaf13d412
parentd10eeb75168b84ed9559c58efe2756c2e0bc052a
clk: qcom: gcc-sm8550: Don't park the USB RCG at registration time

Amit Pundir reports that audio and USB-C host mode stops working if the
gcc_usb30_prim_master_clk_src clk is registered and
clk_rcg2_shared_init() parks it on XO. Skip parking this clk at
registration time to fix those issues.

Partially revert commit 01a0a6cc8cfd ("clk: qcom: Park shared RCGs upon
registration") by skipping the parking bit for this clk, but keep the
part where we cache the config register. That's still necessary to
figure out the true parent of the clk at registration time.

Fixes: 01a0a6cc8cfd ("clk: qcom: Park shared RCGs upon registration")
Fixes: 929c75d57566 ("clk: qcom: gcc-sm8550: Mark RCGs shared where applicable")
Cc: Konrad Dybcio <konradybcio@kernel.org>
Cc: Bjorn Andersson <andersson@kernel.org>
Cc: Taniya Das <quic_tdas@quicinc.com>
Reported-by: Amit Pundir <amit.pundir@linaro.org>
Closes: https://lore.kernel.org/CAMi1Hd1KQBE4kKUdAn8E5FV+BiKzuv+8FoyWQrrTHPDoYTuhgA@mail.gmail.com
Signed-off-by: Stephen Boyd <swboyd@chromium.org>
Link: https://lore.kernel.org/r/20240819233628.2074654-3-swboyd@chromium.org
Tested-by: Amit Pundir <amit.pundir@linaro.org>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/qcom/clk-rcg.h
drivers/clk/qcom/clk-rcg2.c
drivers/clk/qcom/gcc-sm8550.c