net: mscc: ocelot: Fix reset of the phys
authorHoratiu Vultur <horatiu.vultur@microchip.com>
Wed, 27 Mar 2019 09:16:18 +0000 (10:16 +0100)
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
Fri, 12 Apr 2019 15:32:50 +0000 (17:32 +0200)
commitcd424f35ee37c105c6d32fa3b06cd49178af0840
treebfed54b1758c0be79316c8b9f92ed07bbb9c7a8b
parente5151666364e64e6ca6e554e3d53f2a53fbc1800
net: mscc: ocelot: Fix reset of the phys

The function mscc_miim_reset resets all the phys, but it is called for
each phy separetely. One consequence of this is that the boot time
is increased by 2 seconds.

The fix consists for calling the mscc_miim_reset function only once for
all phys.

Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Reviewed-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
drivers/net/mscc_eswitch/ocelot_switch.c