[PATCH] clk: sunxi-ng: a733: Mark msi-lite0 clocks as critical

Alastair D'Silva alastair at d-silva.org
Wed Nov 25 23:12:51 PST 2026


The ahb-msi-lite0 and mbus-msi-lite0 clocks gate the shared MSI-Lite0
bus fabric used by GMAC0 and other peripherals. The bus-msi-lite0 clock
only gates the register configuration interface. Until a bus or
interconnect driver models MSI-Lite0 consumers, referencing these shared
clocks only in GMAC0 does not reflect the shared fabric. Without
CLK_IS_CRITICAL, clk_disable_unused() gates them off and breaks GMAC0
link-up and DMA.

Mark ahb-msi-lite0 and mbus-msi-lite0 as CLK_IS_CRITICAL, matching
ahb-cpus and mbus-store in this driver.

Fixes: ed757071ac3d ("clk: sunxi-ng: a733: Add bus clock gates")
Assisted-by: LLM
Signed-off-by: Alastair D'Silva <alastair at d-silva.org>
---
 drivers/clk/sunxi-ng/ccu-sun60i-a733.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/drivers/clk/sunxi-ng/ccu-sun60i-a733.c b/drivers/clk/sunxi-ng/ccu-sun60i-a733.c
index 958a2a2bcf76..74759dc6b292 100644
--- a/drivers/clk/sunxi-ng/ccu-sun60i-a733.c
+++ b/drivers/clk/sunxi-ng/ccu-sun60i-a733.c
@@ -567,8 +567,9 @@ static SUNXI_CCU_GATE_HWS(ahb_serdes_clk, "ahb-serdes", ahb_hws,
 			  0x5c0, BIT(8), 0);
 static SUNXI_CCU_GATE_HWS(ahb_usb_sys_clk, "ahb-usb-sys", ahb_hws,
 			  0x5c0, BIT(9), 0);
+/* Keep enabled for the shared MSI-Lite0 AHB bus fabric. */
 static SUNXI_CCU_GATE_HWS(ahb_msi_lite0_clk, "ahb-msi-lite0", ahb_hws,
-			  0x5c0, BIT(16), 0);
+			  0x5c0, BIT(16), CLK_IS_CRITICAL);
 
 /* This gate controls access to the storage controller MMIO registers. */
 static SUNXI_CCU_GATE_HWS(ahb_store_clk, "ahb-store", ahb_hws,
@@ -597,8 +598,9 @@ static SUNXI_CCU_GATE_HWS(mbus_vid_in_clk, "mbus-vid-in", mbus_hws,
 			  0x5e0, BIT(24), 0);
 static SUNXI_CCU_GATE_HWS(mbus_serdes_clk, "mbus-serdes", mbus_hws,
 			  0x5e0, BIT(28), 0);
+/* Keep enabled for the shared MSI-Lite0 MBUS DMA paths. */
 static SUNXI_CCU_GATE_HWS(mbus_msi_lite0_clk, "mbus-msi-lite0", mbus_hws,
-			  0x5e0, BIT(29), 0);
+			  0x5e0, BIT(29), CLK_IS_CRITICAL);
 
 /* Keep enabled for the storage controller DMA paths. */
 static SUNXI_CCU_GATE_HWS(mbus_store_clk, "mbus-store", mbus_hws,
-- 
2.53.0




More information about the linux-arm-kernel mailing list