]> git.hungrycats.org Git - linux/commit
net: dsa: realtek: rtl8365mb: reject unsupported topologies
authorLuiz Angelo Daros de Luca <luizluca@gmail.com>
Sat, 6 Jun 2026 08:29:26 +0000 (05:29 -0300)
committerJakub Kicinski <kuba@kernel.org>
Wed, 10 Jun 2026 02:35:41 +0000 (19:35 -0700)
commit36c572fd60d6bf2f9631088833c162203907c9ca
treeb67ae5e5cf7ac6353b3f04e90f93bc52b760f47f
parenta543687227d86b1f4401f395abaf7f3f710fe964
net: dsa: realtek: rtl8365mb: reject unsupported topologies

Explicitly enforce the presence of a CPU port (-EINVAL) and reject DSA
cascade links (-EOPNOTSUPP) during setup to prevent silent failures.

These topologies were already non-functional. Without a CPU port, the
driver does not activate CPU tagging. Additionally, the switch hardware
was not designed to be cascaded, and DSA links never worked because
CPU tagging is not enabled for them.

Reviewed-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Reviewed-by: Linus Walleij <linusw@kernel.org>
Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
Link: https://patch.msgid.link/20260606-realtek_forward-v13-2-b9e409687cbe@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/dsa/realtek/rtl8365mb.c