]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'mv88e6171_indirect_phy'
authorDavid S. Miller <davem@davemloft.net>
Thu, 19 Feb 2015 20:52:33 +0000 (15:52 -0500)
committerDavid S. Miller <davem@davemloft.net>
Thu, 19 Feb 2015 20:52:33 +0000 (15:52 -0500)
commitc82dd497ad454a369f013c078513697c471f0761
tree935725a8956e25c7b7b50a7857e79d69a5f00c56
parent0e81cc235ee1e21473902c33020917e2109a4d67
parent2cea66b51576c05f02938cd722e8c561c10b1ff4
Merge branch 'mv88e6171_indirect_phy'

Andrew Lunn says:

====================
Indirect phy access for mv88e6171

These two patches allow the mv88e6171 driver to access the port phys
using indirect addressing. Depending on pin strapping, the switch
either uses a single address on the host MDIO bus, requiring the port
phys are accessed indirectly, or the switch uses a number of addresses
on the host bus and the phys can be directly accessed.

The 370RD, the first supported platform to use the 6171 uses multiple
addresses, so this indirect mode was not required. However the
WRT1900AC has the switch configured to use a single address, and so
indirect access is needed.

The mv88e6352 already has all the needed code. Refactor it into the
shared mv88e6xxx and then use it in the mv88e6171 driver.

Tested on the 370RD and WRT1900AC.

It would be good if Guenter Roeck could test on his platform to ensure
i've not broken anything for the mv88e6352.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>