* [PATCH -next 1/3] net: dm9051: fix module autoloading
2024-08-26 9:18 [PATCH -next 0/3] net: fix module autoloading Liao Chen
@ 2024-08-26 9:18 ` Liao Chen
2024-08-26 9:18 ` [PATCH -next 2/3] net: ag71xx: " Liao Chen
` (2 subsequent siblings)
3 siblings, 0 replies; 6+ messages in thread
From: Liao Chen @ 2024-08-26 9:18 UTC (permalink / raw)
To: netdev, linux-kernel, linux-arm-kernel, linux-mediatek
Cc: chris.snook, davem, edumazet, kuba, pabeni, lorenzo, nbd,
sean.wang, Mark-MC.Lee, matthias.bgg, angelogioacchino.delregno,
liaochen4
Add MODULE_DEVICE_TABLE(), so modules could be properly autoloaded
based on the alias from of_device_id table.
Signed-off-by: Liao Chen <liaochen4@huawei.com>
---
drivers/net/ethernet/davicom/dm9051.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/ethernet/davicom/dm9051.c b/drivers/net/ethernet/davicom/dm9051.c
index bcfe52c11804..59ea48d4c9de 100644
--- a/drivers/net/ethernet/davicom/dm9051.c
+++ b/drivers/net/ethernet/davicom/dm9051.c
@@ -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 },
--
2.34.1
^ permalink raw reply related [flat|nested] 6+ messages in thread* [PATCH -next 2/3] net: ag71xx: fix module autoloading
2024-08-26 9:18 [PATCH -next 0/3] net: fix module autoloading Liao Chen
2024-08-26 9:18 ` [PATCH -next 1/3] net: dm9051: " Liao Chen
@ 2024-08-26 9:18 ` Liao Chen
2024-08-26 9:18 ` [PATCH -next 3/3] net: airoha: " Liao Chen
2024-08-27 21:30 ` [PATCH -next 0/3] net: " patchwork-bot+netdevbpf
3 siblings, 0 replies; 6+ messages in thread
From: Liao Chen @ 2024-08-26 9:18 UTC (permalink / raw)
To: netdev, linux-kernel, linux-arm-kernel, linux-mediatek
Cc: chris.snook, davem, edumazet, kuba, pabeni, lorenzo, nbd,
sean.wang, Mark-MC.Lee, matthias.bgg, angelogioacchino.delregno,
liaochen4
Add MODULE_DEVICE_TABLE(), so modules could be properly autoloaded
based on the alias from of_device_id table.
Signed-off-by: Liao Chen <liaochen4@huawei.com>
---
drivers/net/ethernet/atheros/ag71xx.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/ethernet/atheros/ag71xx.c b/drivers/net/ethernet/atheros/ag71xx.c
index a38be924cdaa..844b86abd90a 100644
--- a/drivers/net/ethernet/atheros/ag71xx.c
+++ b/drivers/net/ethernet/atheros/ag71xx.c
@@ -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,
--
2.34.1
^ permalink raw reply related [flat|nested] 6+ messages in thread* [PATCH -next 3/3] net: airoha: fix module autoloading
2024-08-26 9:18 [PATCH -next 0/3] net: fix module autoloading Liao Chen
2024-08-26 9:18 ` [PATCH -next 1/3] net: dm9051: " Liao Chen
2024-08-26 9:18 ` [PATCH -next 2/3] net: ag71xx: " Liao Chen
@ 2024-08-26 9:18 ` Liao Chen
2024-08-26 10:40 ` Lorenzo Bianconi
2024-08-27 21:30 ` [PATCH -next 0/3] net: " patchwork-bot+netdevbpf
3 siblings, 1 reply; 6+ messages in thread
From: Liao Chen @ 2024-08-26 9:18 UTC (permalink / raw)
To: netdev, linux-kernel, linux-arm-kernel, linux-mediatek
Cc: chris.snook, davem, edumazet, kuba, pabeni, lorenzo, nbd,
sean.wang, Mark-MC.Lee, matthias.bgg, angelogioacchino.delregno,
liaochen4
Add MODULE_DEVICE_TABLE(), so modules could be properly autoloaded
based on the alias from of_device_id table.
Signed-off-by: Liao Chen <liaochen4@huawei.com>
---
drivers/net/ethernet/mediatek/airoha_eth.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/ethernet/mediatek/airoha_eth.c b/drivers/net/ethernet/mediatek/airoha_eth.c
index 1c5b85a86df1..a80c1fae5c2d 100644
--- a/drivers/net/ethernet/mediatek/airoha_eth.c
+++ b/drivers/net/ethernet/mediatek/airoha_eth.c
@@ -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,
--
2.34.1
^ permalink raw reply related [flat|nested] 6+ messages in thread* Re: [PATCH -next 3/3] net: airoha: fix module autoloading
2024-08-26 9:18 ` [PATCH -next 3/3] net: airoha: " Liao Chen
@ 2024-08-26 10:40 ` Lorenzo Bianconi
0 siblings, 0 replies; 6+ messages in thread
From: Lorenzo Bianconi @ 2024-08-26 10:40 UTC (permalink / raw)
To: Liao Chen
Cc: netdev, linux-kernel, linux-arm-kernel, linux-mediatek,
chris.snook, davem, edumazet, kuba, pabeni, nbd, sean.wang,
Mark-MC.Lee, matthias.bgg, angelogioacchino.delregno
[-- Attachment #1: Type: text/plain, Size: 882 bytes --]
> Add MODULE_DEVICE_TABLE(), so modules could be properly autoloaded
> based on the alias from of_device_id table.
>
> Signed-off-by: Liao Chen <liaochen4@huawei.com>
Acked-by: Lorenzo Bianconi <lorenzo@kernel.org>
> ---
> drivers/net/ethernet/mediatek/airoha_eth.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/net/ethernet/mediatek/airoha_eth.c b/drivers/net/ethernet/mediatek/airoha_eth.c
> index 1c5b85a86df1..a80c1fae5c2d 100644
> --- a/drivers/net/ethernet/mediatek/airoha_eth.c
> +++ b/drivers/net/ethernet/mediatek/airoha_eth.c
> @@ -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,
> --
> 2.34.1
>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH -next 0/3] net: fix module autoloading
2024-08-26 9:18 [PATCH -next 0/3] net: fix module autoloading Liao Chen
` (2 preceding siblings ...)
2024-08-26 9:18 ` [PATCH -next 3/3] net: airoha: " Liao Chen
@ 2024-08-27 21:30 ` patchwork-bot+netdevbpf
3 siblings, 0 replies; 6+ messages in thread
From: patchwork-bot+netdevbpf @ 2024-08-27 21:30 UTC (permalink / raw)
To: Liao Chen
Cc: netdev, linux-kernel, linux-arm-kernel, linux-mediatek,
chris.snook, davem, edumazet, kuba, pabeni, lorenzo, nbd,
sean.wang, Mark-MC.Lee, matthias.bgg, angelogioacchino.delregno
Hello:
This series was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:
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.
>
> 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!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 6+ messages in thread