From: "Russell King (Oracle)" <linux@armlinux.org.uk>
To: Maxime Chevallier <maxime.chevallier@bootlin.com>
Cc: Jacky Chou <jacky_chou@aspeedtech.com>,
andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@google.com,
kuba@kernel.org, pabeni@redhat.com, robh@kernel.org,
krzk+dt@kernel.org, conor+dt@kernel.org, joel@jms.id.au,
andrew@codeconstruct.com.au, ratbert@faraday-tech.com,
netdev@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-aspeed@lists.ozlabs.org, BMC-SW@aspeedtech.com
Subject: Re: [net-next 4/4] net: ftgmac100: add RGMII delay for AST2600
Date: Mon, 17 Mar 2025 11:09:14 +0000 [thread overview]
Message-ID: <Z9gC2vz2w5dfZsum@shell.armlinux.org.uk> (raw)
In-Reply-To: <20250317095229.6f8754dd@fedora.home>
On Mon, Mar 17, 2025 at 09:53:33AM +0100, Maxime Chevallier wrote:
> So this goes completely against the naming of the property. It has the
> -ps suffix, so you would expect to have picoseconds values passed, and
> not an arbiraty index.
>
> Take a look at other drivers, you should accept picseconds values from
> these properties, then compute the relevant index in the driver. That
> index should be something internal to your driver.
>
> An example here :
>
> https://elixir.bootlin.com/linux/v6.14-rc6/source/drivers/net/ethernet/microchip/sparx5/lan969x/lan969x_rgmii.c#L51
Another example would be drivers/net/phy/adin.c::adin_get_reg_value()
and associated functions - these lookup a DT property and then look
that up in a table to convert it to a register value.
I suspect that's something which could become generic, as I suspect
most hardware isn't going to accept a picosecond value, but be a
choice of N different options.
--
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!
next prev parent reply other threads:[~2025-03-17 11:16 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-17 2:59 [net-next 0/4] Add AST2600 RGMII delay into ftgmac100 Jacky Chou
2025-03-17 2:59 ` [net-next 1/4] ARM: dts: aspeed-g6:add scu to mac for RGMII delay Jacky Chou
2025-03-17 12:47 ` Andrew Lunn
2025-03-18 11:44 ` 回覆: " Jacky Chou
2025-03-17 2:59 ` [net-next 2/4] ARM: dts: ast2600-evb: add default " Jacky Chou
2025-03-17 13:08 ` Andrew Lunn
2025-03-18 11:00 ` 回覆: " Jacky Chou
2025-03-18 14:03 ` Andrew Lunn
2025-03-20 8:02 ` 回覆: " Jacky Chou
2025-03-17 2:59 ` [net-next 3/4] dt-bindings: net: ftgmac100: add rgmii delay properties Jacky Chou
2025-03-17 4:31 ` Rob Herring (Arm)
2025-03-17 7:32 ` Krzysztof Kozlowski
2025-03-17 7:48 ` 回覆: " Jacky Chou
2025-03-17 12:44 ` Andrew Lunn
2025-03-17 13:21 ` Krzysztof Kozlowski
2025-03-17 2:59 ` [net-next 4/4] net: ftgmac100: add RGMII delay for AST2600 Jacky Chou
2025-03-17 8:53 ` Maxime Chevallier
2025-03-17 9:28 ` 回覆: " Jacky Chou
2025-03-17 11:09 ` Russell King (Oracle) [this message]
2025-03-17 11:33 ` Jacky Chou
2025-03-17 12:52 ` Andrew Lunn
2025-03-18 5:34 ` 回覆: " Jacky Chou
2025-03-18 13:51 ` Andrew Lunn
2025-03-18 16:38 ` Krzysztof Kozlowski
2025-03-20 8:06 ` 回覆: " Jacky Chou
2025-03-17 13:03 ` Andrew Lunn
2025-03-18 10:46 ` 回覆: " Jacky Chou
2025-03-18 13:44 ` Andrew Lunn
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=Z9gC2vz2w5dfZsum@shell.armlinux.org.uk \
--to=linux@armlinux.org.uk \
--cc=BMC-SW@aspeedtech.com \
--cc=andrew+netdev@lunn.ch \
--cc=andrew@codeconstruct.com.au \
--cc=conor+dt@kernel.org \
--cc=davem@davemloft.net \
--cc=devicetree@vger.kernel.org \
--cc=edumazet@google.com \
--cc=jacky_chou@aspeedtech.com \
--cc=joel@jms.id.au \
--cc=krzk+dt@kernel.org \
--cc=kuba@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-aspeed@lists.ozlabs.org \
--cc=linux-kernel@vger.kernel.org \
--cc=maxime.chevallier@bootlin.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=ratbert@faraday-tech.com \
--cc=robh@kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.