net: fix module autoloading
Subsystems (5)
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
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
@@ -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
PATCH 2/3 net: ag71xx: fix module autoloading
In reply to Liao ChenAdd 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
@@ -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
PATCH 3/3 net: airoha: fix module autoloading
In reply to Liao ChenAdd 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
@@ -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
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 fromof_device_idtable.Signed-off-by Liao Chen <[email protected]>
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@@ -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
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