* [PATCH net-next] phy: lan966x: add support for QUSGMII
@ 2022-08-26 14:17 Maxime Chevallier
2022-08-31 12:00 ` patchwork-bot+netdevbpf
2022-09-20 6:18 ` Vinod Koul
0 siblings, 2 replies; 3+ messages in thread
From: Maxime Chevallier @ 2022-08-26 14:17 UTC (permalink / raw)
To: davem
Cc: Maxime Chevallier, linux-phy, netdev, linux-kernel,
Kishon Vijay Abraham I, Vinod Koul, Horatiu Vultur, Russell King,
UNGLinuxDriver, thomas.petazzoni
Makes so that the serdes driver also takes QUSGMII in consideration.
It's configured exactly as QSGMII as far as the serdes driver is
concerned.
Signed-off-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
---
Dear netdev and Generic PHY maintainers,
This patch should go through the net-next tree instead of the generic
PHY tree, as it has a dependency on :
5e61fe157a27 "net: phy: Introduce QUSGMII PHY mode"
This commits only lives in the net-next tree as of today.
Given the simplicity of this patch, would that be OK for you ?
Thanks,
Maxime
drivers/phy/microchip/lan966x_serdes.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/phy/microchip/lan966x_serdes.c b/drivers/phy/microchip/lan966x_serdes.c
index e86a879b92b5..d1a50fa81130 100644
--- a/drivers/phy/microchip/lan966x_serdes.c
+++ b/drivers/phy/microchip/lan966x_serdes.c
@@ -401,6 +401,9 @@ static int serdes_set_mode(struct phy *phy, enum phy_mode mode, int submode)
submode == PHY_INTERFACE_MODE_2500BASEX)
submode = PHY_INTERFACE_MODE_SGMII;
+ if (submode == PHY_INTERFACE_MODE_QUSGMII)
+ submode = PHY_INTERFACE_MODE_QSGMII;
+
for (i = 0; i < ARRAY_SIZE(lan966x_serdes_muxes); i++) {
if (macro->idx != lan966x_serdes_muxes[i].idx ||
mode != lan966x_serdes_muxes[i].mode ||
--
2.37.2
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH net-next] phy: lan966x: add support for QUSGMII
2022-08-26 14:17 [PATCH net-next] phy: lan966x: add support for QUSGMII Maxime Chevallier
@ 2022-08-31 12:00 ` patchwork-bot+netdevbpf
2022-09-20 6:18 ` Vinod Koul
1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+netdevbpf @ 2022-08-31 12:00 UTC (permalink / raw)
To: Maxime Chevallier
Cc: davem, linux-phy, netdev, linux-kernel, kishon, vkoul,
horatiu.vultur, linux, UNGLinuxDriver, thomas.petazzoni
Hello:
This patch was applied to netdev/net-next.git (master)
by David S. Miller <davem@davemloft.net>:
On Fri, 26 Aug 2022 16:17:22 +0200 you wrote:
> Makes so that the serdes driver also takes QUSGMII in consideration.
> It's configured exactly as QSGMII as far as the serdes driver is
> concerned.
>
> Signed-off-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
> ---
>
> [...]
Here is the summary with links:
- [net-next] phy: lan966x: add support for QUSGMII
https://git.kernel.org/netdev/net-next/c/215da896df6c
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* Re: [PATCH net-next] phy: lan966x: add support for QUSGMII
2022-08-26 14:17 [PATCH net-next] phy: lan966x: add support for QUSGMII Maxime Chevallier
2022-08-31 12:00 ` patchwork-bot+netdevbpf
@ 2022-09-20 6:18 ` Vinod Koul
1 sibling, 0 replies; 3+ messages in thread
From: Vinod Koul @ 2022-09-20 6:18 UTC (permalink / raw)
To: Maxime Chevallier
Cc: davem, linux-phy, netdev, linux-kernel, Kishon Vijay Abraham I,
Horatiu Vultur, Russell King, UNGLinuxDriver, thomas.petazzoni
On 26-08-22, 16:17, Maxime Chevallier wrote:
> Makes so that the serdes driver also takes QUSGMII in consideration.
> It's configured exactly as QSGMII as far as the serdes driver is
> concerned.
>
> Signed-off-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
> ---
>
> Dear netdev and Generic PHY maintainers,
>
> This patch should go through the net-next tree instead of the generic
> PHY tree, as it has a dependency on :
>
> 5e61fe157a27 "net: phy: Introduce QUSGMII PHY mode"
>
> This commits only lives in the net-next tree as of today.
>
> Given the simplicity of this patch, would that be OK for you ?
Sure:
Acked-By: Vinod Koul <vkoul@kernel.org>
>
> Thanks,
>
> Maxime
>
> drivers/phy/microchip/lan966x_serdes.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/drivers/phy/microchip/lan966x_serdes.c b/drivers/phy/microchip/lan966x_serdes.c
> index e86a879b92b5..d1a50fa81130 100644
> --- a/drivers/phy/microchip/lan966x_serdes.c
> +++ b/drivers/phy/microchip/lan966x_serdes.c
> @@ -401,6 +401,9 @@ static int serdes_set_mode(struct phy *phy, enum phy_mode mode, int submode)
> submode == PHY_INTERFACE_MODE_2500BASEX)
> submode = PHY_INTERFACE_MODE_SGMII;
>
> + if (submode == PHY_INTERFACE_MODE_QUSGMII)
> + submode = PHY_INTERFACE_MODE_QSGMII;
> +
> for (i = 0; i < ARRAY_SIZE(lan966x_serdes_muxes); i++) {
> if (macro->idx != lan966x_serdes_muxes[i].idx ||
> mode != lan966x_serdes_muxes[i].mode ||
> --
> 2.37.2
>
>
> --
> linux-phy mailing list
> linux-phy@lists.infradead.org
> https://lists.infradead.org/mailman/listinfo/linux-phy
--
~Vinod
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-09-20 6:18 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-26 14:17 [PATCH net-next] phy: lan966x: add support for QUSGMII Maxime Chevallier
2022-08-31 12:00 ` patchwork-bot+netdevbpf
2022-09-20 6:18 ` Vinod Koul
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).