Searched hist:ef83337d138354e3d1e32d9f929e0afefe5552aa (Results 1 – 1 of 1) sorted by relevance
/linux/drivers/net/ethernet/freescale/ |
H A D | fec_main.c | diff ef83337d138354e3d1e32d9f929e0afefe5552aa Tue Jul 08 13:40:43 CEST 2014 Russell King <rmk+kernel@arm.linux.org.uk> net: fec: clean up duplex mode handling
Many places call fec_restart() with the second parameter being some kind of previously saved duplex value, but only two places call it with some other setting. This is at odds with how the other link settings are handled, and used to be racy before the rtnl locks were added to fec_restart()'s various call paths.
Clean this up so all link capabilities are handled in the same way - saved into the fec_enet_private structure, and then fec_restart() acts on those settings.
Acked-by: Fugang Duan <B38611@freescale.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
|