Thread View: linux.kernel.netdev
63 messages
63 total messages
Page 2 of 2
Started by Prabhakar
Fri, 20 Nov 2026 00:25
Page 2 of 2 • 63 total messages
Re: [PATCH net-next v5 12/24] net: dsa: rzn1-a5psw: Add support for optional reset control
Author: "Lad, Prabhakar"
Date: Mon, 23 Nov 2026 12:28
Date: Mon, 23 Nov 2026 12:28
20 lines
13582 bytes
13582 bytes
Hi Andrew, Thank you for the review. On Fri, Nov 20, 2026 at 3:32 AM Andrew Lunn <andrew@lunn.ch> wrote: > > > This change prepares the driver for use on Renesas RZ/T2H and RZ/N2H > > SoCs, where the ETHSW IP block is connected to a dedicated reset line > > that must be controlled by software. > > So it is not optional for those? At least the DT binding should mark > it as required for these compatibles. > Yes the resets are not present on RZ/N1 hence I made it optional. For the RZ/T2H SoC where the reset is present the DT binding marks resets as a required property. Cheers, Prabhakar
Re: [PATCH net-next v5 02/24] net: dsa: tag_rzn1_a5psw: Add RZ/T2H ETHSW tag protocol support
Author: netdev-bot+sashiko
Date: Tue, 24 Nov 2026 02:26
Date: Tue, 24 Nov 2026 02:26
107 lines
12266 bytes
12266 bytes
Thank you for your contribution! Sashiko AI review found more severe
issue(s) in other patches of this series. This mail is only an FYI, in case
you want to address the nit picks below when you respin.
Low priority / nit picks for your consideration:
- [Low] net/dsa/tag_rzn1_a5psw.c now registers two tag drivers through
module_dsa_tag_drivers(): 'a5psw' (DSA_TAG_PROTO_RZN1_A5PSW) and…
Pre-existing issues:
- [High] This problem wasn't introduced by this patch, but the patch
moves the line and copies its pattern for the new tagger.
--
net: dsa: tag_rzn1_a5psw: Add RZ/T2H ETHSW tag protocol support
This commit adds a new DSA_TAG_PROTO_RZT2H_ETHSW tag protocol for the
RZ/T2H ETHSW. It uses the same tagged frame layout as the RZ/N1 A5PSW,
but a different ControlData bit layout. Both taggers are now registered
from net/dsa/tag_rzn1_a5psw.c through module_dsa_tag_drivers().
> diff --git a/net/dsa/tag_rzn1_a5psw.c b/net/dsa/tag_rzn1_a5psw.c
> index aab0ec143c77c..3dff661fa58cb 100644
> --- a/net/dsa/tag_rzn1_a5psw.c
> +++ b/net/dsa/tag_rzn1_a5psw.c
[ ... ]
> @@ -111,8 +112,24 @@ static const struct dsa_device_ops a5psw_netdev_ops = {
> .rcv = a5psw_tag_rcv,
> .needed_headroom = A5PSW_TAG_LEN,
> };
> +MODULE_ALIAS_DSA_TAG_DRIVER(DSA_TAG_PROTO_A5PSW, A5PSW_NAME);
[Severity: High]
This is a pre-existing issue, not one introduced by this patch. Since the
line is being moved anyway, should the token be DSA_TAG_PROTO_RZN1_A5PSW?
MODULE_ALIAS_DSA_TAG_DRIVER() in net/dsa/tag.h appends _VALUE to the token
and stringifies the result:
#define MODULE_ALIAS_DSA_TAG_DRIVER(__proto, __name) \
MODULE_ALIAS(DSA_TAG_DRIVER_ALIAS __name); \
MODULE_ALIAS(DSA_TAG_DRIVER_ALIAS "id-" \
__stringify(__proto##_VALUE))
DSA_TAG_PROTO_A5PSW_VALUE is not defined anywhere. include/net/dsa.h only
has:
#define DSA_TAG_PROTO_RZN1_A5PSW_VALUE 26
So the module gets the literal alias
"dsa_tag:id-DSA_TAG_PROTO_A5PSW_VALUE" instead of "dsa_tag:id-26". It also
doesn't match .proto = DSA_TAG_PROTO_RZN1_A5PSW in a5psw_netdev_ops above.
When the RZ/N1 switch driver returns DSA_TAG_PROTO_RZN1_A5PSW from
get_tag_protocol(), the lookup goes:
dsa_port_parse_cpu()
dsa_tag_driver_get_by_id()
request_module("%sid-%d", DSA_TAG_DRIVER_ALIAS, tag_protocol);
This requests "dsa_tag:id-26". No alias matches, so tag_rzn1_a5psw.ko is
not loaded. dsa_port_parse_cpu() then turns the -ENOPROTOOPT into a probe
deferral:
if (PTR_ERR(tag_ops) == -ENOPROTOOPT)
return -EPROBE_DEFER;
Won't the RZ/N1 switch keep deferring its probe until someone loads the
tagger module by hand? multi_v7_defconfig sets CONFIG_NET_DSA_RZN1_A5PSW=m,
so the tagger is built as a module in a stock config.
The new ETHSW alias added by this patch does resolve, because
DSA_TAG_PROTO_RZT2H_ETHSW_VALUE exists. After this patch, ID-based
autoloading of the shared module works for RZ/T2H but not for RZ/N1.
The DSA_TAG_PROTO_A5PSW token predates this series. Commit 94793a56b3df
("net: dsa: provide a second modalias to tag proto drivers based on their
name") changed this line and kept the token. It is still there at the end
of the series.
> +DSA_TAG_DRIVER(a5psw_netdev_ops);
[ ... ]
> +module_dsa_tag_drivers(dsa_tag_driver_array);
>
> MODULE_DESCRIPTION("DSA tag driver for Renesas RZ/N1 A5PSW switch");
[Severity: Low]
This isn't a bug, but should MODULE_DESCRIPTION() be updated as well? The
module now also registers the "ethsw" tagger for RZ/T2H, but the
description still mentions only the RZ/N1 A5PSW.
A later commit in the series, "net: dsa: Kconfig: Expand config description
to cover RZ/T2H and RZ/N2H ETHSW", updates the NET_DSA_TAG_RZN1_A5PSW
Kconfig prompt. No patch in the series changes MODULE_DESCRIPTION().
> MODULE_LICENSE("GPL v2");
> -MODULE_ALIAS_DSA_TAG_DRIVER(DSA_TAG_PROTO_A5PSW, A5PSW_NAME);
> -module_dsa_tag_driver(a5psw_netdev_ops);
--
Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261120002549.1908299-1-prabhakar.mahadev-lad.rj%40bp.renesas.com
Re: [PATCH net-next v5 03/24] net: dsa: Kconfig: Expand config description to cover RZ/T2H and RZ/N2H ETHSW
Author: netdev-bot+sashiko
Date: Tue, 24 Nov 2026 02:26
Date: Tue, 24 Nov 2026 02:26
114 lines
12795 bytes
12795 bytes
Thank you for your contribution! Sashiko AI review found more severe
issue(s) in other patches of this series. This mail is only an FYI, in case
you want to address the nit picks below when you respin.
Low priority / nit picks for your consideration:
- [Low] The NET_DSA_TAG_RZN1_A5PSW help text that this patch rewrites in
net/dsa/Kconfig (lines 206-207) says "These switches use an 8-byte tag…
- [Low] This patch widens the Kconfig prompt and help for
NET_DSA_TAG_RZN1_A5PSW to cover the RZ/T2H and RZ/N2H ETHSW.
- [Low] The concern: the new Kconfig text claims ETHSW tagging support
for RZ/T2H and RZ/N2H, but no in-tree switch driver ever returns…
Pre-existing issues:
- [High] This problem wasn't introduced by this patch, but the ID
modalias for the RZ/N1 A5PSW tagger is broken.
--
net: dsa: Kconfig: Expand config description to cover RZ/T2H and RZ/N2H ETHSW
This commit updates the prompt and help text of NET_DSA_TAG_RZN1_A5PSW.
They now say that the ETHSW blocks in the Renesas RZ/T2H and RZ/N2H SoCs
use the same tagging format.
> diff --git a/net/dsa/Kconfig b/net/dsa/Kconfig
> index bdeb60af764b2..3c18314aee956 100644
> --- a/net/dsa/Kconfig
> +++ b/net/dsa/Kconfig
> @@ -199,11 +199,12 @@ config NET_DSA_TAG_RTL8_4
> switches with 8 byte protocol 4 tags, such as the Realtek RTL8365MB-VC.
>
> config NET_DSA_TAG_RZN1_A5PSW
> - tristate "Tag driver for Renesas RZ/N1 A5PSW switch"
> + tristate "Tag driver for Renesas RZ/N1 A5PSW and RZ/T2H, RZ/N2H ETHSW"
[Severity: Low]
Should the MODULE_DESCRIPTION() in net/dsa/tag_rzn1_a5psw.c be updated to
match this prompt?
An earlier patch in this series, "net: dsa: tag_rzn1_a5psw: Add RZ/T2H
ETHSW tag protocol support", made the module register a second protocol
(ethsw_netdev_ops, DSA_TAG_PROTO_RZT2H_ETHSW). The description still reads:
net/dsa/tag_rzn1_a5psw.c:
MODULE_DESCRIPTION("DSA tag driver for Renesas RZ/N1 A5PSW switch");
So modinfo still lists the module as RZ/N1 A5PSW only. No later patch in
the series changes this string.
> help
> - Say Y or M if you want to enable support for tagging frames for
> - Renesas RZ/N1 embedded switch that uses an 8 byte tag located after
> - destination MAC address.
> + Say Y or M if you want to enable frame tagging support for embedded
> + switches found on Renesas RZ/N1 (A5PSW) and RZ/T2H, RZ/N2H (ETHSW)
> + SoCs. These switches use an 8-byte tag located after the destination
> + MAC address.
[Severity: Low]
Is "after the destination MAC address" accurate here? The layout comment
in net/dsa/tag_rzn1_a5psw.c puts the tag after the source MAC:
/* To define the outgoing port and to discover the incoming port a TAG is
* inserted after Src MAC :
*
* Dest MAC Src MAC TAG Type
a5psw_tag_xmit() writes the tag at the EtherType position:
/* make room between MACs and Ether-Type to insert tag */
dsa_alloc_etype_header(skb, A5PSW_TAG_LEN);
ptag = dsa_etype_header_pos_tx(skb);
Here dsa_etype_header_pos_tx() returns skb->data + 2 * ETH_ALEN.
The old text had the same mistake. Since this patch rewrites the sentence
and extends it to RZ/T2H and RZ/N2H, could it say "after the source MAC
address" (or "between the MAC addresses and the EtherType") instead?
[Severity: High]
This is a pre-existing issue, not one introduced by this patch. The id
modalias for the A5PSW protocol in net/dsa/tag_rzn1_a5psw.c looks broken:
MODULE_ALIAS_DSA_TAG_DRIVER(DSA_TAG_PROTO_A5PSW, A5PSW_NAME);
MODULE_ALIAS_DSA_TAG_DRIVER() stringifies __proto##_VALUE.
include/net/dsa.h only defines DSA_TAG_PROTO_RZN1_A5PSW_VALUE (26), and
there is no DSA_TAG_PROTO_A5PSW_VALUE. So the alias comes out as the
literal "dsa_tag:id-DSA_TAG_PROTO_A5PSW_VALUE" instead of "dsa_tag:id-26".
With CONFIG_NET_DSA_TAG_RZN1_A5PSW=m and the module not yet loaded, can
the RZ/N1 switch ever finish probing?
a5psw_get_tag_protocol() returns DSA_TAG_PROTO_RZN1_A5PSW
dsa_port_parse_cpu()
dsa_tag_driver_get_by_id(26)
request_module("dsa_tag:id-26") <- no matching alias
-ENOPROTOOPT -> -EPROBE_DEFER
The switch would keep deferring until someone loads tag_rzn1_a5psw.ko by
hand.
The new ETHSW alias in the same file uses DSA_TAG_PROTO_RZT2H_ETHSW, which
does have a _VALUE macro. The earlier patch in this series rewrote the
A5PSW line but kept the old token.
Should this be MODULE_ALIAS_DSA_TAG_DRIVER(DSA_TAG_PROTO_RZN1_A5PSW,
A5PSW_NAME)?
--
Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261120002549.1908299-1-prabhakar.mahadev-lad.rj%40bp.renesas.com
Re: [PATCH net-next v5 04/24] net: pcs: rzn1-miic: Select ETHSW port speed through SWCTRL
Author: netdev-bot+sashiko
Date: Tue, 24 Nov 2026 02:26
Date: Tue, 24 Nov 2026 02:26
129 lines
13092 bytes
13092 bytes
Thank you for your contribution! Sashiko AI review found 2 potential
issue(s) to consider.
Critical: 0 · High: 0 · Medium: 1 · Low: 1
If you believe none of the issues are legitimate, please reply to each
issue of Medium severity or higher and explain why the AI is wrong.
If any of them are legitimate and you plan to respin, please let patchwork
know by including "pw-bot: cr" as a separate line at the end of your reply
(one such reply per series is enough).
- [Medium] Possibly incomplete MAC configuration for duplex on RZ/T2H/N2H
ETHSW ports.
- [Low] This patch leaves a comment in miic_init_hw()
(drivers/net/pcs/pcs-rzn1-miic.c) that is now wrong for RZ/T2H.
--
net: pcs: rzn1-miic: Select ETHSW port speed through SWCTRL
On RZ/T2H and RZ/N2H, this patch programs SWCTRL.SET10/SET1000 from
miic_link_up() for converters routed to ETHSW ports. The commit message
says COMMAND_CONFIG_Pn.ENA_10 has no effect on the actual MAC speed on
those parts. The matched MODCTRL configuration is now kept in struct miic,
so the switch port that a converter is routed to can be looked up at
link-up time.
> diff --git a/drivers/net/pcs/pcs-rzn1-miic.c b/drivers/net/pcs/pcs-rzn1-miic.c
> index 682a73cf5a87d..96f4cb533a719 100644
> --- a/drivers/net/pcs/pcs-rzn1-miic.c
> +++ b/drivers/net/pcs/pcs-rzn1-miic.c
[ ... ]
> @@ -383,6 +396,27 @@ static int miic_config(struct phylink_pcs *pcs, unsigned int neg_mode,
> return 0;
> }
>
> +static void miic_swctrl_set_speed(struct miic *miic, int port, int speed)
> +{
> + const struct miic_of_data *of_data = miic->of_data;
> + u8 conf = miic->conv_conf[port + 1];
> + u32 val = 0;
> + int sw_port;
> +
> + if (conf < of_data->swctrl_conf_start ||
> + conf >= of_data->swctrl_conf_start + of_data->swctrl_conf_count)
> + return;
> +
> + sw_port = conf - of_data->swctrl_conf_start;
> +
> + if (speed == SPEED_1000)
> + val = MIIC_SWCTRL_SET_SPEED_1000(sw_port);
> + else if (speed == SPEED_10)
> + val = MIIC_SWCTRL_SET_SPEED_10(sw_port);
> +
> + miic_reg_rmw(miic, MIIC_SWCTRL, MIIC_SWCTRL_SET_SPEED_MASK(sw_port), val);
> +}
[Severity: Low]
This isn't a bug, but on RZ/T2H the comment in miic_init_hw() above the
probe-time SWCTRL/SWDUPC writes now seems to contradict this function:
drivers/net/pcs/pcs-rzn1-miic.c:miic_init_hw() {
...
/* Disable speed/duplex control from these registers, datasheet
* says switch registers should be used to setup switch port
* speed and duplex.
*/
miic_reg_writel(miic, MIIC_SWCTRL, 0x0);
miic_reg_writel(miic, MIIC_SWDUPC, 0x0);
...
}
On RZ/T2H, writing SWCTRL = 0 does not hand speed control to the switch.
It selects 100 Mbps on every ETHSW port, and miic_swctrl_set_speed() now
uses SWCTRL as the real speed control.
Could this comment be updated to say it describes RZ/N1 only? Otherwise a
later cleanup that trusts it could drop the SWCTRL programming. The
comment is still unchanged at the end of the series.
> static void miic_link_up(struct phylink_pcs *pcs, unsigned int neg_mode,
> phy_interface_t interface, int speed, int duplex)
> {
> @@ -415,6 +449,8 @@ static void miic_link_up(struct phylink_pcs *pcs, unsigned int neg_mode,
>
> miic_reg_rmw(miic, MIIC_CONVCTRL(port),
> (MIIC_CONVCTRL_CONV_SPEED | MIIC_CONVCTRL_FULLD), val);
> +
> + miic_swctrl_set_speed(miic, port, speed);
> }
[Severity: Medium]
Does MIIC_SWDUPC need the same handling as SWCTRL on RZ/T2H?
Only speed is copied into the switch-control registers here. In
miic_link_up(), duplex only sets MIIC_CONVCTRL_FULLD on the converter.
MIIC_SWDUPC keeps the 0 written in miic_init_hw() and is never written
again.
On the switch side, half duplex is only set through COMMAND_CONFIG. That
is the same register block whose ENA_10 bit the commit message says has
no effect:
drivers/net/dsa/rzn1_a5psw.c:a5psw_phylink_mac_link_up() {
...
if (duplex == DUPLEX_HALF)
cmd_cfg |= A5PSW_CMD_CFG_HD_ENA;
...
}
a5psw_phylink_get_caps() advertises MAC_100 | MAC_10 on user ports, so
phylink can resolve a 10/100 half-duplex link.
Suppose SWDUPC selects duplex on RZ/T2H the way SWCTRL selects speed, and
HD_ENA is as ineffective as ENA_10. The MAC would then stay at whatever
duplex SWDUPC = 0 encodes, not the negotiated duplex. Could that cause a
duplex mismatch on half-duplex links?
Nothing in the tree documents SWDUPC semantics on RZ/T2H, so this would
need checking against the hardware manual. Testing with full duplex only
would not show it. RZ/T2H ETHSW ports only carry traffic once a later
patch in this series, "net: dsa: rzn1-a5psw: Add support for RZ/T2H
Ethernet switch", is applied.
--
Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261120002549.1908299-1-prabhakar.mahadev-lad.rj%40bp.renesas.com
Re: [PATCH net-next v5 07/24] dt-bindings: net: dsa: renesas,rzn1-a5psw: Add RZ/T2H and RZ/N2H ETHSW support
Author: netdev-bot+sashiko
Date: Tue, 24 Nov 2026 02:26
Date: Tue, 24 Nov 2026 02:26
74 lines
10817 bytes
10817 bytes
Thank you for your contribution! Sashiko AI review found more severe issue(s) in other patches of this series. This mail is only an FYI, in case you want to address the nit picks below when you respin. Low priority / nit picks for your consideration: - [Low] This patch adds `interrupts` and `interrupt-names` to the top- level `required:` list in… -- dt-bindings: net: dsa: renesas,rzn1-a5psw: Add RZ/T2H and RZ/N2H ETHSW support This patch extends the A5PSW DSA binding to cover the ETHSW variant found on the Renesas RZ/T2H and RZ/N2H SoCs. It adds dedicated compatible strings, with RZ/T2H used as the fallback for RZ/N2H, plus per-variant constraints on interrupts, clocks, resets and port numbers. It also adds a co-maintainer. > diff --git a/Documentation/devicetree/bindings/net/dsa/renesas,rzn1-a5psw.yaml b/Documentation/devicetree/bindings/net/dsa/renesas,rzn1-a5psw.yaml > index 30f25b06d62c4..c087291361760 100644 > --- a/Documentation/devicetree/bindings/net/dsa/renesas,rzn1-a5psw.yaml > +++ b/Documentation/devicetree/bindings/net/dsa/renesas,rzn1-a5psw.yaml [ ... ] > @@ -86,6 +158,46 @@ required: > - clock-names > - power-domains > - ethernet-ports > + - interrupts > + - interrupt-names [Severity: Low] Should this change to RZ/N1 be mentioned in the commit message? interrupts and interrupt-names are added to the top-level required list, not to the RZ/T2H then: block. That makes them mandatory for the existing renesas,r9a06g032-a5psw / renesas,rzn1-a5psw compatibles too. The commit message only talks about adding the ETHSW compatibles, the RZ/N2H fallback and the co-maintainer entry. It does not say that the RZ/N1 schema gets stricter. drivers/net/dsa/rzn1_a5psw.c does not request any IRQ, so no driver depends on this. The in-tree r9a06g032.dtsi already has all five interrupts and their names, so in-tree dtbs_check still passes. An RZ/N1 DT without these properties used to validate, but it would fail now. Could these two entries go into the RZ/T2H then: required: list next to resets? Or, if requiring them on RZ/N1 is intended, could the commit message say so, or could it be split into its own patch? > + > +allOf: > + - $ref: dsa.yaml#/$defs/ethernet-ports > + > + - if: > + properties: > + compatible: > + contains: > + const: renesas,r9a09g077-ethsw > + then: [ ... ] > + required: > + - resets [ ... ] -- Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261120002549.1908299-1-prabhakar.mahadev-lad.rj%40bp.renesas.com
Re: [PATCH net-next v5 08/24] net: dsa: rzn1-a5psw: Fix LK_LEARNCOUNT write mode encoding
Author: netdev-bot+sashiko
Date: Tue, 24 Nov 2026 02:26
Date: Tue, 24 Nov 2026 02:26
66 lines
11123 bytes
11123 bytes
Thank you for your contribution! Sashiko AI review found more severe
issue(s) in other patches of this series. This mail is only an FYI, in case
you want to address the nit picks below when you respin.
Low priority / nit picks for your consideration:
- [Low] The commit message for "net: dsa: rzn1-a5psw: Fix LK_LEARNCOUNT
write mode encoding" carries Fixes: and Cc: stable, but it only…
- [Low] "net: dsa: rzn1-a5psw: Fix LK_LEARNCOUNT write mode encoding"
fixes code from 5edf246c6869 ("net: dsa: rzn1-a5psw: add FDB…
--
net: dsa: rzn1-a5psw: Fix LK_LEARNCOUNT write mode encoding
This patch changes the three writes to A5PSW_LK_LEARNCOUNT in
a5psw_setup(), a5psw_port_fdb_add() and a5psw_port_fdb_del() to use
FIELD_PREP() with A5PSW_LK_LEARNCOUNT_MODE. Before this change, the raw
mode values were written into the count field instead of bits [31:30].
> The LK_LEARNCOUNT write mode lives in bits [31:30] of the register, but
> the driver writes the raw A5PSW_LK_LEARNCOUNT_MODE_* values (0, 1, 2)
> directly. As a result, adding an FDB entry writes "set LEARNCOUNT to 1"
> and deleting one writes "set LEARNCOUNT to 2", instead of atomically
> incrementing/decrementing the counter.
[Severity: Low]
The FIELD_PREP() conversion looks correct. Could the commit message also
say what a user sees go wrong because of the bad counter value?
As far as I can tell, the driver never reads A5PSW_LK_LEARNCOUNT back.
It is also not exposed through ethtool, devlink or debugfs. The only
accesses are the three writes in a5psw_setup(), a5psw_port_fdb_add() and
a5psw_port_fdb_del().
That means the bug only matters if the switch hardware itself acts on
LEARNCOUNT, for example as a learning limit or to decide that the lookup
table is full.
Since the patch carries Fixes: and Cc: stable, would it help to describe
that hardware effect? Stable backporters could then tell whether this is
a functional problem or just a wrong value in a counter nothing uses.
> Fixes: 5edf246c6869 ("net: dsa: rzn1-a5psw: add FDB support")
> Cc: stable@vger.kernel.org
[Severity: Low]
This isn't a bug, but should this patch go to net as a separate
submission instead of being part of this series?
The changelog says "v4->v5: New patch", so it was added to the
RZ/T2H/RZ/N2H ETHSW enablement series. That series looks like net-next
material: a new DSA tag protocol, DT bindings, PCS SWCTRL speed
selection and OF data refactoring.
This change only touches existing RZ/N1 code in a5psw_port_fdb_add(),
a5psw_port_fdb_del() and a5psw_setup(). It doesn't depend on any earlier
patch in the series.
The same seems to apply to the other fixes in the series: "Fix
VLANTransmitted counter offset", "Fix MDIO clock divider calculation"
and "Set driver data in probe".
--
Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261120002549.1908299-1-prabhakar.mahadev-lad.rj%40bp.renesas.com
Re: [PATCH net-next v5 18/24] net: dsa: rzn1-a5psw: Get pattern matcher register offsets from OF data
Author: netdev-bot+sashiko
Date: Tue, 24 Nov 2026 02:26
Date: Tue, 24 Nov 2026 02:26
52 lines
10257 bytes
10257 bytes
Thank you for your contribution! Sashiko AI review found more severe
issue(s) in other patches of this series. This mail is only an FYI, in case
you want to address the nit picks below when you respin.
Low priority / nit picks for your consideration:
- [Low] The commit message says the patch will "use the correct values
for each SoC" and quotes the RZ/T2H/RZ/N2H offsets (0x3f00 / 0x3f40).
--
net: dsa: rzn1-a5psw: Get pattern matcher register offsets from OF data
This commit moves the RXMATCH_CONFIG and PATTERN_CTRL base offsets out of
the A5PSW_RXMATCH_CONFIG() and A5PSW_PATTERN_CTRL() macros in rzn1_a5psw.h
and into struct a5psw_of_data. The RZ/N1 entry, rzn1_of_data, keeps the old
values 0x3e80 and 0x3eb0.
> The RX pattern matcher registers are located at different offsets on
> RZ/N1 and RZ/T2H/RZ/N2H. While RZ/N1 uses 0x3e80 for RXMATCH_CONFIG
> and 0x3eb0 for PATTERN_CTRL, RZ/T2H and RZ/N2H use 0x3f00 and 0x3f40,
> respectively.
>
> Move the base offsets of both register arrays into struct a5psw_of_data
> and use the correct values for each SoC.
[Severity: Low]
This isn't a bug, but is the last sentence accurate for this patch alone?
At this commit, rzn1_of_data in drivers/net/dsa/rzn1_a5psw.c is the only
a5psw_of_data instance:
static const struct a5psw_of_data rzn1_of_data = {
...
.rxmatch_config_base = 0x3e80,
.pattern_ctrl_base = 0x3eb0,
};
Also, a5psw_of_mtable only lists "renesas,rzn1-a5psw". These values are the
same as the old hard-coded constants, so the RZ/N1 register addresses do not
change and this patch is a refactor with no functional change.
The 0x3f00 and 0x3f40 values for RZ/T2H and RZ/N2H are only added later in
the series, in "net: dsa: rzn1-a5psw: Add support for RZ/T2H Ethernet
switch".
Could the commit message say that this patch makes no functional change, and
that the RZ/T2H and RZ/N2H offsets come in a later patch?
--
Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261120002549.1908299-1-prabhakar.mahadev-lad.rj%40bp.renesas.com
Re: [PATCH net-next v5 22/24] net: dsa: rzn1-a5psw: Keep MAC TX enabled on RZ/T2H
Author: netdev-bot+sashiko
Date: Tue, 24 Nov 2026 02:26
Date: Tue, 24 Nov 2026 02:26
100 lines
11987 bytes
11987 bytes
Thank you for your contribution! Sashiko AI review found 1 potential
issue(s) to consider.
Critical: 0 · High: 0 · Medium: 1 · Low: 0
If you believe none of the issues are legitimate, please reply to each
issue of Medium severity or higher and explain why the AI is wrong.
If any of them are legitimate and you plan to respin, please let patchwork
know by including "pw-bot: cr" as a separate line at the end of your reply
(one such reply per series is enough).
- [Medium] This patch's stated invariant for keep_mac_tx_enabled SoCs
(RZ/T2H, RZ/N2H; the next patch, "net: dsa: rzn1-a5psw: Add support…
--
net: dsa: rzn1-a5psw: Keep MAC TX enabled on RZ/T2H
On SoCs with keep_mac_tx_enabled set, this patch stops clearing
CMD_CFG.TX_ENA and gates port transmission through PORT_ENA.TXENA
instead. The TXENA bit is computed from both the STP/admin state and
the link state. CMD_CFG.SW_RESET is no longer written during setup, and
the probe path pulses the switch reset line instead.
> diff --git a/drivers/net/dsa/rzn1_a5psw.c b/drivers/net/dsa/rzn1_a5psw.c
> index 751d03b0bde4c..86d5b9d52f8db 100644
> --- a/drivers/net/dsa/rzn1_a5psw.c
> +++ b/drivers/net/dsa/rzn1_a5psw.c
[ ... ]
> @@ -996,9 +1037,22 @@ static int a5psw_setup(struct dsa_switch *ds)
> dsa_switch_for_each_port(dp, ds) {
> port = dp->index;
>
> - /* Reset the port */
> - a5psw_reg_writel(a5psw, A5PSW_CMD_CFG(port),
> - A5PSW_CMD_CFG_SW_RESET);
> + /* Gate TX on link state only for user ports */
> + if (!a5psw->of_data->keep_mac_tx_enabled || !dsa_port_is_user(dp))
> + a5psw->link_up |= BIT(port);
> +
> + /*
> + * Writing CMD_CFG = SW_RESET also writes TX_ENA as 0, which
> + * must never happen on some SoCs. Their switch is reset through
> + * its reset line in probe, so the statistics are already
> + * cleared; only disable the MAC receive path.
> + */
> + if (a5psw->of_data->keep_mac_tx_enabled)
> + a5psw_reg_rmw(a5psw, A5PSW_CMD_CFG(port),
> + A5PSW_CMD_CFG_RX_ENA, 0);
[Severity: Medium]
Where does TX_ENA actually get set on these SoCs before the first link-up?
The new reset pulse in a5psw_probe() puts every CMD_CFG register back to
its hardware reset value:
ret = reset_control_reset(reset);
This branch then clears only RX_ENA. TX_ENA keeps whatever value the
reset default gives it.
The only code that writes TX_ENA=1 is the full register write in
a5psw_phylink_mac_link_up():
a5psw_reg_writel(a5psw, A5PSW_CMD_CFG(dp->index), cmd_cfg);
Unused ports never get there. User ports get there only after their
first PHY link-up, and the CPU port only after its fixed-link comes up.
If the RZ/T2H / RZ/N2H reset value of TX_ENA is 0, would unused ports
keep TX_ENA=0 permanently, and user ports keep it at 0 until their first
link-up? That would contradict the invariant this patch is meant to
enforce. The old SW_RESET path in this same loop wrote TX_ENA=0
explicitly, so the register does accept 0 there.
The following patch in the series ("net: dsa: rzn1-a5psw: Add support
for RZ/T2H Ethernet switch") sets .keep_mac_tx_enabled = true in
rzt2h_of_data, and this behaviour is still present at the end of the
series.
Would something like this set the bit regardless of the reset default?
a5psw_reg_rmw(a5psw, A5PSW_CMD_CFG(port),
A5PSW_CMD_CFG_RX_ENA | A5PSW_CMD_CFG_TX_ENA,
A5PSW_CMD_CFG_TX_ENA);
> + else
> + a5psw_reg_writel(a5psw, A5PSW_CMD_CFG(port),
> + A5PSW_CMD_CFG_SW_RESET);
>
> /* Enable only CPU port */
> a5psw_port_enable_set(a5psw, port, dsa_port_is_cpu(dp));
[ ... ]
--
Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261120002549.1908299-1-prabhakar.mahadev-lad.rj%40bp.renesas.com
Re: [PATCH net-next v5 23/24] net: dsa: rzn1-a5psw: Add support for RZ/T2H Ethernet switch
Author: netdev-bot+sashiko
Date: Tue, 24 Nov 2026 02:26
Date: Tue, 24 Nov 2026 02:26
76 lines
10840 bytes
10840 bytes
Thank you for your contribution! Sashiko AI review found more severe
issue(s) in other patches of this series. This mail is only an FYI, in case
you want to address the nit picks below when you respin.
Low priority / nit picks for your consideration:
- [Low] The commit message for "net: dsa: rzn1-a5psw: Add support for
RZ/T2H Ethernet switch" does not match what the patch does.
--
net: dsa: rzn1-a5psw: Add support for RZ/T2H Ethernet switch
This commit adds OF match data for the RZ/T2H ETHSW, which uses the A5PSW
IP but has a different port count, tagging protocol, pattern matcher
offsets, VLAN_RES layout and lookup table size. It also adds the
renesas,r9a09g077-ethsw compatible, which RZ/N2H uses as a fallback.
> Configure the driver for the RZ/T2H variant with:
> - 4 ports (3 external and 1 management), with the management port
> at port 3.
> - DSA_TAG_PROTO_RZT2H_ETHSW tagging protocol.
> - A fixed management port frame length of 0x3fff.
> - Pattern matcher register offsets of 0x3f00 and 0x3f40.
> - VLAN_RES fields using VLANID[15:4] and PORTMASK[3:0].
> - 4096 lookup table entries.
> - The odd MDIO clock divider formula.
[Severity: Low]
Is this list still accurate after the v4->v5 change to rzt2h_of_data?
The last bullet mentions an MDIO clock divider formula. However,
rzt2h_of_data has no MDIO setting, and struct a5psw_of_data has no member
for one. a5psw_mdio_config() uses the same formula on every SoC:
drivers/net/dsa/rzn1_a5psw.c:a5psw_mdio_config() {
...
div = DIV_ROUND_UP(DIV_ROUND_UP(rate, mdio_freq) - 1, 2);
...
}
That formula came from the earlier commit in this series, "net: dsa:
rzn1-a5psw: Fix MDIO clock divider calculation". Its message says the
formula is the same on RZ/N1, RZ/T2H and RZ/N2H.
The list also leaves out a setting the patch does add:
.keep_mac_tx_enabled = true,
For the new compatible, this skips CMD_CFG.SW_RESET during setup, keeps
TX_ENA set, and gates user-port TX through PORT_ENA.
Could the MDIO bullet be dropped and a bullet for keep_mac_tx_enabled be
added?
> diff --git a/drivers/net/dsa/rzn1_a5psw.c b/drivers/net/dsa/rzn1_a5psw.c
> index 86d5b9d52f8db..2b69e92e18533 100644
> --- a/drivers/net/dsa/rzn1_a5psw.c
> +++ b/drivers/net/dsa/rzn1_a5psw.c
> @@ -1411,6 +1411,20 @@ static void a5psw_shutdown(struct platform_device *pdev)
> platform_set_drvdata(pdev, NULL);
> }
>
> +static const struct a5psw_of_data rzt2h_of_data = {
[ ... ]
> + .lk_table_entries = 4096,
> + .keep_mac_tx_enabled = true,
> +};
[ ... ]
--
Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261120002549.1908299-1-prabhakar.mahadev-lad.rj%40bp.renesas.com
Re: [PATCH net-next v5 23/24] net: dsa: rzn1-a5psw: Add support for RZ/T2H Ethernet switch
Author: "Lad, Prabhakar"
Date: Tue, 01 Dec 2026 10:51
Date: Tue, 01 Dec 2026 10:51
64 lines
15044 bytes
15044 bytes
On Tue, Nov 24, 2026 at 2:26 AM <netdev-bot+sashiko@kernel.org> wrote:
>
> Thank you for your contribution! Sashiko AI review found more severe
> issue(s) in other patches of this series. This mail is only an FYI, in case
> you want to address the nit picks below when you respin.
>
> Low priority / nit picks for your consideration:
>
> - [Low] The commit message for "net: dsa: rzn1-a5psw: Add support for
> RZ/T2H Ethernet switch" does not match what the patch does.
>
> --
>
> net: dsa: rzn1-a5psw: Add support for RZ/T2H Ethernet switch
>
> This commit adds OF match data for the RZ/T2H ETHSW, which uses the A5PSW
> IP but has a different port count, tagging protocol, pattern matcher
> offsets, VLAN_RES layout and lookup table size. It also adds the
> renesas,r9a09g077-ethsw compatible, which RZ/N2H uses as a fallback.
>
> > Configure the driver for the RZ/T2H variant with:
> > - 4 ports (3 external and 1 management), with the management port
> > at port 3.
> > - DSA_TAG_PROTO_RZT2H_ETHSW tagging protocol.
> > - A fixed management port frame length of 0x3fff.
> > - Pattern matcher register offsets of 0x3f00 and 0x3f40.
> > - VLAN_RES fields using VLANID[15:4] and PORTMASK[3:0].
> > - 4096 lookup table entries.
> > - The odd MDIO clock divider formula.
>
> [Severity: Low]
> Is this list still accurate after the v4->v5 change to rzt2h_of_data?
>
> The last bullet mentions an MDIO clock divider formula. However,
> rzt2h_of_data has no MDIO setting, and struct a5psw_of_data has no member
> for one. a5psw_mdio_config() uses the same formula on every SoC:
>
> drivers/net/dsa/rzn1_a5psw.c:a5psw_mdio_config() {
> ...
> div = DIV_ROUND_UP(DIV_ROUND_UP(rate, mdio_freq) - 1, 2);
> ...
> }
>
> That formula came from the earlier commit in this series, "net: dsa:
> rzn1-a5psw: Fix MDIO clock divider calculation". Its message says the
> formula is the same on RZ/N1, RZ/T2H and RZ/N2H.
>
> The list also leaves out a setting the patch does add:
>
> .keep_mac_tx_enabled = true,
>
> For the new compatible, this skips CMD_CFG.SW_RESET during setup, keeps
> TX_ENA set, and gates user-port TX through PORT_ENA.
>
> Could the MDIO bullet be dropped and a bullet for keep_mac_tx_enabled be
> added?
>
Agreed, I will update the commit message in the next version.
Cheers,
Prabhakar
Re: [PATCH net-next v5 22/24] net: dsa: rzn1-a5psw: Keep MAC TX enabled on RZ/T2H
Author: "Lad, Prabhakar"
Date: Tue, 01 Dec 2026 10:52
Date: Tue, 01 Dec 2026 10:52
127 lines
17192 bytes
17192 bytes
On Tue, Nov 24, 2026 at 2:26 AM <netdev-bot+sashiko@kernel.org> wrote:
>
> Thank you for your contribution! Sashiko AI review found 1 potential
> issue(s) to consider.
>
> Critical: 0 · High: 0 · Medium: 1 · Low: 0
>
> If you believe none of the issues are legitimate, please reply to each
> issue of Medium severity or higher and explain why the AI is wrong.
> If any of them are legitimate and you plan to respin, please let patchwork
> know by including "pw-bot: cr" as a separate line at the end of your reply
> (one such reply per series is enough).
>
> - [Medium] This patch's stated invariant for keep_mac_tx_enabled SoCs
> (RZ/T2H, RZ/N2H; the next patch, "net: dsa: rzn1-a5psw: Add support…
>
> --
>
> net: dsa: rzn1-a5psw: Keep MAC TX enabled on RZ/T2H
>
> On SoCs with keep_mac_tx_enabled set, this patch stops clearing
> CMD_CFG.TX_ENA and gates port transmission through PORT_ENA.TXENA
> instead. The TXENA bit is computed from both the STP/admin state and
> the link state. CMD_CFG.SW_RESET is no longer written during setup, and
> the probe path pulses the switch reset line instead.
>
> > diff --git a/drivers/net/dsa/rzn1_a5psw.c b/drivers/net/dsa/rzn1_a5psw.c
> > index 751d03b0bde4c..86d5b9d52f8db 100644
> > --- a/drivers/net/dsa/rzn1_a5psw.c
> > +++ b/drivers/net/dsa/rzn1_a5psw.c
>
> [ ... ]
>
> > @@ -996,9 +1037,22 @@ static int a5psw_setup(struct dsa_switch *ds)
> > dsa_switch_for_each_port(dp, ds) {
> > port = dp->index;
> >
> > - /* Reset the port */
> > - a5psw_reg_writel(a5psw, A5PSW_CMD_CFG(port),
> > - A5PSW_CMD_CFG_SW_RESET);
> > + /* Gate TX on link state only for user ports */
> > + if (!a5psw->of_data->keep_mac_tx_enabled || !dsa_port_is_user(dp))
> > + a5psw->link_up |= BIT(port);
> > +
> > + /*
> > + * Writing CMD_CFG = SW_RESET also writes TX_ENA as 0, which
> > + * must never happen on some SoCs. Their switch is reset through
> > + * its reset line in probe, so the statistics are already
> > + * cleared; only disable the MAC receive path.
> > + */
> > + if (a5psw->of_data->keep_mac_tx_enabled)
> > + a5psw_reg_rmw(a5psw, A5PSW_CMD_CFG(port),
> > + A5PSW_CMD_CFG_RX_ENA, 0);
>
> [Severity: Medium]
> Where does TX_ENA actually get set on these SoCs before the first link-up?
>
> The new reset pulse in a5psw_probe() puts every CMD_CFG register back to
> its hardware reset value:
>
> ret = reset_control_reset(reset);
>
> This branch then clears only RX_ENA. TX_ENA keeps whatever value the
> reset default gives it.
>
> The only code that writes TX_ENA=1 is the full register write in
> a5psw_phylink_mac_link_up():
>
> a5psw_reg_writel(a5psw, A5PSW_CMD_CFG(dp->index), cmd_cfg);
>
> Unused ports never get there. User ports get there only after their
> first PHY link-up, and the CPU port only after its fixed-link comes up.
>
> If the RZ/T2H / RZ/N2H reset value of TX_ENA is 0, would unused ports
> keep TX_ENA=0 permanently, and user ports keep it at 0 until their first
> link-up? That would contradict the invariant this patch is meant to
> enforce. The old SW_RESET path in this same loop wrote TX_ENA=0
> explicitly, so the register does accept 0 there.
>
> The following patch in the series ("net: dsa: rzn1-a5psw: Add support
> for RZ/T2H Ethernet switch") sets .keep_mac_tx_enabled = true in
> rzt2h_of_data, and this behaviour is still present at the end of the
> series.
>
> Would something like this set the bit regardless of the reset default?
>
> a5psw_reg_rmw(a5psw, A5PSW_CMD_CFG(port),
> A5PSW_CMD_CFG_RX_ENA | A5PSW_CMD_CFG_TX_ENA,
> A5PSW_CMD_CFG_TX_ENA);
>
On the RZ/T2H and RZ/N2H, COMMAND_CONFIG_Pn.TX_ENA resets to 1 (HW
manual section 29.3.6.2), and probe now pulses the switch reset line
before setup, so TX_ENA is already set on all ports, including unused
ones, before the first link-up. The SW_RESET path wrote TX_ENA=0 only
because it overwrote the whole register; that is what this patch
removes.
That said, setting TX_ENA explicitly is cheap and makes the invariant
independent of the reset value, so I'll update the RMW in
a5psw_setup() to clear RX_ENA and set TX_ENA.
Cheers,
Prabhakar
> > + else
> > + a5psw_reg_writel(a5psw, A5PSW_CMD_CFG(port),
> > + A5PSW_CMD_CFG_SW_RESET);
> >
> > /* Enable only CPU port */
> > a5psw_port_enable_set(a5psw, port, dsa_port_is_cpu(dp));
>
> [ ... ]
>
> --
> Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261120002549.1908299-1-prabhakar.mahadev-lad.rj%40bp.renesas.com
Re: [PATCH net-next v5 04/24] net: pcs: rzn1-miic: Select ETHSW port speed through SWCTRL
Author: "Lad, Prabhakar"
Date: Tue, 01 Dec 2026 11:01
Date: Tue, 01 Dec 2026 11:01
154 lines
17650 bytes
17650 bytes
On Tue, Nov 24, 2026 at 2:26 AM <netdev-bot+sashiko@kernel.org> wrote:
>
> Thank you for your contribution! Sashiko AI review found 2 potential
> issue(s) to consider.
>
> Critical: 0 · High: 0 · Medium: 1 · Low: 1
>
> If you believe none of the issues are legitimate, please reply to each
> issue of Medium severity or higher and explain why the AI is wrong.
> If any of them are legitimate and you plan to respin, please let patchwork
> know by including "pw-bot: cr" as a separate line at the end of your reply
> (one such reply per series is enough).
>
> - [Medium] Possibly incomplete MAC configuration for duplex on RZ/T2H/N2H
> ETHSW ports.
> - [Low] This patch leaves a comment in miic_init_hw()
> (drivers/net/pcs/pcs-rzn1-miic.c) that is now wrong for RZ/T2H.
>
> --
>
> net: pcs: rzn1-miic: Select ETHSW port speed through SWCTRL
>
> On RZ/T2H and RZ/N2H, this patch programs SWCTRL.SET10/SET1000 from
> miic_link_up() for converters routed to ETHSW ports. The commit message
> says COMMAND_CONFIG_Pn.ENA_10 has no effect on the actual MAC speed on
> those parts. The matched MODCTRL configuration is now kept in struct miic,
> so the switch port that a converter is routed to can be looked up at
> link-up time.
>
> > diff --git a/drivers/net/pcs/pcs-rzn1-miic.c b/drivers/net/pcs/pcs-rzn1-miic.c
> > index 682a73cf5a87d..96f4cb533a719 100644
> > --- a/drivers/net/pcs/pcs-rzn1-miic.c
> > +++ b/drivers/net/pcs/pcs-rzn1-miic.c
>
> [ ... ]
>
> > @@ -383,6 +396,27 @@ static int miic_config(struct phylink_pcs *pcs, unsigned int neg_mode,
> > return 0;
> > }
> >
> > +static void miic_swctrl_set_speed(struct miic *miic, int port, int speed)
> > +{
> > + const struct miic_of_data *of_data = miic->of_data;
> > + u8 conf = miic->conv_conf[port + 1];
> > + u32 val = 0;
> > + int sw_port;
> > +
> > + if (conf < of_data->swctrl_conf_start ||
> > + conf >= of_data->swctrl_conf_start + of_data->swctrl_conf_count)
> > + return;
> > +
> > + sw_port = conf - of_data->swctrl_conf_start;
> > +
> > + if (speed == SPEED_1000)
> > + val = MIIC_SWCTRL_SET_SPEED_1000(sw_port);
> > + else if (speed == SPEED_10)
> > + val = MIIC_SWCTRL_SET_SPEED_10(sw_port);
> > +
> > + miic_reg_rmw(miic, MIIC_SWCTRL, MIIC_SWCTRL_SET_SPEED_MASK(sw_port), val);
> > +}
>
> [Severity: Low]
> This isn't a bug, but on RZ/T2H the comment in miic_init_hw() above the
> probe-time SWCTRL/SWDUPC writes now seems to contradict this function:
>
> drivers/net/pcs/pcs-rzn1-miic.c:miic_init_hw() {
> ...
> /* Disable speed/duplex control from these registers, datasheet
> * says switch registers should be used to setup switch port
> * speed and duplex.
> */
> miic_reg_writel(miic, MIIC_SWCTRL, 0x0);
> miic_reg_writel(miic, MIIC_SWDUPC, 0x0);
> ...
> }
>
> On RZ/T2H, writing SWCTRL = 0 does not hand speed control to the switch.
> It selects 100 Mbps on every ETHSW port, and miic_swctrl_set_speed() now
> uses SWCTRL as the real speed control.
>
> Could this comment be updated to say it describes RZ/N1 only? Otherwise a
> later cleanup that trusts it could drop the SWCTRL programming. The
> comment is still unchanged at the end of the series.
>
I will update the comment in the next version.
Cheers,
Prabhakar
> > static void miic_link_up(struct phylink_pcs *pcs, unsigned int neg_mode,
> > phy_interface_t interface, int speed, int duplex)
> > {
> > @@ -415,6 +449,8 @@ static void miic_link_up(struct phylink_pcs *pcs, unsigned int neg_mode,
> >
> > miic_reg_rmw(miic, MIIC_CONVCTRL(port),
> > (MIIC_CONVCTRL_CONV_SPEED | MIIC_CONVCTRL_FULLD), val);
> > +
> > + miic_swctrl_set_speed(miic, port, speed);
> > }
>
> [Severity: Medium]
> Does MIIC_SWDUPC need the same handling as SWCTRL on RZ/T2H?
>
> Only speed is copied into the switch-control registers here. In
> miic_link_up(), duplex only sets MIIC_CONVCTRL_FULLD on the converter.
> MIIC_SWDUPC keeps the 0 written in miic_init_hw() and is never written
> again.
>
> On the switch side, half duplex is only set through COMMAND_CONFIG. That
> is the same register block whose ENA_10 bit the commit message says has
> no effect:
>
> drivers/net/dsa/rzn1_a5psw.c:a5psw_phylink_mac_link_up() {
> ...
> if (duplex == DUPLEX_HALF)
> cmd_cfg |= A5PSW_CMD_CFG_HD_ENA;
> ...
> }
>
> a5psw_phylink_get_caps() advertises MAC_100 | MAC_10 on user ports, so
> phylink can resolve a 10/100 half-duplex link.
>
> Suppose SWDUPC selects duplex on RZ/T2H the way SWCTRL selects speed, and
> HD_ENA is as ineffective as ENA_10. The MAC would then stay at whatever
> duplex SWDUPC = 0 encodes, not the negotiated duplex. Could that cause a
> duplex mismatch on half-duplex links?
>
> Nothing in the tree documents SWDUPC semantics on RZ/T2H, so this would
> need checking against the hardware manual. Testing with full duplex only
> would not show it. RZ/T2H ETHSW ports only carry traffic once a later
> patch in this series, "net: dsa: rzn1-a5psw: Add support for RZ/T2H
> Ethernet switch", is applied.
>
> --
> Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261120002549.1908299-1-prabhakar.mahadev-lad.rj%40bp.renesas.com
Page 2 of 2 • 63 total messages
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads