[qcom-next ] Keep USB3 pipe and UFS TX/RX symbol clocks unpolled - #122
Merged
varada-qcom merged 4 commits intoAug 21, 2026
Merged
Conversation
varada-qcom
reviewed
Aug 20, 2026
| GATE_CLK(GCC_PCIE_CLKREF_EN, 0xb8000, BIT(0)), | ||
| GATE_CLK_POLLED(GCC_PCIE_MSTR_AXI_CLK, 0x7900c, BIT(30), 0xaf020), | ||
| GATE_CLK_POLLED(GCC_PCIE_PIPE_CLK, 0x79018, BIT(2), 0xaf050), | ||
| /* PHY-sourced: the pipe clock only runs once the QMP PHY is started, |
There was a problem hiding this comment.
All places, comment style should be
/*
* PHY-sourced: . . .
* . . .
*/
varada-qcom
requested changes
Aug 20, 2026
The USB3 pipe clock and the UFS TX/RX symbol clocks are driven by the QMP PHY, not GCC, so their CBCR only clears CLK_OFF once the PHY is up. Polling them at GCC enable time would time out before the PHY starts. Switch GCC_USB3_PRIM_PHY_PIPE_CLK, GCC_UFS_PHY_TX_SYMBOL_0_CLK, GCC_UFS_PHY_RX_SYMBOL_0_CLK and GCC_UFS_PHY_RX_SYMBOL_1_CLK back to GATE_CLK so GCC enable does not poll the CBCR status bit. Signed-off-by: Balaji Selvanathan <balaji.selvanathan@oss.qualcomm.com>
The USB3 pipe clock and the UFS TX/RX symbol clocks are driven by the QMP PHY, not GCC, so their CBCR only clears CLK_OFF once the PHY is up. Polling them at GCC enable time would time out before the PHY starts. Switch GCC_USB3_PRIM_PHY_PIPE_CLK, GCC_UFS_PHY_TX_SYMBOL_0_CLK, GCC_UFS_PHY_RX_SYMBOL_0_CLK and GCC_UFS_PHY_RX_SYMBOL_1_CLK back to GATE_CLK so GCC enable does not poll the CBCR status bit. Signed-off-by: Balaji Selvanathan <balaji.selvanathan@oss.qualcomm.com>
The USB3 pipe clock and the UFS TX/RX symbol clocks are driven by the QMP PHY, not GCC, so their CBCR only clears CLK_OFF once the PHY is up. Polling them at GCC enable time would time out before the PHY starts. Switch GCC_USB3_PRIM_PHY_PIPE_CLK, GCC_UFS_PHY_TX_SYMBOL_0_CLK and GCC_UFS_PHY_RX_SYMBOL_0_CLK back to GATE_CLK so GCC enable does not poll the CBCR status bit. Signed-off-by: Balaji Selvanathan <balaji.selvanathan@oss.qualcomm.com>
The PCIe pipe clock is driven by the QMP PHY, not GCC, so its CBCR only clears CLK_OFF once the PHY is up. Polling it at GCC enable time would time out before the PHY starts. Switch GCC_PCIE_PIPE_CLK back to GATE_CLK so GCC enable does not poll the CBCR status bit. Signed-off-by: Balaji Selvanathan <balaji.selvanathan@oss.qualcomm.com>
balajiselvanathan
force-pushed
the
qc/clk_gate_phy_fix
branch
from
August 20, 2026 08:41
4c6815f to
becb8c6
Compare
varada-qcom
approved these changes
Aug 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Keep USB3 pipe and UFS TX/RX symbol clocks unpolled as their CBCR only clears CLK_OFF once the QMP PHY is running, so polling them at GCC enable time would time out.
Upstream link: https://lore.kernel.org/u-boot/20260820-clk_gate-v2-0-8cd0059c162b@oss.qualcomm.com/