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

Chukun Pan amadeus at jmu.edu.cn
Mon Jan 19 06:16:20 PST 2026


Hi Andrew, Vivian,

> 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...)

I apologize for not expressing this question clearly.

I'm trying to run OpenWrt on OrangePi R2S and OrangePi RV2.
Unlike other Spacemit K1 boards, OrangePi uses the YT8531C PHY.

Read stats when the interface is not connected to a network cable:

root at OpenWrt:~# ethtool -S eth1
[   71.725539] k1_emac cac81000.ethernet eth1: Read stat timeout
NIC statistics:
     rx_drp_fifo_full_pkts: 0
     rx_truncate_fifo_full_pkts: 0

I just discovered that adding "motorcomm,auto-sleep-disabled" to disable
the sleep mode of the MotorComm PHY prevents the problem from occurring.

I will send a DT patch instead. Sorry for the noise.

Thanks,
Chukun



More information about the linux-riscv mailing list