diff options
author | Russell King <[email protected]> | 2020-03-14 10:15:53 +0000 |
---|---|---|
committer | David S. Miller <[email protected]> | 2020-03-15 17:11:12 -0700 |
commit | f365c6f7235aa9a40ed7bbca83ad086a43006b1c (patch) | |
tree | 44c6db22cf7a3028642faf4998ce637f357bdb3d /tools/lib/api/debug.c | |
parent | 7e0e62431259b02a9c035f6cbaec2635add30921 (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 <[email protected]>
Reviewed-by: Andrew Lunn <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/lib/api/debug.c')
0 files changed, 0 insertions, 0 deletions