]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: dsa: mxl862xx: reject DSA_PORT_TYPE_DSA
authorDaniel Golle <daniel@makrotopia.org>
Tue, 7 Apr 2026 17:30:27 +0000 (18:30 +0100)
committerJakub Kicinski <kuba@kernel.org>
Fri, 10 Apr 2026 23:03:44 +0000 (16:03 -0700)
commit3a4056ec7ec8f71ae9722f86d3cfbc4589deeac4
treec448bffbf240e3d48f647db5e55e5312e4812784
parentd6aa47704561b2e363821d243fd405da1ac06bcb
net: dsa: mxl862xx: reject DSA_PORT_TYPE_DSA

DSA links aren't supported by the mxl862xx driver.

Instead of returning early from .port_setup when called for
DSA_PORT_TYPE_DSA ports rather return -EOPNOTSUPP and show an error
message.

The desired side-effect is that the framework will switch the port to
DSA_PORT_TYPE_UNUSED, so we can stop caring about DSA_PORT_TYPE_DSA in
all other places.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Link: https://patch.msgid.link/b686f3a22d8a6e7d470e7aa98da811a996a229b9.1775581804.git.daniel@makrotopia.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/dsa/mxl862xx/mxl862xx.c