net: dsa: mv88e6060: publish the OF module alias
Subsystems (3)
PATCH v2 1/1 net: dsa: mv88e6060: publish the OF module alias
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.
---
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/[email protected]/
drivers/net/dsa/mv88e6060.c | 1 + 1 file changed, 1 insertion(+)
drivers/net/dsa/mv88e6060.c +1 -0
@@ -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
Signature · 1 line
2.50.1 (Apple Git-155)
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Hello:
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Quoted 8 lines · 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!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html