On 12/30/20 4:43 PM, Andrew Lunn wrote:
On Wed, Dec 30, 2020 at 01:53:57PM +0100, Marek Vasut wrote:
The KS8851 has a reduced internal PHY, which is accessible through its
registers at offset 0xe4. The PHY is compatible with KS886x PHY present
in Micrel switches, except the PHY ID Low/High registers are swapped.
Can you intercept the reads in the KS8851 driver and swap them back
again? The mv88e6xxx driver does something similar. The mv88e6393
family of switches have PHYs with the Marvell OUI but no device ID. So
the code traps these reads and provides an ID.
I would prefer to keep this as-is, since then the PHY driver can match
on these swapped IDs and discern the PHY from PHY present in the KS886x
switch.