]> git.baikalelectronics.ru Git - kernel.git/commit
dwc_eth_qos: Reset hardware before PHY start
authorRabin Vincent <rabinv@axis.com>
Tue, 2 Feb 2016 08:39:02 +0000 (09:39 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 6 Feb 2016 08:38:11 +0000 (03:38 -0500)
commitd78085939e4ed6274a72d1a454e9278e0a971ee1
treeb10d00948ae085612868de8042ed08eea25f52dc
parentd5319bf543f47a83cb5b0442922f9081bdd05a26
dwc_eth_qos: Reset hardware before PHY start

The hardware reset is currently done after phy_start() is called,
leading to a race where we can lose the link status if the phy state
machine calls dwceqos_adjust_link() before we reset the MAC registers.

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