mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] net: dsa: ar9331: Publish the OF module alias
@ 2026-09-05 13:42 hpp.iscas
  0 siblings, 0 replies; only message in thread
From: hpp.iscas @ 2026-09-05 13:42 UTC (permalink / raw)
  To: Andrew Lunn
  Cc: hpp.iscas, Vladimir Oltean, David S. Miller, Eric Dumazet,
	Jakub Kicinski, Paolo Abeni, netdev, linux-kernel,
	Oleksij Rempel, Vivien Didelot

The AR9331 switch driver registers an OF match table on the MDIO bus.
The bus emits an OF modalias for matching devices, but this table is
not exported to the module's alias metadata.

Publish the existing table without changing DSA registration or routing.

Fixes: ec6698c272de ("net: dsa: add support for Atheros AR9331 built-in switch")
Signed-off-by: hpp.iscas <hppiscas@163.com>
---
 drivers/net/dsa/qca/ar9331.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/dsa/qca/ar9331.c b/drivers/net/dsa/qca/ar9331.c
index 0526aa9..4b3b961 100644
--- a/drivers/net/dsa/qca/ar9331.c
+++ b/drivers/net/dsa/qca/ar9331.c
@@ -1124,6 +1124,7 @@ static const struct of_device_id ar9331_sw_of_match[] = {
 	{ .compatible = "qca,ar9331-switch" },
 	{ },
 };
+MODULE_DEVICE_TABLE(of, ar9331_sw_of_match);
 
 static struct mdio_driver ar9331_sw_mdio_driver = {
 	.probe = ar9331_sw_probe,


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-09-05 13:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-05 13:42 [PATCH] net: dsa: ar9331: Publish the OF module alias hpp.iscas

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®