]> git.baikalelectronics.ru Git - kernel.git/commit
dwc_eth_qos: do phy_start before resetting hardware
authorLars Persson <lars.persson@axis.com>
Mon, 29 Feb 2016 15:22:34 +0000 (16:22 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 Mar 2016 19:57:15 +0000 (14:57 -0500)
commit754ede6ae89120c56ef69a529ac9662841c0c8cc
tree78358e05f119d0b5b0859e55c4c1ed1bc608c580
parent4ab98b182c97006cc561e20fa655ac8a6e05c039
dwc_eth_qos: do phy_start before resetting hardware

This reverts the changed init order from commit 9ebfed3d17be
("dwc_eth_qos: Reset hardware before PHY start") and makes another fix
for the race.

It turned out that the reset state machine of the dwceqos hardware
requires PHY clocks to be present in order to complete the reset
cycle.

To plug the race with the phy state machine we defer link speed
setting until the hardware init has finished.

Signed-off-by: Lars Persson <larper@axis.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/synopsys/dwc_eth_qos.c