OSDN Git Service

net: phylink: use a dedicated helper to parse usgmii control word
authorMaxime Chevallier <maxime.chevallier@bootlin.com>
Fri, 9 Jun 2023 08:03:05 +0000 (10:03 +0200)
committerJakub Kicinski <kuba@kernel.org>
Mon, 12 Jun 2023 23:51:20 +0000 (16:51 -0700)
commit923454c0368b8092e9d05c020f50abca577e7290
treeb504e0ad4a935217235b5262c8ee4fc6550fdcb5
parentb9dc1046edfeb7d9dbc2272c8d9ad5a8c47f3199
net: phylink: use a dedicated helper to parse usgmii control word

Q-USGMII is a derivative of USGMII, that uses a specific formatting for
the control word. The layout is close to the USXGMII control word, but
doesn't support speeds over 1Gbps. Use a dedicated decoding logic for
the USGMII control word, re-using USXGMII definitions but only considering
10/100/1000Mbps speeds

Fixes: 5e61fe157a27 ("net: phy: Introduce QUSGMII PHY mode")
Signed-off-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/phylink.c