net: xilinx: Use mdio_register_seq() to support multiple instances
authorMichal Simek <michal.simek@xilinx.com>
Thu, 8 Dec 2016 09:25:44 +0000 (10:25 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Tue, 20 Dec 2016 06:40:04 +0000 (07:40 +0100)
commit6516e3f2530509a2094fcefdedc11fde3970c4f6
tree0246d6a308dbd1cfcb7462b56ca9d6b1f8c7a8c7
parent79e2a6a04a2159c81dd08a2ba538edbe158e8a4e
net: xilinx: Use mdio_register_seq() to support multiple instances

axi_emac, emaclite and gem have the same issue with registering
multiple instances with mdio busses. mdio bus name has to be uniq but
drivers are setting up only one name for all.
Use mdio_register_seq() and pass dev->seq number to allow multiple
mdio instances registration.

Reported-by: Phani Kiran Kara <phanikiran.kara@gmail.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
drivers/net/xilinx_axi_emac.c
drivers/net/xilinx_emaclite.c
drivers/net/zynq_gem.c