]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: mv88e6352: Refactor shareable code
authorAndrew Lunn <andrew@lunn.ch>
Sat, 14 Feb 2015 18:17:50 +0000 (19:17 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 19 Feb 2015 20:52:25 +0000 (15:52 -0500)
commitd5ddc58eebe25eee4845b04ec950a4e83564c414
treed3ed4858d8c276f529fa956072f2b9723e0e5fcb
parent0e81cc235ee1e21473902c33020917e2109a4d67
net: dsa: mv88e6352: Refactor shareable code

The mv88e6352 allows access to the port phys via an internal mdio bus
which is accessed using registers in the GLOBAL 2 range. The mv88e6171
and probably other devices use the same mechanism. Move this code into
the shared mv88e6xxx.c library.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Tested-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6352.c
drivers/net/dsa/mv88e6xxx.c
drivers/net/dsa/mv88e6xxx.h