clk: mediatek: mt7988-infracfg: fix clocks for 2nd PCIe port
authorDaniel Golle <daniel@makrotopia.org>
Wed, 13 Mar 2024 22:05:37 +0000 (22:05 +0000)
committerStephen Boyd <sboyd@kernel.org>
Thu, 11 Apr 2024 03:50:26 +0000 (20:50 -0700)
commitd3e8a91a848a5941e3c31ecebd6b2612b37e01a6
tree1ae4afc82ce2effb387fe39776e1557d993317a8
parent2f7b1d8b5505efb0057cd1ab85fca206063ea4c3
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.

Fixes: 4b4719437d85f ("clk: mediatek: add drivers for MT7988 SoC")
Suggested-by: Sam Shih <sam.shih@mediatek.com>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Link: https://lore.kernel.org/r/1da2506a51f970706bf4ec9509dd04e0471065e5.1710367453.git.daniel@makrotopia.org
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/mediatek/clk-mt7988-infracfg.c