diff options
| author | Russell King (Oracle) <[email protected]> | 2024-10-17 11:52:54 +0000 |
|---|---|---|
| committer | Paolo Abeni <[email protected]> | 2024-10-23 14:10:16 +0000 |
| commit | 1c17f9d3fe17d296ff2d93740ee96a52a2343628 (patch) | |
| tree | 9e70af2780fe4f24c8a86ddc798db3719cffb68b /tools/net/ynl/cli.py | |
| parent | net: pcs: xpcs: rearrange xpcs_link_up_1000basex() (diff) | |
| download | kernel-1c17f9d3fe17d296ff2d93740ee96a52a2343628.tar.gz kernel-1c17f9d3fe17d296ff2d93740ee96a52a2343628.zip | |
net: pcs: xpcs: replace open-coded mii_bmcr_encode_fixed()
We can now see that we have an open-coded version of
mii_bmcr_encode_fixed() when this is called with SPEED_1000:
val = BMCR_SPEED1000;
if (duplex == DUPLEX_FULL)
val |= BMCR_FULLDPLX;
Replace this with a call to mii_bmcr_encode_fixed().
Signed-off-by: Russell King (Oracle) <[email protected]>
Tested-by: Serge Semin <[email protected]>
Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'tools/net/ynl/cli.py')
0 files changed, 0 insertions, 0 deletions
