* [PATCH 1/1] net: dsa: yt921x: Fix external port detection
@ 2026-07-10 10:00 Chukun Pan
2026-07-21 19:00 ` patchwork-bot+netdevbpf
0 siblings, 1 reply; 2+ messages in thread
From: Chukun Pan @ 2026-07-10 10:00 UTC (permalink / raw)
To: David Yang
Cc: Andrew Lunn, Paolo Abeni, Jakub Kicinski, Eric Dumazet,
Vladimir Oltean, David S . Miller, linux-kernel, netdev,
Chukun Pan
The YT921x switch has two MAC ports: 8 and 9. Currently, the driver
only allows port 8 as an external port, while port 9 is not working:
yt921x mdio-bus:1d: Wrong mode 23 on port 9
yt921x mdio-bus:1d: Failed to config port 9: -22
Update the external port detection logic to enable the external PHY
connected to port 9.
Fixes: 186623f4aa72 ("net: dsa: yt921x: Add support for Motorcomm YT921x")
Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn>
---
drivers/net/dsa/yt921x.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/dsa/yt921x.h b/drivers/net/dsa/yt921x.h
index 555046526669..5f3b99e189c4 100644
--- a/drivers/net/dsa/yt921x.h
+++ b/drivers/net/dsa/yt921x.h
@@ -854,7 +854,7 @@ enum yt921x_fdb_entry_status {
#define YT921X_PORT_NUM 11
#define yt921x_port_is_internal(port) ((port) < 8)
-#define yt921x_port_is_external(port) (8 <= (port) && (port) < 9)
+#define yt921x_port_is_external(port) ((port) == 8 || (port) == 9)
struct yt921x_mib {
u64 rx_broadcast;
--
2.34.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 1/1] net: dsa: yt921x: Fix external port detection
2026-07-10 10:00 [PATCH 1/1] net: dsa: yt921x: Fix external port detection Chukun Pan
@ 2026-07-21 19:00 ` patchwork-bot+netdevbpf
0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2026-07-21 19:00 UTC (permalink / raw)
To: Chukun Pan
Cc: mmyangfl, andrew, pabeni, kuba, edumazet, olteanv, davem,
linux-kernel, netdev
Hello:
This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Fri, 10 Jul 2026 18:00:00 +0800 you wrote:
> The YT921x switch has two MAC ports: 8 and 9. Currently, the driver
> only allows port 8 as an external port, while port 9 is not working:
>
> yt921x mdio-bus:1d: Wrong mode 23 on port 9
> yt921x mdio-bus:1d: Failed to config port 9: -22
>
> Update the external port detection logic to enable the external PHY
> connected to port 9.
>
> [...]
Here is the summary with links:
- [1/1] net: dsa: yt921x: Fix external port detection
https://git.kernel.org/netdev/net-next/c/f2596ce59b15
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] 2+ messages in thread
end of thread, other threads:[~2026-07-21 19:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-10 10:00 [PATCH 1/1] net: dsa: yt921x: Fix external port detection Chukun Pan
2026-07-21 19:00 ` patchwork-bot+netdevbpf
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.