]> git.ipfire.org Git - thirdparty/linux.git/commit
net: dsa: lantiq_gswip: support model-specific mac_select_pcs()
authorDaniel Golle <daniel@makrotopia.org>
Sat, 30 Aug 2025 02:33:00 +0000 (03:33 +0100)
committerJakub Kicinski <kuba@kernel.org>
Wed, 3 Sep 2025 00:45:42 +0000 (17:45 -0700)
commit7a1eaef0a791e017b67c71836f5bb42d669ade28
tree7ce4b6e706043f495fd975926797dc808560bd6b
parentcb477c30512db29325c0503ba96a6158a61b7e7c
net: dsa: lantiq_gswip: support model-specific mac_select_pcs()

Call mac_select_pcs() function if provided in struct gswip_hwinfo.
The MaxLinear GSW1xx series got one port wired to a SerDes PCS and
PHY which can do 1000Base-X, 2500Base-X and SGMII. Support for the
SerDes port will be provided using phylink_pcs, so provide a
convenient way for mac_select_pcs() to differ based on the hardware
model.

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