[PATCH 01/13] net: dsa: lan9303: Fixed MDIO interface

2017-07-24 Thread Egil Hjelmeland
Fixes after testing on actual HW: - lan9303_mdio_write()/_read() must multiply register number by 4 to get offset - Indirect access (PMI) to phy register only work in I2C mode. In MDIO mode phy registers must be accessed directly. Introduced struct lan9303_phy_ops to handle the two modes.

[PATCH 01/13] net: dsa: lan9303: Fixed MDIO interface

2017-07-24 Thread Egil Hjelmeland
Fixes after testing on actual HW: - lan9303_mdio_write()/_read() must multiply register number by 4 to get offset - Indirect access (PMI) to phy register only work in I2C mode. In MDIO mode phy registers must be accessed directly. Introduced struct lan9303_phy_ops to handle the two modes.