diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2014-07-08 12:40:43 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-07-08 20:02:59 -0700 |
commit | ef83337d138354e3d1e32d9f929e0afefe5552aa (patch) | |
tree | 91c71ba90f13d1b32db756c40fe56f51c0ef88f6 /samples/rpmsg/rpmsg_client_sample.c | |
parent | f208ce10046888052d3a5e9fc88b7c1b819877d2 (diff) |
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 'samples/rpmsg/rpmsg_client_sample.c')
0 files changed, 0 insertions, 0 deletions