From: Mieczyslaw Nalewaj <namiltd@yahoo.com>
To: Andrew Lunn <andrew@lunn.ch>
Cc: linusw@kernel.org, alsi@bang-olufsen.dk, olteanv@gmail.com,
kuba@kernel.org, davem@davemloft.net, edumazet@google.com,
pabeni@redhat.com, linux@armlinux.org.uk, luizluca@gmail.com,
maxime.chevallier@bootlin.com, netdev@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH net-next 4/8] net: dsa: realtek: rtl8365mb: set RGMII mode for family D
Date: Thu, 8 Oct 2026 16:09:07 +0200 [thread overview]
Message-ID: <fdddb05d-f733-4b28-9442-11adf7223cdf@yahoo.com> (raw)
In-Reply-To: <eec36c89-b6fd-405d-a951-aec0677b149d@lunn.ch>
On 10/8/2026 3:22 AM, Andrew Lunn wrote:
>> +#define RTL8365MB_D_REG_EXT_TXC_DLY 0x13f9
>> +#define RTL8365MB_D_EXT1_RGMII_TX_DLY_MASK GENMASK(5, 3)
>
> The current code looks at tx-internal-delay-ps and
> rx-internal-delay-ps and programs some other registers. It is not
> clear to me that the code you are adding here is correct when combined
> with the current code. Please could you look at the delay
> configuration.
>
> Andrew
0x13f9 is EXT_TXC_DLY in the vendor code. It holds 3-bit TX delay
fields per external interface, separately for RGMII ([2:0] EXT0,
[5:3] EXT1, [8:6] EXT2) and for GMII ([11:9] EXT0, [14:12] EXT1).
The vendor RGMII setup path for EXT1 clears the RGMII field [5:3], so
this is an extra TX clock delay next to the TXDELAY bit in RGMXF, and
the GMII fields are not touched. Clearing it makes tx-internal-delay-ps
the only source of TX delay instead of whatever the bootloader left
behind. I'll say so in the commit message and a comment in v2.
Regards,
Mieczyslaw
next prev parent reply other threads:[~2026-10-08 15:18 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <84fc7483-b22d-45ea-a3b8-3285dc357265.ref@yahoo.com>
2026-10-07 20:34 ` [PATCH net-next 0/8] net: dsa: realtek: rtl8365mb: add support for RTL8367S-VB Mieczyslaw Nalewaj
2026-10-07 20:36 ` [PATCH net-next 1/8] net: dsa: realtek: rtl8365mb: detect RTL8367S-VB Mieczyslaw Nalewaj
2026-10-07 20:37 ` [PATCH net-next 2/8] net: dsa: realtek: rtl8365mb: set speed for family D Mieczyslaw Nalewaj
2026-10-07 20:38 ` [PATCH net-next 3/8] net: dsa: realtek: rtl8365mb: get pvid " Mieczyslaw Nalewaj
2026-10-07 20:39 ` [PATCH net-next 4/8] net: dsa: realtek: rtl8365mb: set RGMII mode " Mieczyslaw Nalewaj
2026-10-08 1:22 ` Andrew Lunn
2026-10-08 14:09 ` Mieczyslaw Nalewaj [this message]
2026-10-08 15:07 ` Mieczyslaw Nalewaj
2026-10-07 20:39 ` [PATCH net-next 5/8] net: dsa: realtek: rtl8365mb: set and get vlan 4k " Mieczyslaw Nalewaj
2026-10-07 20:40 ` [PATCH net-next 6/8] net: dsa: realtek: rtl8365mb: set/clear pvid " Mieczyslaw Nalewaj
2026-10-07 20:41 ` [PATCH net-next 7/8] net: dsa: realtek: rtl8365mb: add family D SDS13 PCS support Mieczyslaw Nalewaj
2026-10-07 20:42 ` [PATCH net-next 8/8] net: dsa: realtek: rtl8365mb: re-latch the family D SerDes Mieczyslaw Nalewaj
2026-10-08 10:10 ` kernel test robot
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=fdddb05d-f733-4b28-9442-11adf7223cdf@yahoo.com \
--to=namiltd@yahoo.com \
--cc=alsi@bang-olufsen.dk \
--cc=andrew@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=kuba@kernel.org \
--cc=linusw@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=luizluca@gmail.com \
--cc=maxime.chevallier@bootlin.com \
--cc=netdev@vger.kernel.org \
--cc=olteanv@gmail.com \
--cc=pabeni@redhat.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