Skip to content

Commit 1311a85

Browse files
dangowrtfrank-w
authored andcommitted
clk: mediatek: mt7988-infracfg: fix clocks for 2nd PCIe port
Due to what seems to be an undocumented oddity in MediaTek's MT7988 SoC design the CLK_INFRA_PCIE_PERI_26M_CK_P2 clock requires CLK_INFRA_PCIE_PERI_26M_CK_P3 to be enabled. This currently leads to PCIe port 2 not working in Linux. Reflect the apparent relationship in the clk driver to make sure PCIe port 2 of the MT7988 SoC works. Suggested-by: Sam Shih <[email protected]> Signed-off-by: Daniel Golle <[email protected]>
1 parent 0829d2d commit 1311a85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/clk/mediatek/clk-mt7988-infracfg.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ static const struct mtk_gate infra_clks[] = {
156156
GATE_INFRA0(CLK_INFRA_PCIE_PERI_26M_CK_P1, "infra_pcie_peri_ck_26m_ck_p1",
157157
"csw_infra_f26m_sel", 8),
158158
GATE_INFRA0(CLK_INFRA_PCIE_PERI_26M_CK_P2, "infra_pcie_peri_ck_26m_ck_p2",
159-
"csw_infra_f26m_sel", 9),
159+
"infra_pcie_peri_ck_26m_ck_p3", 9),
160160
GATE_INFRA0(CLK_INFRA_PCIE_PERI_26M_CK_P3, "infra_pcie_peri_ck_26m_ck_p3",
161161
"csw_infra_f26m_sel", 10),
162162
/* INFRA1 */

0 commit comments

Comments
 (0)