diff mbox series

[net-next,v3,2/9] net: phylink: consider QSGMII interface mode in phylink_mii_c22_pcs_get_state

Message ID 20200621225451.12435-3-ioana.ciornei@nxp.com
State Changes Requested
Delegated to: David Miller
Headers show
Series net: phy: add Lynx PCS MDIO module | expand

Commit Message

Ioana Ciornei June 21, 2020, 10:54 p.m. UTC
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>
---
Changes in v2:
 - none
Changes in v3:
 - none

 drivers/net/phy/phylink.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/drivers/net/phy/phylink.c b/drivers/net/phy/phylink.c
index f04ccdedda40..117ddbcaaa6e 100644
--- a/drivers/net/phy/phylink.c
+++ b/drivers/net/phy/phylink.c
@@ -2186,6 +2186,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;