]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: dsa: lantiq_gswip: ignore SerDes modes in phylink_mac_config()
authorDaniel Golle <daniel@makrotopia.org>
Sat, 30 Aug 2025 02:33:48 +0000 (03:33 +0100)
committerJakub Kicinski <kuba@kernel.org>
Wed, 3 Sep 2025 00:45:42 +0000 (17:45 -0700)
commit17420a7fe5e260b8f5076b9e9d820da629668f8e
tree516c2e81378ab9e0403302ec84059a04c201bf50
parent7a1eaef0a791e017b67c71836f5bb42d669ade28
net: dsa: lantiq_gswip: ignore SerDes modes in phylink_mac_config()

We can safely ignore SerDes interface modes 1000Base-X, 2500Base-X and
SGMII in phylink_mac_config() as they are being taken care of by the PCS
and the SGMII port anyway doesn't have MII_CFG and MII_PCDU registers
and hence gswip_phylink_mac_config() is already a no-op apart from
outputing a misleading error message.

Return early in case of SerDes interface modes to avoid printing that
error message.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Reviewed-by: Hauke Mehrtens <hauke@hauke-m.de>
Link: https://patch.msgid.link/dcb066d6a02e6340314b5ff4f73937757a4f8eb3.1756520811.git.daniel@makrotopia.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/dsa/lantiq/lantiq_gswip.c