Skip to contentSkip to conversation

ata: Enable module autoloading

PATCH Applied Liao Chen 3 participants 7 messages Aug 31, 2024 – Sep 1, 2024

Subsystems (2)
lore
Share & tools
lore

Liao Chen

author
#0 lore raw

v2 cover ata: Enable module autoloading

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(+)
Signature · 1 line
2.34.1
author
#1 lore raw

PATCH v2 1/3 ata: pata_ftide010: Enable module autoloading

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

---
 drivers/ata/pata_ftide010.c | 1 +
 1 file changed, 1 insertion(+)
drivers/ata/pata_ftide010.c +1 -0
index 4d6ef90ccc77..73a9a5109238 100644
@@ -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 = {
Signature · 1 line
2.34.1
author
#3 lore raw

PATCH v2 2/3 ata: pata_ixp4xx: Enable module autoloading

In reply to Liao Chen

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

---
 drivers/ata/pata_ixp4xx_cf.c | 1 +
 1 file changed, 1 insertion(+)
drivers/ata/pata_ixp4xx_cf.c +1 -0
index 246bb4f8f1f7..8a9ee828478f 100644
@@ -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	 = {
Signature · 1 line
2.34.1
author
#5 lore raw

PATCH v2 3/3 ata: sata_gemini: Enable module autoloading

In reply to Liao Chen

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

---
 drivers/ata/sata_gemini.c | 1 +
 1 file changed, 1 insertion(+)
drivers/ata/sata_gemini.c +1 -0
index 4c270999ba3c..f574e3c3f5b4 100644
@@ -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 = {
Signature · 1 line
2.34.1
maintainer Applied
#6 lore raw
In reply to Liao Chen
Quoted 11 lines · Liao Chen

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

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

Applied to for-6.12. Thanks !

Signature · 2 lines
Damien Le Moal
Western Digital Research