summaryrefslogtreecommitdiff
path: root/COPYING
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@armlinux.org.uk>2020-03-14 10:15:53 +0000
committerDavid S. Miller <davem@davemloft.net>2020-03-15 17:11:12 -0700
commitf365c6f7235aa9a40ed7bbca83ad086a43006b1c (patch)
tree44c6db22cf7a3028642faf4998ce637f357bdb3d /COPYING
parent7e0e62431259b02a9c035f6cbaec2635add30921 (diff)
net: dsa: mv88e6xxx: combine port_set_speed and port_set_duplex
Setting the speed independently of duplex makes little sense; the two parameters result from negotiation or fixed setup, and may have inter- dependencies. Moreover, they are always controlled via the same register - having them split means we have to read-modify-write this register twice. Combine the two operations into a single port_set_speed_duplex() operation. Not only is this more efficient, it reduces the size of the code as well. Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions