]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
net: phylink: add helper function to decode USXGMII word
authorIoana Ciornei <ioana.ciornei@nxp.com>
Sun, 30 Aug 2020 08:33:58 +0000 (11:33 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 31 Aug 2020 19:52:33 +0000 (12:52 -0700)
commitafd6220999d4932616322f8a893371f8d0567a2a
tree848efcc4125ae5e61aa6988c2382ec0762b3d2a0
parentd60432994ea2ec559f60951260f381be9e460b64
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>
drivers/net/phy/phylink.c
include/linux/phylink.h