]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commit8a10f48bee35c0825ac49cd05c48defaf4f8ce7c
treebfed54b1758c0be79316c8b9f92ed07bbb9c7a8b
parentc604ef1d74219e23dca54274e373506c1d38997e
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