Skip to contentSkip to conversation

net: xscale: publish the IXP46x PTP OF module alias

PATCH Applied Pengpeng Hou 2 participants 2 messages Sep 20 – Sep 22

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 net: xscale: publish the IXP46x PTP OF module alias

The IXP46x PTP driver matches intel,ixp46x-ptp-timer via its OF table, but does not export that table. A module build therefore lacks the OF alias used to automatically load the timer driver.

Export the existing table without changing the matching or probe logic.

The issue was found by our static-analysis tool.

Fixes e9e506221b42 ("ixp4xx_eth: Probe the PTP module from the device tree")
Assisted-by gpt 5

---
Changes since v1:
https://lore.kernel.org/all/[email protected]/
Rewrite the source-analysis explanation as requested by Jakub and identify the PTP driver in the subject.

 drivers/net/ethernet/xscale/ptp_ixp46x.c |    1 +
 1 file changed, 1 insertion(+)
drivers/net/ethernet/xscale/ptp_ixp46x.c +1 -0
index 558c4f8d23f7..c805d1df5d4e 100644
@@ -307,6 +307,7 @@ static const struct of_device_id ptp_ixp_match[] = {
 	},
 	{ },
 };
+MODULE_DEVICE_TABLE(of, ptp_ixp_match);
 
 static struct platform_driver ptp_ixp_driver = {
 	.driver = {

base-commit: 518e5b794c06c0f0eb40df3e202274a66202c137

Signature · 1 line
2.50.1 (Apple Git-155)
#1 lore raw
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 9 lines · On Sun, 20 Sep 2026 11:45:57 +0800 you wrote:

The IXP46x PTP driver matches intel,ixp46x-ptp-timer via its OF table, but does not export that table. A module build therefore lacks the OF alias used to automatically load the timer driver.

Export the existing table without changing the matching or probe logic.

The issue was found by our static-analysis tool.

[...]

Here is the summary with links:
- [net,v2] net: xscale: publish the IXP46x PTP OF module alias

    https://git.kernel.org/netdev/net-next/c/51cb6a6424f3

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html