From: Ioana Ciornei Date: Sun, 30 Aug 2020 08:33:59 +0000 (+0300) Subject: net: phylink: consider QSGMII interface mode in phylink_mii_c22_pcs_get_state X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=29f02ee47764f6f62642ecf583266bb3538495c8;p=linux.git net: phylink: consider QSGMII interface mode in phylink_mii_c22_pcs_get_state 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 Reviewed-by: Russell King Signed-off-by: David S. Miller --- diff --git a/drivers/net/phy/phylink.c b/drivers/net/phy/phylink.c index 4adc904ad5c11..d0738302a9588 100644 --- a/drivers/net/phy/phylink.c +++ b/drivers/net/phy/phylink.c @@ -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;