mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH net-next v2] net: dsa: mv88e6060: publish the OF module alias
@ 2026-09-22  0:50 Pengpeng Hou
  2026-09-23  2:10 ` patchwork-bot+netdevbpf
  0 siblings, 1 reply; 2+ messages in thread
From: Pengpeng Hou @ 2026-09-22  0:50 UTC (permalink / raw)
  To: andrew
  Cc: olteanv, davem, edumazet, kuba, pabeni, netdev, linux-kernel,
	linusw, hppiscas

The MDIO driver matches marvell,mv88e6060 through its OF table, but the
table is not exported. The existing platform alias does not supply the
OF modalias used for this MDIO-enumerated device.

Export the existing table so modular OF-based configurations can load
the switch driver automatically.

The issue was found by our static-analysis tool.

Fixes: 277617603c02 ("net: dsa: mv88e6060: Support probing as an mdio device")
Reviewed-by: Linus Walleij <linusw@kernel.org>
Assisted-by: gpt 5
Signed-off-by: Pengpeng Hou <hppiscas@163.com>
---
Changes since v1:
- use the full author name as Jakub requested
- rebase on net-next while preserving the one-line change reviewed by Linus

Previous version:
https://lore.kernel.org/all/20260905134131.66680-1-hppiscas@163.com/

 drivers/net/dsa/mv88e6060.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/dsa/mv88e6060.c b/drivers/net/dsa/mv88e6060.c
index 64bf3d759d17..3bb485a90429 100644
--- a/drivers/net/dsa/mv88e6060.c
+++ b/drivers/net/dsa/mv88e6060.c
@@ -364,6 +364,7 @@ static const struct of_device_id mv88e6060_of_match[] = {
 	},
 	{ /* sentinel */ }
 };
+MODULE_DEVICE_TABLE(of, mv88e6060_of_match);
 
 static struct mdio_driver mv88e6060_driver = {
 	.probe	= mv88e6060_probe,

base-commit: c7a2a8c0c9ef480849d655273101dcd0c5067e6a
-- 
2.50.1 (Apple Git-155)


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH net-next v2] net: dsa: mv88e6060: publish the OF module alias
  2026-09-22  0:50 [PATCH net-next v2] net: dsa: mv88e6060: publish the OF module alias Pengpeng Hou
@ 2026-09-23  2:10 ` patchwork-bot+netdevbpf
  0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2026-09-23  2:10 UTC (permalink / raw)
  To: Pengpeng Hou
  Cc: andrew, olteanv, davem, edumazet, kuba, pabeni, netdev,
	linux-kernel, linusw

Hello:

This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:

On Tue, 22 Sep 2026 08:50:49 +0800 you wrote:
> The MDIO driver matches marvell,mv88e6060 through its OF table, but the
> table is not exported. The existing platform alias does not supply the
> OF modalias used for this MDIO-enumerated device.
> 
> Export the existing table so modular OF-based configurations can load
> the switch driver automatically.
> 
> [...]

Here is the summary with links:
  - [net-next,v2] net: dsa: mv88e6060: publish the OF module alias
    https://git.kernel.org/netdev/net-next/c/776b5abf3fa3

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-09-23  2:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-22  0:50 [PATCH net-next v2] net: dsa: mv88e6060: publish the OF module alias Pengpeng Hou
2026-09-23  2:10 ` 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

all inboxes | Powered by JetHome®