diff options
author | Russell King <rmk+kernel@armlinux.org.uk> | 2020-03-14 13:15:53 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-03-16 03:11:12 +0300 |
commit | f365c6f7235aa9a40ed7bbca83ad086a43006b1c (patch) | |
tree | 44c6db22cf7a3028642faf4998ce637f357bdb3d /init/initramfs.c | |
parent | 7e0e62431259b02a9c035f6cbaec2635add30921 (diff) | |
download | linux-f365c6f7235aa9a40ed7bbca83ad086a43006b1c.tar.xz |
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 'init/initramfs.c')
0 files changed, 0 insertions, 0 deletions