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".
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.
Similar changes are proposed in the following threads.