]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: dsa: lantiq_gswip: introduce bitmap for MII ports
authorDaniel Golle <daniel@makrotopia.org>
Fri, 22 Aug 2025 16:11:57 +0000 (17:11 +0100)
committerJakub Kicinski <kuba@kernel.org>
Mon, 25 Aug 2025 22:15:45 +0000 (15:15 -0700)
commitdc6156976d2efd95173b81ef468e03236780a652
tree3baa6f6cd61ebe45f924b85f8b602b8928be4ac3
parent476c001a554dd577073a1b9e8a7ff0889632d31f
net: dsa: lantiq_gswip: introduce bitmap for MII ports

Instead of relying on hard-coded numbers for MII ports, introduce
a bitmap for MII ports.
This is done in order to prepare for supporting MaxLinear GSW1xx ICs
which got a different layout of ports.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Link: https://patch.msgid.link/019fc8ed06f2317976eac143320d1dc046e8f392.1755878232.git.daniel@makrotopia.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/dsa/lantiq_gswip.c
drivers/net/dsa/lantiq_gswip.h