* [PATCH net-next] net: pcs: rzn1-miic: update PCS driver to use neg_mode
@ 2024-03-06 10:51 Russell King (Oracle)
2024-03-06 18:49 ` Andrew Lunn
2024-03-08 5:00 ` patchwork-bot+netdevbpf
0 siblings, 2 replies; 3+ messages in thread
From: Russell King (Oracle) @ 2024-03-06 10:51 UTC (permalink / raw)
To: Andrew Lunn, Heiner Kallweit
Cc: Cl__ment L__ger, David S. Miller, Eric Dumazet, Jakub Kicinski,
Paolo Abeni, linux-renesas-soc, netdev
Update the RZN1-MIIC PCS driver to use neg_mode rather than the mode
argument to match the other updated PCS drivers.
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
---
drivers/net/pcs/pcs-rzn1-miic.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/net/pcs/pcs-rzn1-miic.c b/drivers/net/pcs/pcs-rzn1-miic.c
index d93f84fbb1fd..4bd66fdde367 100644
--- a/drivers/net/pcs/pcs-rzn1-miic.c
+++ b/drivers/net/pcs/pcs-rzn1-miic.c
@@ -183,7 +183,7 @@ static void miic_converter_enable(struct miic *miic, int port, int enable)
miic_reg_rmw(miic, MIIC_CONVRST, MIIC_CONVRST_PHYIF_RST(port), val);
}
-static int miic_config(struct phylink_pcs *pcs, unsigned int mode,
+static int miic_config(struct phylink_pcs *pcs, unsigned int neg_mode,
phy_interface_t interface,
const unsigned long *advertising, bool permit)
{
@@ -234,7 +234,7 @@ static int miic_config(struct phylink_pcs *pcs, unsigned int mode,
return 0;
}
-static void miic_link_up(struct phylink_pcs *pcs, unsigned int mode,
+static void miic_link_up(struct phylink_pcs *pcs, unsigned int neg_mode,
phy_interface_t interface, int speed, int duplex)
{
struct miic_port *miic_port = phylink_pcs_to_miic_port(pcs);
@@ -333,6 +333,7 @@ struct phylink_pcs *miic_create(struct device *dev, struct device_node *np)
miic_port->miic = miic;
miic_port->port = port - 1;
miic_port->pcs.ops = &miic_phylink_ops;
+ miic_port->pcs.neg_mode = true;
return &miic_port->pcs;
}
--
2.30.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH net-next] net: pcs: rzn1-miic: update PCS driver to use neg_mode
2024-03-06 10:51 [PATCH net-next] net: pcs: rzn1-miic: update PCS driver to use neg_mode Russell King (Oracle)
@ 2024-03-06 18:49 ` Andrew Lunn
2024-03-08 5:00 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: Andrew Lunn @ 2024-03-06 18:49 UTC (permalink / raw)
To: Russell King (Oracle)
Cc: Heiner Kallweit, Cl__ment L__ger, David S. Miller, Eric Dumazet,
Jakub Kicinski, Paolo Abeni, linux-renesas-soc, netdev
On Wed, Mar 06, 2024 at 10:51:41AM +0000, Russell King (Oracle) wrote:
> Update the RZN1-MIIC PCS driver to use neg_mode rather than the mode
> argument to match the other updated PCS drivers.
>
> 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: pcs: rzn1-miic: update PCS driver to use neg_mode
2024-03-06 10:51 [PATCH net-next] net: pcs: rzn1-miic: update PCS driver to use neg_mode Russell King (Oracle)
2024-03-06 18:49 ` Andrew Lunn
@ 2024-03-08 5:00 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+netdevbpf @ 2024-03-08 5:00 UTC (permalink / raw)
To: Russell King
Cc: andrew, hkallweit1, clement.leger, davem, edumazet, kuba, pabeni,
linux-renesas-soc, netdev
Hello:
This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Wed, 06 Mar 2024 10:51:41 +0000 you wrote:
> Update the RZN1-MIIC PCS driver to use neg_mode rather than the mode
> argument to match the other updated PCS drivers.
>
> Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
> ---
> drivers/net/pcs/pcs-rzn1-miic.c | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
Here is the summary with links:
- [net-next] net: pcs: rzn1-miic: update PCS driver to use neg_mode
https://git.kernel.org/netdev/net-next/c/dd9a730011fa
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:[~2024-03-08 5:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-06 10:51 [PATCH net-next] net: pcs: rzn1-miic: update PCS driver to use neg_mode Russell King (Oracle)
2024-03-06 18:49 ` Andrew Lunn
2024-03-08 5:00 ` 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).