summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2014-07-08 15:40:43 +0400
committerDavid S. Miller <davem@davemloft.net>2014-07-09 07:02:59 +0400
commitef83337d138354e3d1e32d9f929e0afefe5552aa (patch)
tree91c71ba90f13d1b32db756c40fe56f51c0ef88f6 /lib
parentf208ce10046888052d3a5e9fc88b7c1b819877d2 (diff)
downloadlinux-ef83337d138354e3d1e32d9f929e0afefe5552aa.tar.xz
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>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions