]> git.baikalelectronics.ru Git - 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)
commitc2038ba7b5005430751bd200efd1eeb7afacc5fd
tree848efcc4125ae5e61aa6988c2382ec0762b3d2a0
parentfb5af74e4ce374cdac7ca1e9cfdeb77349cc8ce9
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