* [PATCH net-next] net: phy: improve rgmii_clock() documentation
@ 2025-06-12 15:21 Russell King (Oracle)
2025-06-12 15:32 ` Andrew Lunn
2025-06-14 1:30 ` patchwork-bot+netdevbpf
0 siblings, 2 replies; 3+ messages in thread
From: Russell King (Oracle) @ 2025-06-12 15:21 UTC (permalink / raw)
To: Andrew Lunn, Heiner Kallweit; +Cc: netdev
Improve the rgmii_clock() documentation to indicate that it can also
be used for MII, GMII and RMII modes as well as RGMII as the required
clock rates are identical, but note that it won't error out for 1G
speeds for MII and RMII.
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
---
include/linux/phy.h | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/include/linux/phy.h b/include/linux/phy.h
index e194dad1623d..802f3015f235 100644
--- a/include/linux/phy.h
+++ b/include/linux/phy.h
@@ -269,8 +269,10 @@ static inline const char *phy_modes(phy_interface_t interface)
* rgmii_clock - map link speed to the clock rate
* @speed: link speed value
*
- * Description: maps RGMII supported link speeds
- * into the clock rates.
+ * Description: maps RGMII supported link speeds into the clock rates.
+ * This can also be used for MII, GMII, and RMII interface modes as the
+ * clock rates are indentical, but the caller must be aware that errors
+ * for unsupported clock rates will not be signalled.
*
* Returns: clock rate or negative errno
*/
--
2.30.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH net-next] net: phy: improve rgmii_clock() documentation
2025-06-12 15:21 [PATCH net-next] net: phy: improve rgmii_clock() documentation Russell King (Oracle)
@ 2025-06-12 15:32 ` Andrew Lunn
2025-06-14 1:30 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: Andrew Lunn @ 2025-06-12 15:32 UTC (permalink / raw)
To: Russell King (Oracle); +Cc: Heiner Kallweit, netdev
On Thu, Jun 12, 2025 at 04:21:04PM +0100, Russell King (Oracle) wrote:
> Improve the rgmii_clock() documentation to indicate that it can also
> be used for MII, GMII and RMII modes as well as RGMII as the required
> clock rates are identical, but note that it won't error out for 1G
> speeds for MII and RMII.
>
> Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Andrew
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH net-next] net: phy: improve rgmii_clock() documentation
2025-06-12 15:21 [PATCH net-next] net: phy: improve rgmii_clock() documentation Russell King (Oracle)
2025-06-12 15:32 ` Andrew Lunn
@ 2025-06-14 1:30 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+netdevbpf @ 2025-06-14 1:30 UTC (permalink / raw)
To: Russell King; +Cc: andrew, hkallweit1, netdev
Hello:
This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Thu, 12 Jun 2025 16:21:04 +0100 you wrote:
> Improve the rgmii_clock() documentation to indicate that it can also
> be used for MII, GMII and RMII modes as well as RGMII as the required
> clock rates are identical, but note that it won't error out for 1G
> speeds for MII and RMII.
>
> Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
>
> [...]
Here is the summary with links:
- [net-next] net: phy: improve rgmii_clock() documentation
https://git.kernel.org/netdev/net-next/c/91695b859263
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-06-14 1:30 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-12 15:21 [PATCH net-next] net: phy: improve rgmii_clock() documentation Russell King (Oracle)
2025-06-12 15:32 ` Andrew Lunn
2025-06-14 1:30 ` patchwork-bot+netdevbpf
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).