]> git.baikalelectronics.ru Git - kernel.git/commit
net: fec: restart the FEC when PHY speed changes
authorLucas Stach <l.stach@pengutronix.de>
Thu, 14 Mar 2013 05:12:01 +0000 (05:12 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Mar 2013 12:46:48 +0000 (08:46 -0400)
commit47e4240b27ebfa8c44d8281c9e1d1747bbe05ace
treeda808857fddb6f987c1982b2348555afd247b80e
parent5058c8060fa196a652f0cd1492eeb5f7e420d4dc
net: fec: restart the FEC when PHY speed changes

Proviously we would only restart the FEC when PHY link or duplex state
changed. PHY does not always bring down the link for speed changes, in
which case we would not detect any change and keep FEC running.

Switching link speed without restarting the FEC results in the FEC being
stuck in an indefinite state, generating error conditions for every
packet.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/fec.c
drivers/net/ethernet/freescale/fec.h