On Sat, Aug 15, 2026 at 09:57:00PM +0800, Pengpeng Hou wrote:
> ice_ptp_calc_deskew_eth56g() ignores the return value of
> read_poll_timeout(). If register reads succeed but the DESKEW valid bit
> never appears, the timeout is treated as success. If a register read fails,
> the poll condition can also inspect deskew_i before a successful read and
> continue polling instead of stopping on the hard error. The function then
> returns an int error through its u32 deskew return type.
> 
> Return the deskew value through an output parameter. Stop polling when
> either the read fails or the valid bit appears, then propagate the register
> error or the poll timeout separately before calculating and applying the
> deskew value.
> 
> Fixes: 7cab44f1c35f ("ice: Introduce ETH56G PHY model for E825C products")
> 
> Assisted-by: Codex:gpt-5
> Signed-off-by: Pengpeng Hou <[email protected]>
> ---
> Changes since v2: 
> https://lore.kernel.org/all/[email protected]/
> - capture and propagate the read_poll_timeout() result
> - stop the poll immediately on a register read error
> - initialize deskew_i before it is used by the poll condition
> - do not carry the v2 Reviewed-by because the poll logic changed

Thanks for the update.

Reviewed-by: Simon Horman <[email protected]>

Reply via email to