Re: [PATCH net-next v16 05/15] net: dsa: realtek: rtl8365mb: set RGMII mode for family D
From: netdev-bot+sashiko
Date: Mon Nov 30 2026 - 10:13:21 EST
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 of "net: dsa: realtek: rtl8365mb: set RGMII
mode for family D" says the EXT1 pin controls are now programmed in…
--
net: dsa: realtek: rtl8365mb: set RGMII mode for family D
This patch programs the family D EXT1 RGMII settings: pin drive and
slew controls, clearing the EXT1 RGMII TX clock delay field, the
TOP_CON0 pin mux, and disabling SerDes 1. It also stops advertising
RGMII on port 7 in rtl8365mb_phylink_get_caps() when MAC4 owns the
EXT1 pins.
> Program the EXT1 pin controls explicitly when selecting RGMII instead
> of relying on values inherited from the family C initialization table.
[Severity: Low]
This isn't a bug, but is the wording "inherited from the family C
initialization table" accurate?
The old common jam writes were moved into rtl8365mb_c_init_jam by the
earlier "add chip family infrastructure" patch, and only
rtl8365mb_family_c references that table:
static const struct rtl8365mb_jam_tbl_entry rtl8365mb_c_init_jam[] = {
{ 0x13EB, 0x15BB }, { 0x1303, 0x06D6 }, { 0x1304, 0x0700 },
{ 0x13E2, 0x003F }, { 0x13F9, 0x0090 }, ...
In the final state of the series, rtl8365mb_family_d (added in "add
support for RTL8367S-VB") has no jam_table. That means
rtl8365mb_switch_init() never writes the family C values for 0x1303,
0x1304 or 0x13F9 on family D. Family D starts from reset, EEPROM or
bootloader state, not from the family C table.
The later paragraph's "reset or bootloader value" reason for clearing
EXT_TXC_DLY[5:3] is correct. Could the sentence above be reworded the
same way, perhaps a leftover from an earlier revision?
--
Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/aebcc7f6-d5f8-4157-b63a-e2e707d9859b%40yahoo.com