]> git.baikalelectronics.ru Git - kernel.git/commitdiff
net: phylink: consider QSGMII interface mode in phylink_mii_c22_pcs_get_state
authorIoana Ciornei <ioana.ciornei@nxp.com>
Sun, 30 Aug 2020 08:33:59 +0000 (11:33 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 31 Aug 2020 19:52:33 +0000 (12:52 -0700)
The same link partner advertisement word is used for both QSGMII and
SGMII, thus treat both interface modes using the same
phylink_decode_sgmii_word() function.

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

index 4adc904ad5c117ca4916a7f93ef489d2869c796c..d0738302a95886e7b74ddce9bf90c44c58f11b20 100644 (file)
@@ -2406,6 +2406,7 @@ void phylink_mii_c22_pcs_get_state(struct mdio_device *pcs,
                break;
 
        case PHY_INTERFACE_MODE_SGMII:
+       case PHY_INTERFACE_MODE_QSGMII:
                phylink_decode_sgmii_word(state, lpa);
                break;