Re: [PATCH net v2 1/2] ice: fix DPLL registration on boards without the SMA clock mux
From: Petr Oros
Date: Fri Dec 04 2026 - 04:30:05 EST
> Does ICE_F_SMA_CTRL guarantee that ice_read_sma_ctrl() will find the
> PCA9575 expander here?
No, and the patch does not need it to. It removes a dependency instead of
adding one.
Before the patch ice_dpll_init_info_sw_pins() called ice_read_sma_ctrl()
unconditionally, so every board where ice_get_pca9575_handle() fails lost
the whole DPLL registration. That is the bug being fixed. After the patch
the read happens only when the netlist advertises a clock mux, so the set
of boards that can still reach -ENXIO is a strict subset of the ones that
hit it today. Nothing regresses.
What remains needs firmware that reports a GEN_CLK_MUX node while no
PCA9575 answers at the GPIO_CTRL index the lookup uses, or a BACKPLANE/XXV
device reporting a clock mux at all. On the E810 timing boards the PCA9575
is what drives that mux and both netlist nodes come together. Such a board
is equally broken today, so it deserves its own fix with a reporter and
hardware to test on rather than a speculative change in a stable backport.
> Should both helpers also check !hidden, as the register and unregister
> helpers already do?
They could, but it changes nothing. The hidden pins are never registered,
dpll_pin_event_send() returns -ENODEV and no netlink message is generated.
ice_dpll_pin_ntf() already notifies the hidden CGU inputs behind the SMA
wrappers, so tightening both helpers is a net-next cleanup rather than
part of this fix.
Regards,
Petr