[PATCH 1/1] net: spacemit: Check netif_carrier_ok when reading stats

Vivian Wang wangruikang at iscas.ac.cn
Sun Jan 18 19:54:44 PST 2026


Hi Cunkun Pan:

On 1/18/26 18:00, Chukun Pan wrote:
> Currently, when the interface is not linked up, reading the interface
> stats will print several timeout logs. Add a netif_carrier_ok check to
> the emac_stats_update function to avoid this situation:

I am unable to reproduce this problem.

Can you elaborate on what you mean by "not linked up"? I couldn't
reproduce this on an unconnected interface.

I would also appreciate more information on this in general - full
kernel logs, hardware information (which board, what you were doing with
cables, etc...)

Thanks,
Vivian "dramforever" Wang




More information about the linux-riscv mailing list