From: Pengpeng Hou <hppiscas@163.com>
To: andrew@lunn.ch
Cc: olteanv@gmail.com, davem@davemloft.net, edumazet@google.com,
kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org,
linux-kernel@vger.kernel.org, linusw@kernel.org,
hppiscas@163.com
Subject: [PATCH net-next v2] net: dsa: mv88e6060: publish the OF module alias
Date: Tue, 22 Sep 2026 08:50:49 +0800 [thread overview]
Message-ID: <20260922005049.7647-1-hppiscas@163.com> (raw)
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)
next reply other threads:[~2026-09-22 0:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-22 0:50 Pengpeng Hou [this message]
2026-09-23 2:10 ` patchwork-bot+netdevbpf
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260922005049.7647-1-hppiscas@163.com \
--to=hppiscas@163.com \
--cc=andrew@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=kuba@kernel.org \
--cc=linusw@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=olteanv@gmail.com \
--cc=pabeni@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®