diff options
author | David S. Miller <davem@davemloft.net> | 2022-06-19 12:38:27 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-06-19 12:38:27 +0300 |
commit | 5fc217a3c9a87a99e22d9be085c3ab8370ab7271 (patch) | |
tree | 3bf67116cfa16c369de0bb884b1ad0f490657488 /drivers/net/ethernet/netronome/nfp/nfpcore | |
parent | 5d1d527cd905752c6486421eeb27592849da17ab (diff) | |
parent | 449b7a15200a15af8affefdd80ac567c40898dce (diff) | |
download | linux-5fc217a3c9a87a99e22d9be085c3ab8370ab7271.tar.xz |
Merge branch 'mii_bmcr_encode_fixed'
Russell King says:
====================
net: introduce mii_bmcr_encode_fixed()
While converting the mv88e6xxx driver to phylink pcs, it has been
noticed that we've started to have repeated cases where we convert a
speed and duplex to a BMCR value.
Rather than open coding this in multiple locations, let's provide a
helper for this - in linux/mii.h. This helper not only takes care of
the standard 10, 100 and 1000Mbps encodings, but also includes
2500Mbps (which is the same as 1000Mbps) for those users who require
that encoding as well. Unknown speeds will be encoded to 10Mbps, and
non-full duplexes will be encoded as half duplex.
This series converts the existing users to the new helper, and the
mv88e6xxx conversion will add further users in the 6352 and 639x PCS
code.
====================
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/netronome/nfp/nfpcore')
0 files changed, 0 insertions, 0 deletions