Re: [PATCH] net: phy: micrel: KSZ9031: fix crash when statistic requested

From: Grygorii Strashko
Date: Tue Apr 11 2017 - 13:17:32 EST




On 04/11/2017 11:36 AM, Andrew Lunn wrote:
I've considered all this option, honestly, but I do not know if this
phys (issue should affect KSZ886X, KSZ8873MLL, KSZ9031, KSZ9021, KSZ8061, KS8737)
support fetching statistics or not and was hoping to get feedback from community.

Hi Grygorii

Microchip are one of the good guys. All there datesheets are open. So
you should be able to check this.


Below is what i've found
0xa 0x15 action
KS8737 - + remove stats? - reg 10(0xa) reserved
KSZ8061MNX/MNG - + remove stats? - reg 10(0xa) reserved
KSZ9021GN + + add .probe()
KSZ9031 + + add .probe()
KSZ8873MLL/FLL/RLL - - remove stats
KSZ886X/KSZ8862 - - remove stats

The kszphy_probe() can be reused as .probe() callback as it seems
not phy specific.


--
regards,
-grygorii