diff options
author | Russell King <rmk+kernel@armlinux.org.uk> | 2020-02-11 12:27:54 +0000 |
---|---|---|
committer | Russell King <rmk+kernel@armlinux.org.uk> | 2020-04-02 19:45:28 +0100 |
commit | 04fae11ddb1529b355c9cb5c6adb4352a0c6046c (patch) | |
tree | 0d3fccedbafa7dc3ee65cbd529acc4abe5b4febd /Kbuild | |
parent | cc42d6b1e9c71b106271ea92330c32cc44cda740 (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>
Diffstat (limited to 'Kbuild')
0 files changed, 0 insertions, 0 deletions