Re: [PATCH] clk: rockchip: pass the mux mask, not its width, for table muxes

From: Heiko Stuebner

Date: Fri Dec 04 2026 - 08:53:57 EST



On Mon, 30 Nov 2026 20:26:05 -0800, Dustin Lundquist wrote:
> rockchip_clk_register_branches() passes the mux width to
> clk_register_mux_table(), whose argument is a mask. A 2-bit table mux
> therefore gets mask 0b10, and because Rockchip muxes use HIWORD write
> enables, bit 0 of the field is never written.
>
> The only MUXTBL user is RV1126's rgmii_mode_clk (CRU_GMAC_CON[3:2],
> table { 2, 3, 0, 1 }). Selecting the /5 parent for 100 Mbit/s RGMII
> writes 0b11, which lands as 0b10, the /50 parent. The clock framework
> reports 25 MHz while the MAC's TX clock runs at 2.5 MHz, so at
> 100 Mbit/s the link comes up and receives, but nothing sent arrives.
> 1000 Mbit/s (0b00) and 10 Mbit/s (0b10) are unaffected.
>
> [...]

Applied, thanks!

[1/1] clk: rockchip: pass the mux mask, not its width, for table muxes
commit: fd87367af7d8d13d7b2469d968ef77be5badb51d

Best regards,
--
Heiko Stuebner <heiko@xxxxxxxxx>