* [PATCH] clk: mediatek: mt7988-infracfg: fix clocks for 2nd PCIe port
@ 2024-03-13 22:05 Daniel Golle
2024-03-14 9:44 ` AngeloGioacchino Del Regno
2024-04-11 3:47 ` Stephen Boyd
0 siblings, 2 replies; 5+ messages in thread
From: Daniel Golle @ 2024-03-13 22:05 UTC (permalink / raw)
To: Michael Turquette, Stephen Boyd, Matthias Brugger,
AngeloGioacchino Del Regno, Daniel Golle, Sam Shih,
Frank Wunderlich, linux-clk, linux-kernel, linux-arm-kernel,
linux-mediatek
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>
---
drivers/clk/mediatek/clk-mt7988-infracfg.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/clk/mediatek/clk-mt7988-infracfg.c b/drivers/clk/mediatek/clk-mt7988-infracfg.c
index 449041f8abbc9..c8c023afe3e5a 100644
--- a/drivers/clk/mediatek/clk-mt7988-infracfg.c
+++ b/drivers/clk/mediatek/clk-mt7988-infracfg.c
@@ -156,7 +156,7 @@ static const struct mtk_gate infra_clks[] = {
GATE_INFRA0(CLK_INFRA_PCIE_PERI_26M_CK_P1, "infra_pcie_peri_ck_26m_ck_p1",
"csw_infra_f26m_sel", 8),
GATE_INFRA0(CLK_INFRA_PCIE_PERI_26M_CK_P2, "infra_pcie_peri_ck_26m_ck_p2",
- "csw_infra_f26m_sel", 9),
+ "infra_pcie_peri_ck_26m_ck_p3", 9),
GATE_INFRA0(CLK_INFRA_PCIE_PERI_26M_CK_P3, "infra_pcie_peri_ck_26m_ck_p3",
"csw_infra_f26m_sel", 10),
/* INFRA1 */
--
2.44.0
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] clk: mediatek: mt7988-infracfg: fix clocks for 2nd PCIe port
2024-03-13 22:05 [PATCH] clk: mediatek: mt7988-infracfg: fix clocks for 2nd PCIe port Daniel Golle
@ 2024-03-14 9:44 ` AngeloGioacchino Del Regno
2024-04-08 6:50 ` Stephen Boyd
2024-04-11 3:47 ` Stephen Boyd
1 sibling, 1 reply; 5+ messages in thread
From: AngeloGioacchino Del Regno @ 2024-03-14 9:44 UTC (permalink / raw)
To: Daniel Golle, Michael Turquette, Stephen Boyd, Matthias Brugger,
Sam Shih, Frank Wunderlich, linux-clk, linux-kernel,
linux-arm-kernel, linux-mediatek
Il 13/03/24 23:05, Daniel Golle ha scritto:
> 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>
That's funny. Anyway:
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
> ---
> drivers/clk/mediatek/clk-mt7988-infracfg.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/clk/mediatek/clk-mt7988-infracfg.c b/drivers/clk/mediatek/clk-mt7988-infracfg.c
> index 449041f8abbc9..c8c023afe3e5a 100644
> --- a/drivers/clk/mediatek/clk-mt7988-infracfg.c
> +++ b/drivers/clk/mediatek/clk-mt7988-infracfg.c
> @@ -156,7 +156,7 @@ static const struct mtk_gate infra_clks[] = {
> GATE_INFRA0(CLK_INFRA_PCIE_PERI_26M_CK_P1, "infra_pcie_peri_ck_26m_ck_p1",
> "csw_infra_f26m_sel", 8),
> GATE_INFRA0(CLK_INFRA_PCIE_PERI_26M_CK_P2, "infra_pcie_peri_ck_26m_ck_p2",
> - "csw_infra_f26m_sel", 9),
> + "infra_pcie_peri_ck_26m_ck_p3", 9),
> GATE_INFRA0(CLK_INFRA_PCIE_PERI_26M_CK_P3, "infra_pcie_peri_ck_26m_ck_p3",
> "csw_infra_f26m_sel", 10),
> /* INFRA1 */
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] clk: mediatek: mt7988-infracfg: fix clocks for 2nd PCIe port
2024-03-14 9:44 ` AngeloGioacchino Del Regno
@ 2024-04-08 6:50 ` Stephen Boyd
0 siblings, 0 replies; 5+ messages in thread
From: Stephen Boyd @ 2024-04-08 6:50 UTC (permalink / raw)
To: AngeloGioacchino Del Regno, Daniel Golle, Frank Wunderlich,
Matthias Brugger, Michael Turquette, Sam Shih, linux-arm-kernel,
linux-clk, linux-kernel, linux-mediatek
Quoting AngeloGioacchino Del Regno (2024-03-14 02:44:59)
> Il 13/03/24 23:05, Daniel Golle ha scritto:
> > 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>
>
> That's funny. Anyway:
>
> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Are you picking up mediatek clk patches and fixes this cycle?
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] clk: mediatek: mt7988-infracfg: fix clocks for 2nd PCIe port
2024-03-13 22:05 [PATCH] clk: mediatek: mt7988-infracfg: fix clocks for 2nd PCIe port Daniel Golle
2024-03-14 9:44 ` AngeloGioacchino Del Regno
@ 2024-04-11 3:47 ` Stephen Boyd
2024-04-11 3:51 ` Stephen Boyd
1 sibling, 1 reply; 5+ messages in thread
From: Stephen Boyd @ 2024-04-11 3:47 UTC (permalink / raw)
To: AngeloGioacchino Del Regno, Daniel Golle, Frank Wunderlich,
Matthias Brugger, Michael Turquette, Sam Shih, linux-arm-kernel,
linux-clk, linux-kernel, linux-mediatek
Quoting Daniel Golle (2024-03-13 15:05:37)
> 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>
> ---
Applied to clk-next
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] clk: mediatek: mt7988-infracfg: fix clocks for 2nd PCIe port
2024-04-11 3:47 ` Stephen Boyd
@ 2024-04-11 3:51 ` Stephen Boyd
0 siblings, 0 replies; 5+ messages in thread
From: Stephen Boyd @ 2024-04-11 3:51 UTC (permalink / raw)
To: AngeloGioacchino Del Regno, Daniel Golle, Frank Wunderlich,
Matthias Brugger, Michael Turquette, Sam Shih, linux-arm-kernel,
linux-clk, linux-kernel, linux-mediatek
Quoting Stephen Boyd (2024-04-10 20:47:55)
> Quoting Daniel Golle (2024-03-13 15:05:37)
> > 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>
> > ---
>
> Applied to clk-next
>
Actually I'll send this in fixes because it sounds bad.
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2024-04-11 3:51 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-13 22:05 [PATCH] clk: mediatek: mt7988-infracfg: fix clocks for 2nd PCIe port Daniel Golle
2024-03-14 9:44 ` AngeloGioacchino Del Regno
2024-04-08 6:50 ` Stephen Boyd
2024-04-11 3:47 ` Stephen Boyd
2024-04-11 3:51 ` Stephen Boyd
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).