public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH -next 0/3] ata: Enable module autoloading
@ 2024-08-29 13:19 Liao Chen
  2024-08-29 13:19 ` [PATCH -next 1/3] ata: pata_ftide010: " Liao Chen
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Liao Chen @ 2024-08-29 13:19 UTC (permalink / raw)
  To: linux-ide, linux-kernel
  Cc: linus.walleij, s.shtylyov, dlemoal, cassel, liaochen4

Hi all,

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

Liao Chen (3):
  ata: pata_ftide010: Enable module autoloading
  ata: pata_ixp4xx: Enable module autoloading
  ata: sata_gemini: Enable module autoloading

 drivers/ata/pata_ftide010.c  | 1 +
 drivers/ata/pata_ixp4xx_cf.c | 1 +
 drivers/ata/sata_gemini.c    | 1 +
 3 files changed, 3 insertions(+)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [PATCH -next 1/3] ata: pata_ftide010: Enable module autoloading
  2024-08-29 13:19 [PATCH -next 0/3] ata: Enable module autoloading Liao Chen
@ 2024-08-29 13:19 ` Liao Chen
  2024-08-29 16:56   ` Sergey Shtylyov
  2024-08-30  4:51   ` Damien Le Moal
  2024-08-29 13:19 ` [PATCH -next 2/3] ata: pata_ixp4xx: " Liao Chen
  2024-08-29 13:19 ` [PATCH -next 3/3] ata: sata_gemini: " Liao Chen
  2 siblings, 2 replies; 8+ messages in thread
From: Liao Chen @ 2024-08-29 13:19 UTC (permalink / raw)
  To: linux-ide, linux-kernel
  Cc: linus.walleij, s.shtylyov, dlemoal, cassel, 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/ata/pata_ftide010.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/ata/pata_ftide010.c b/drivers/ata/pata_ftide010.c
index 4d6ef90ccc77..73a9a5109238 100644
--- a/drivers/ata/pata_ftide010.c
+++ b/drivers/ata/pata_ftide010.c
@@ -549,6 +549,7 @@ static const struct of_device_id pata_ftide010_of_match[] = {
 	{ .compatible = "faraday,ftide010", },
 	{ /* sentinel */ }
 };
+MODULE_DEVICE_TABLE(of, pata_ftide010_of_match);
 
 static struct platform_driver pata_ftide010_driver = {
 	.driver = {
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH -next 2/3] ata: pata_ixp4xx: Enable module autoloading
  2024-08-29 13:19 [PATCH -next 0/3] ata: Enable module autoloading Liao Chen
  2024-08-29 13:19 ` [PATCH -next 1/3] ata: pata_ftide010: " Liao Chen
@ 2024-08-29 13:19 ` Liao Chen
  2024-08-29 16:57   ` Sergey Shtylyov
  2024-08-29 13:19 ` [PATCH -next 3/3] ata: sata_gemini: " Liao Chen
  2 siblings, 1 reply; 8+ messages in thread
From: Liao Chen @ 2024-08-29 13:19 UTC (permalink / raw)
  To: linux-ide, linux-kernel
  Cc: linus.walleij, s.shtylyov, dlemoal, cassel, 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/ata/pata_ixp4xx_cf.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/ata/pata_ixp4xx_cf.c b/drivers/ata/pata_ixp4xx_cf.c
index 246bb4f8f1f7..8a9ee828478f 100644
--- a/drivers/ata/pata_ixp4xx_cf.c
+++ b/drivers/ata/pata_ixp4xx_cf.c
@@ -290,6 +290,7 @@ static const struct of_device_id ixp4xx_pata_of_match[] = {
 	{ .compatible = "intel,ixp4xx-compact-flash", },
 	{ /* sentinel */ }
 };
+MODULE_DEVICE_TABLE(of, ixp4xx_pata_of_match);
 
 static struct platform_driver ixp4xx_pata_platform_driver = {
 	.driver	 = {
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH -next 3/3] ata: sata_gemini: Enable module autoloading
  2024-08-29 13:19 [PATCH -next 0/3] ata: Enable module autoloading Liao Chen
  2024-08-29 13:19 ` [PATCH -next 1/3] ata: pata_ftide010: " Liao Chen
  2024-08-29 13:19 ` [PATCH -next 2/3] ata: pata_ixp4xx: " Liao Chen
@ 2024-08-29 13:19 ` Liao Chen
  2024-08-30 14:10   ` Linus Walleij
  2 siblings, 1 reply; 8+ messages in thread
From: Liao Chen @ 2024-08-29 13:19 UTC (permalink / raw)
  To: linux-ide, linux-kernel
  Cc: linus.walleij, s.shtylyov, dlemoal, cassel, 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/ata/sata_gemini.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/ata/sata_gemini.c b/drivers/ata/sata_gemini.c
index 4c270999ba3c..f574e3c3f5b4 100644
--- a/drivers/ata/sata_gemini.c
+++ b/drivers/ata/sata_gemini.c
@@ -417,6 +417,7 @@ static const struct of_device_id gemini_sata_of_match[] = {
 	{ .compatible = "cortina,gemini-sata-bridge", },
 	{ /* sentinel */ }
 };
+MODULE_DEVICE_TABLE(of, gemini_sata_of_match);
 
 static struct platform_driver gemini_sata_driver = {
 	.driver = {
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [PATCH -next 1/3] ata: pata_ftide010: Enable module autoloading
  2024-08-29 13:19 ` [PATCH -next 1/3] ata: pata_ftide010: " Liao Chen
@ 2024-08-29 16:56   ` Sergey Shtylyov
  2024-08-30  4:51   ` Damien Le Moal
  1 sibling, 0 replies; 8+ messages in thread
From: Sergey Shtylyov @ 2024-08-29 16:56 UTC (permalink / raw)
  To: Liao Chen, linux-ide, linux-kernel; +Cc: linus.walleij, dlemoal, cassel

On 8/29/24 4:19 PM, Liao Chen wrote:

> 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>

Reviewed-by: Sergey Shtylyov <s.shtylyov@omp.ru>

[...]

MBR, Sergey

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH -next 2/3] ata: pata_ixp4xx: Enable module autoloading
  2024-08-29 13:19 ` [PATCH -next 2/3] ata: pata_ixp4xx: " Liao Chen
@ 2024-08-29 16:57   ` Sergey Shtylyov
  0 siblings, 0 replies; 8+ messages in thread
From: Sergey Shtylyov @ 2024-08-29 16:57 UTC (permalink / raw)
  To: Liao Chen, linux-ide, linux-kernel; +Cc: linus.walleij, dlemoal, cassel

On 8/29/24 4:19 PM, Liao Chen wrote:

> 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>

Reviewed-by: Sergey Shtylyov <s.shtylyov@omp.ru>

[...]

MBR, Sergey

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH -next 1/3] ata: pata_ftide010: Enable module autoloading
  2024-08-29 13:19 ` [PATCH -next 1/3] ata: pata_ftide010: " Liao Chen
  2024-08-29 16:56   ` Sergey Shtylyov
@ 2024-08-30  4:51   ` Damien Le Moal
  1 sibling, 0 replies; 8+ messages in thread
From: Damien Le Moal @ 2024-08-30  4:51 UTC (permalink / raw)
  To: Liao Chen, linux-ide, linux-kernel; +Cc: linus.walleij, s.shtylyov, cassel

On 8/29/24 10:19 PM, Liao Chen wrote:
> Add MODULE_DEVICE_TABLE(), so modules could be properly autoloaded based

s/could/can

Same comment for the other 2 patches. Other than that, looks good.
Feel free to add Sergey's review tag when sending v2. Thanks.

> on the alias from of_device_id table.
> 
> Signed-off-by: Liao Chen <liaochen4@huawei.com>
> ---
>  drivers/ata/pata_ftide010.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/ata/pata_ftide010.c b/drivers/ata/pata_ftide010.c
> index 4d6ef90ccc77..73a9a5109238 100644
> --- a/drivers/ata/pata_ftide010.c
> +++ b/drivers/ata/pata_ftide010.c
> @@ -549,6 +549,7 @@ static const struct of_device_id pata_ftide010_of_match[] = {
>  	{ .compatible = "faraday,ftide010", },
>  	{ /* sentinel */ }
>  };
> +MODULE_DEVICE_TABLE(of, pata_ftide010_of_match);
>  
>  static struct platform_driver pata_ftide010_driver = {
>  	.driver = {

-- 
Damien Le Moal
Western Digital Research


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH -next 3/3] ata: sata_gemini: Enable module autoloading
  2024-08-29 13:19 ` [PATCH -next 3/3] ata: sata_gemini: " Liao Chen
@ 2024-08-30 14:10   ` Linus Walleij
  0 siblings, 0 replies; 8+ messages in thread
From: Linus Walleij @ 2024-08-30 14:10 UTC (permalink / raw)
  To: Liao Chen; +Cc: linux-ide, linux-kernel, s.shtylyov, dlemoal, cassel

On Thu, Aug 29, 2024 at 3:27 PM Liao Chen <liaochen4@huawei.com> wrote:

> 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>

Reviewed-by: Linus Walleij <linus.walleij@linaro.org>

Yours,
Linus Walleij

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2024-08-30 14:11 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-29 13:19 [PATCH -next 0/3] ata: Enable module autoloading Liao Chen
2024-08-29 13:19 ` [PATCH -next 1/3] ata: pata_ftide010: " Liao Chen
2024-08-29 16:56   ` Sergey Shtylyov
2024-08-30  4:51   ` Damien Le Moal
2024-08-29 13:19 ` [PATCH -next 2/3] ata: pata_ixp4xx: " Liao Chen
2024-08-29 16:57   ` Sergey Shtylyov
2024-08-29 13:19 ` [PATCH -next 3/3] ata: sata_gemini: " Liao Chen
2024-08-30 14:10   ` Linus Walleij

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox