diff options
author | 2020-08-30 11:33:58 +0300 | |
---|---|---|
committer | 2020-08-31 12:52:33 -0700 | |
commit | afd6220999d4932616322f8a893371f8d0567a2a (patch) | |
tree | 848efcc4125ae5e61aa6988c2382ec0762b3d2a0 /include | |
parent | net/wan/fsl_ucc_hdlc: Add MODULE_DESCRIPTION (diff) | |
download | linux-dev-afd6220999d4932616322f8a893371f8d0567a2a.tar.xz linux-dev-afd6220999d4932616322f8a893371f8d0567a2a.zip |
net: phylink: add helper function to decode USXGMII word
With the new addition of the USXGMII link partner ability constants we
can now introduce a phylink helper that decodes the USXGMII word and
populates the appropriate fields in the phylink_link_state structure
based on them.
Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Reviewed-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/phylink.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/phylink.h b/include/linux/phylink.h index c36fb41a7d90..d81a714cfbbd 100644 --- a/include/linux/phylink.h +++ b/include/linux/phylink.h @@ -490,4 +490,7 @@ void phylink_mii_c22_pcs_an_restart(struct mdio_device *pcs); void phylink_mii_c45_pcs_get_state(struct mdio_device *pcs, struct phylink_link_state *state); + +void phylink_decode_usxgmii_word(struct phylink_link_state *state, + uint16_t lpa); #endif |