]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
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)
committerRoxana Nicolescu <roxana.nicolescu@canonical.com>
Mon, 2 Oct 2023 15:19:12 +0000 (17:19 +0200)
commitf75e7fc1036fd6de62d35269afd03fb373a92e27
tree6acd179c1e16fd6db64ddc9a7b182fc8eb7fc575
parent4e057bdfc87dd5caf106b45ff6a1fbb4352716c8
net: phylink: use a dedicated helper to parse usgmii control word

BugLink: https://bugs.launchpad.net/bugs/2033931
[ Upstream commit 923454c0368b8092e9d05c020f50abca577e7290 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/net/phy/phylink.c