[PATCH] net: dsa: mv88e6060: Publish the OF module alias

hpp.iscas posted 1 patch 2 weeks, 6 days ago
drivers/net/dsa/mv88e6060.c | 1 +
1 file changed, 1 insertion(+)
[PATCH] net: dsa: mv88e6060: Publish the OF module alias
Posted by hpp.iscas 2 weeks, 6 days ago
The MV88E6060 MDIO driver uses mv88e6060_of_match for OF matching.
The MDIO bus emits an OF modalias for such devices, but the module
only provides the legacy platform:mv88e6060 alias.

Publish the OF match table and retain the legacy alias.

Fixes: 277617603c02 ("net: dsa: mv88e6060: Support probing as an mdio device")
Signed-off-by: hpp.iscas <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 9c8ac14..8373ccd 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,
Re: [PATCH] net: dsa: mv88e6060: Publish the OF module alias
Posted by Jakub Kicinski 2 weeks, 3 days ago
On Sat,  5 Sep 2026 21:41:31 +0800 hpp.iscas wrote:
> From: "hpp.iscas" <hppiscas@163.com>

We need something resembling your real legal name.
-- 
pw-bot: cr
Re: [PATCH] net: dsa: mv88e6060: Publish the OF module alias
Posted by Linus Walleij 2 weeks, 6 days ago
On Sat, Sep 5, 2026 at 3:42 PM hpp.iscas <hppiscas@163.com> wrote:

> The MV88E6060 MDIO driver uses mv88e6060_of_match for OF matching.
> The MDIO bus emits an OF modalias for such devices, but the module
> only provides the legacy platform:mv88e6060 alias.
>
> Publish the OF match table and retain the legacy alias.
>
> Fixes: 277617603c02 ("net: dsa: mv88e6060: Support probing as an mdio device")
> Signed-off-by: hpp.iscas <hppiscas@163.com>

Fair enough.
Reviewed-by: Linus Walleij <linusw@kernel.org>

Yours,
Linus Walleij