Re: [PATCH v7 7/8] clk: sunxi-ng: a733: Add bus clock gates
From: Alastair D'Silva
Date: Wed Nov 25 2026 - 06:53:44 EST
Hi Junhui,
On Thu, 12 Nov 2026, Junhui Liu wrote:
> static SUNXI_CCU_GATE_HWS(ahb_msi_lite0_clk, "ahb-msi-lite0", ahb_hws,
> 0x5c0, BIT(16), 0);
> ...
> static SUNXI_CCU_GATE_HWS(mbus_msi_lite0_clk, "mbus-msi-lite0", mbus_hws,
> 0x5e0, BIT(29), 0);
While bringing up GMAC0 on the OrangePi 4 Pro with this v7 CCU series,
link-up and DMA broke as soon as clk_disable_unused() ran.
ahb-msi-lite0 (0x5c0, BIT(16)) and mbus-msi-lite0 (0x5e0, BIT(29)) gate
the shared MSI-Lite0 bus fabric used by GMAC0 and other masters, whereas
bus-msi-lite0 is only its register configuration clock. Referencing
ahb-msi-lite0 and mbus-msi-lite0 only in gmac0 does not model the
shared fabric, and gating them off breaks GMAC0 DMA.
Could you please mark ahb_msi_lite0_clk and mbus_msi_lite0_clk with
CLK_IS_CRITICAL, matching ahb_store_clk and mbus_store_clk in this
driver?
Tested on OrangePi 4 Pro (Allwinner A733).
Thanks,
Alastair