net: mscc: refactor mscc_miim
authorHoratiu Vultur <horatiu.vultur@microchip.com>
Sun, 9 Jun 2019 13:27:29 +0000 (15:27 +0200)
committerJoe Hershberger <joe.hershberger@ni.com>
Mon, 15 Jul 2019 18:32:25 +0000 (13:32 -0500)
commit61243678c2ffe39b23ac73adb9b42c3d317817ce
tree6735dbc87002d34134bc880d332131a30195827c
parentec9594a50f02944944dcc76a6cffce9861e8614d
net: mscc: refactor mscc_miim

Because all MSCC SoC use the same MDIO bus, put the implementation in
one common file(mscc_miim) and make all the other MSCC network drivers to
use these functions.

Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Reviewed-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
drivers/net/mscc_eswitch/Makefile
drivers/net/mscc_eswitch/jr2_switch.c
drivers/net/mscc_eswitch/luton_switch.c
drivers/net/mscc_eswitch/mscc_miim.c
drivers/net/mscc_eswitch/mscc_miim.h
drivers/net/mscc_eswitch/ocelot_switch.c
drivers/net/mscc_eswitch/serval_switch.c
drivers/net/mscc_eswitch/servalt_switch.c