]> 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)
commit06fac95a5c35d4df790d92900c058e184077ca21
tree78358e05f119d0b5b0859e55c4c1ed1bc608c580
parentfd8fdbbffc8fcf38c0d91a435744515e65a1a480
dwc_eth_qos: do phy_start before resetting hardware

This reverts the changed init order from commit d78085939e4e
("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