AnsweredAssumed Answered

LS1046A: PHY register R/W failed

Question asked by Yoshihisa Morizumi on Aug 7, 2019
Latest reply on Nov 24, 2019 by biao li



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. 


Similar changes are proposed in the following threads.