]> git.karo-electronics.de Git - linux-beck.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)
commit3647bc35bd427610a70eb83c58c5e834262badfa
treeb10d00948ae085612868de8042ed08eea25f52dc
parent16186a82de1fdd868255448274e64ae2616e2640
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