Skip to contentSkip to conversation

net: fix module autoloading

PATCH Applied Liao Chen 3 participants 6 messages Aug 26, 2024 – Aug 27, 2024

Subsystems (5)
lore
Share & tools
lore

Liao Chen

author
#0 lore raw

cover net: fix module autoloading

Hi all,

This patchset aims to enable autoloading of some net modules. By registering MDT, the kernel is allowed to automatically bind modules to devices that match the specified compatible strings.

Liao Chen (3):
net: dm9051: fix module autoloading
net: ag71xx: fix module autoloading
net: airoha: fix module autoloading

 drivers/net/ethernet/atheros/ag71xx.c      | 1 +
 drivers/net/ethernet/davicom/dm9051.c      | 1 +
 drivers/net/ethernet/mediatek/airoha_eth.c | 1 +
 3 files changed, 3 insertions(+)
Signature · 1 line
2.34.1
author
#1 lore raw

PATCH 1/3 net: dm9051: fix module autoloading

Add MODULE_DEVICE_TABLE(), so modules could be properly autoloaded based on the alias from of_device_id table.

---
 drivers/net/ethernet/davicom/dm9051.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/ethernet/davicom/dm9051.c +1 -0
index bcfe52c11804..59ea48d4c9de 100644
@@ -1235,6 +1235,7 @@ static const struct of_device_id dm9051_match_table[] = {
 	{ .compatible = "davicom,dm9051" },
 	{}
 };
+MODULE_DEVICE_TABLE(of, dm9051_match_table);
 
 static const struct spi_device_id dm9051_id_table[] = {
 	{ "dm9051", 0 },
Signature · 1 line
2.34.1
author
#2 lore raw

PATCH 2/3 net: ag71xx: fix module autoloading

In reply to Liao Chen

Add MODULE_DEVICE_TABLE(), so modules could be properly autoloaded based on the alias from of_device_id table.

---
 drivers/net/ethernet/atheros/ag71xx.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/ethernet/atheros/ag71xx.c +1 -0
index a38be924cdaa..844b86abd90a 100644
@@ -2064,6 +2064,7 @@ static const struct of_device_id ag71xx_match[] = {
 	{ .compatible = "qca,qca9560-eth", .data = &ag71xx_dcfg_qca9550 },
 	{}
 };
+MODULE_DEVICE_TABLE(of, ag71xx_match);
 
 static struct platform_driver ag71xx_driver = {
 	.probe		= ag71xx_probe,
Signature · 1 line
2.34.1
author
#3 lore raw

PATCH 3/3 net: airoha: fix module autoloading

In reply to Liao Chen

Add MODULE_DEVICE_TABLE(), so modules could be properly autoloaded based on the alias from of_device_id table.

---
 drivers/net/ethernet/mediatek/airoha_eth.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/ethernet/mediatek/airoha_eth.c +1 -0
index 1c5b85a86df1..a80c1fae5c2d 100644
@@ -2715,6 +2715,7 @@ static const struct of_device_id of_airoha_match[] = {
 	{ .compatible = "airoha,en7581-eth" },
 	{ /* sentinel */ }
 };
+MODULE_DEVICE_TABLE(of, of_airoha_match);
 
 static struct platform_driver airoha_driver = {
 	.probe = airoha_probe,
Signature · 1 line
2.34.1
maintainer Acked-by on v1 3/3
#4 lore raw

Re: [PATCH -next 3/3] net: airoha: fix module autoloading

Quoted 4 lines

Add MODULE_DEVICE_TABLE(), so modules could be properly autoloaded based on the alias from of_device_id table.

Quoted 19 lines
---
 drivers/net/ethernet/mediatek/airoha_eth.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/ethernet/mediatek/airoha_eth.c +1 -0
index 1c5b85a86df1..a80c1fae5c2d 100644
@@ -2715,6 +2715,7 @@ static const struct of_device_id of_airoha_match[] = {
 	{ .compatible = "airoha,en7581-eth" },
 	{ /* sentinel */ }
 };
+MODULE_DEVICE_TABLE(of, of_airoha_match);
 
 static struct platform_driver airoha_driver = {
 	.probe = airoha_probe,
Signature · 1 line
2.34.1
#5 lore raw
In reply to Liao Chen
This series was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Hello:

This series was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Quoted 6 lines · On Mon, 26 Aug 2024 09:18:55 +0000 you wrote:

Hi all,

This patchset aims to enable autoloading of some net modules. By registering MDT, the kernel is allowed to automatically bind modules to devices that match the specified compatible strings.

Quoted 6 lines

Liao Chen (3):
net: dm9051: fix module autoloading
net: ag71xx: fix module autoloading
net: airoha: fix module autoloading

[...]

Here is the summary with links:
- [-next,1/3] net: dm9051: fix module autoloading

    https://git.kernel.org/netdev/net-next/c/2e25147a6560
  - [-next,2/3] net: ag71xx: fix module autoloading
    https://git.kernel.org/netdev/net-next/c/c76afed1bace
  - [-next,3/3] net: airoha: fix module autoloading
    https://git.kernel.org/netdev/net-next/c/7d2bd8ac9d24

You are awesome, thank you!

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