devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: netdev-bot+sashiko@kernel.org
To: linusw@kernel.org
Cc: woojung.huh@microchip.com, UNGLinuxDriver@microchip.com,
	andrew@lunn.ch, olteanv@gmail.com, davem@davemloft.net,
	edumazet@google.com, kuba@kernel.org, pabeni@redhat.com,
	robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org,
	marex@denx.de, horms@kernel.org, linux@armlinux.org.uk,
	nb@tipi-net.de, netdev@vger.kernel.org,
	devicetree@vger.kernel.org
Subject: Re: [PATCH net-next v15 4/4] net: dsa: ks8995: Delete surplus driver
Date: Thu, 17 Sep 2026 13:22:30 +0000	[thread overview]
Message-ID: <178965135045.22033.10731767071063010304@kernel.org> (raw)
In-Reply-To: <20260916-ks8995-to-ksz8-v15-4-8825ff5fd4be@kernel.org>

Thank you for your contribution! Sashiko AI review found 1 potential
issue(s) to consider:

Critical: 0 · High: 0 · Medium: 1 · Low: 0

- [Medium] Commit message claims the two in-tree boards "continue to be
  supported by the replacement driver without regressions", but the…

--

net: dsa: ks8995: Delete surplus driver

This removes drivers/net/dsa/ks8995.c and its Makefile entry, leaving
NET_DSA_KS8995 behind in Kconfig as a transitional stub that selects the
Microchip KSZ SPI driver instead.

> diff --git a/drivers/net/dsa/Kconfig b/drivers/net/dsa/Kconfig
> index e3d88f41fecf7..fe8cd5338fda5 100644
> --- a/drivers/net/dsa/Kconfig
> +++ b/drivers/net/dsa/Kconfig
> @@ -112,11 +112,13 @@ config NET_DSA_RZN1_A5PSW
>  config NET_DSA_KS8995
>  	tristate "Micrel KS8995 family 5-ports 10/100 Ethernet switches"
>  	depends on SPI
> -	depends on NET_DSA_MICROCHIP_KSZ_SPI = n
> -	select NET_DSA_TAG_NONE
> +	select NET_DSA_MICROCHIP_KSZ_COMMON
> +	select NET_DSA_MICROCHIP_KSZ_SPI

[Severity: Medium]
The commit message says the two in-tree boards "both use KS8995XA hardware
and continue to be supported by the replacement driver without regressions".
Is that description accurate with respect to tagging and port isolation?

The deleted driver used no switch tag and did not program the switch at all:

drivers/net/dsa/ks8995.c:
	static enum
	dsa_tag_protocol ks8995_get_tag_protocol(struct dsa_switch *ds, ...)
	{
		/* This switch actually uses the 6 byte KS8995 protocol */
		return DSA_TAG_PROTO_NONE;
	}

	static int ks8995_setup(struct dsa_switch *ds)
	{
		return 0;
	}

The replacement path for the same "micrel,ks8995" compatible reports a
different protocol and enables special tagging:

drivers/net/dsa/microchip/ksz8.c:ksz8995xa_get_tag_protocol()
	return DSA_TAG_PROTO_KS8995;

drivers/net/dsa/microchip/ksz8.c:ksz8_setup()
	if (ksz_is_ksz8995xa(dev))
		ksz_cfg(dev, REG_SW_CTRL_9, SW_SPECIAL_TAG, true);

ksz8_port_setup() also programs per-port tag insert/remove and restricts
standalone user ports to the upstream port via ksz8_cfg_port_member() with
member = BIT(dsa_upstream_port(ds, port)).

So on intel-ixp42x-linksys-wrv54g.dts and
intel-ixp42x-actiontec-mi424wr.dtsi, frames on the CPU MII link now carry
the switch tag, and user ports are isolated until a bridge is created, so
LAN-to-LAN hardware forwarding no longer happens by default.

Until this patch users could stay on the old behaviour because the two
symbols were mutually exclusive:

	depends on NET_DSA_MICROCHIP_KSZ_SPI = n

Removing that line makes the switch to the new tagging and port semantics
unavoidable. Could the commit message describe this behaviour change rather
than stating there are no regressions, given it also notes that the MA and E
variants were never verified with the replacement driver?

> +	select NET_DSA_MICROCHIP_KSZ_SPI
>  	help
> -	  This driver supports the Micrel KS8995 family of 10/100 Mbit ethernet
> -	  switches, managed over SPI.
> +	  This is a transitional option for users who had NET_DSA_KS8995
> +	  enabled. It automatically enables the new NET_DSA_MICROCHIP_KSZ_SPI
> +	  driver which supersedes it. This option will be removed in a future
> +	  kernel release.

[ ... ]

-- 
Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20260916-ks8995-to-ksz8-v15-0-8825ff5fd4be%40kernel.org

  reply	other threads:[~2026-09-17 13:22 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-16 10:20 [PATCH net-next v15 0/4] net: dsa: microchip: Add support for KSZ8995XA/KS8995XA Linus Walleij
2026-09-16 10:20 ` [PATCH net-next v15 1/4] dt-bindings: net: dsa: microchip: Add KSZ8995XA Linus Walleij
2026-09-17 13:22   ` netdev-bot+sashiko
2026-09-17 21:15     ` Linus Walleij
2026-09-16 10:20 ` [PATCH net-next v15 2/4] net: dsa: tag_ks8995: Add the KS8995 tag handling Linus Walleij
2026-09-17 13:22   ` netdev-bot+sashiko
2026-09-17 21:18     ` Linus Walleij
2026-09-19  0:48       ` Jakub Kicinski
2026-09-16 10:21 ` [PATCH net-next v15 3/4] net: dsa: microchip: Support Microchip KSZ8995XA / KS8995XA Linus Walleij
2026-09-17 10:21   ` sashiko-bot
2026-09-17 21:24     ` Linus Walleij
2026-09-17 13:22   ` netdev-bot+sashiko
2026-09-17 21:28     ` Linus Walleij
2026-09-16 10:21 ` [PATCH net-next v15 4/4] net: dsa: ks8995: Delete surplus driver Linus Walleij
2026-09-17 13:22   ` netdev-bot+sashiko [this message]
2026-09-17 21:33     ` Linus Walleij
2026-09-19  1:00 ` [PATCH net-next v15 0/4] net: dsa: microchip: Add support for KSZ8995XA/KS8995XA patchwork-bot+netdevbpf

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178965135045.22033.10731767071063010304@kernel.org \
    --to=netdev-bot+sashiko@kernel.org \
    --cc=UNGLinuxDriver@microchip.com \
    --cc=andrew@lunn.ch \
    --cc=conor+dt@kernel.org \
    --cc=davem@davemloft.net \
    --cc=devicetree@vger.kernel.org \
    --cc=edumazet@google.com \
    --cc=horms@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=kuba@kernel.org \
    --cc=linusw@kernel.org \
    --cc=linux@armlinux.org.uk \
    --cc=marex@denx.de \
    --cc=nb@tipi-net.de \
    --cc=netdev@vger.kernel.org \
    --cc=olteanv@gmail.com \
    --cc=pabeni@redhat.com \
    --cc=robh@kernel.org \
    --cc=woojung.huh@microchip.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).