]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: dsa: lantiq_gswip: support offset of MII registers
authorDaniel Golle <daniel@makrotopia.org>
Sat, 30 Aug 2025 02:34:13 +0000 (03:34 +0100)
committerJakub Kicinski <kuba@kernel.org>
Wed, 3 Sep 2025 00:45:42 +0000 (17:45 -0700)
commit5157820326f34e41d69b6a93d3c1c8302354c024
tree1a3d5b84ffc72203bbfca05cc0efdeef137035de
parent17420a7fe5e260b8f5076b9e9d820da629668f8e
net: dsa: lantiq_gswip: support offset of MII registers

The MaxLinear GSW1xx family got a single (R)(G)MII port at index 5 but
the registers MII_PCDU and MII_CFG are those of port 0.
Allow applying an offset for the port index to access those registers.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Reviewed-by: Hauke Mehrtens <hauke@hauke-m.de>
Link: https://patch.msgid.link/88145164c1f948e4ae9b04706f408359cf54223c.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