]> 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)
commitdc62c6f13c34401b057c985660c59b2936d0f4ed
treeda808857fddb6f987c1982b2348555afd247b80e
parentce85ddaa0605d30ea27aba2d20ac9216269c6bb0
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