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)
commitf30446839b5a283cde54f7e233bbebc69bbd3d16
treed3ed4858d8c276f529fa956072f2b9723e0e5fcb
parentea8860eb504a953cf8fe0e96c3166201b05c9b73
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