Hi,
I'm using linux-4.14.104 which is based on LSDK-19.03, on the LS1046ARDB.
I tried the following "mii-tool" command, for read/write phy register.
# mii-tool -vv eth0
However, the command returns "Invalid argument".
Using SIOCGMIIPHY=0x8947
SIOCGMIIPHY on 'eth0' failed: Invalid argument
I applied the attached patch, and fixed this issue.
If this patch is appropriate, could you apply to next LSDK release?
The following information is provided for your reference.
This patch is based on the following changes.
It supports only the "SIOCGMIIREG" operation.
https://source.codeaurora.org/external/qoriq/qoriq-components/linux/commit/?id=119d4a46b0d6fa82e6454...
Similar changes are proposed in the following threads.
https://community.nxp.com/thread/366062
The issue was escalated to the LSDK support.
Where to find this LSDK support。 LSDK-18.09 also have this problem。