Skip to contentSkip to conversation

misc: eeprom_93xx46: Enable module autoprobe

PATCH In review Aswath Govindraju 2 participants 5 messages Jan 7, 2021 – Jan 13, 2021 Char and misc drivers

lore
Share & tools
lore
#0 lore raw

cover misc: eeprom_93xx46: Enable module autoprobe

The following series of patches
- fixes the modules alias for eeprom-93XX46
- enables module autprobe for microchip 93LC46B eeprom

Aswath Govindraju (2):
misc: eeprom_93xx46: Fix module alias to enable module autoprobe
misc: eeprom_93xx46: Enable module autoprobe for microchip 93LC46B
eeprom

 drivers/misc/eeprom/eeprom_93xx46.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Signature · 1 line
2.17.1
#1 lore raw

PATCH 1/2 misc: eeprom_93xx46: Fix module alias to enable module autoprobe

Fix module autoprobe by correcting module alias to match the string from /sys/class/.../spi1.0/modalias content.

Fixes 06b4501e88ad ("misc/eeprom: add driver for microwire 93xx46 EEPROMs")
---
 drivers/misc/eeprom/eeprom_93xx46.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/misc/eeprom/eeprom_93xx46.c +1 -1
index a18247696ce7..890624d97774 100644
@@ -526,4 +526,4 @@ module_spi_driver(eeprom_93xx46_driver);
 MODULE_LICENSE("GPL");
 MODULE_DESCRIPTION("Driver for 93xx46 EEPROMs");
 MODULE_AUTHOR("Anatolij Gustschin <[email protected]>");
-MODULE_ALIAS("spi:93xx46");
+MODULE_ALIAS("spi:eeprom-93xx46");
Signature · 1 line
2.17.1
#2 lore raw

Re: [PATCH 1/2] misc: eeprom_93xx46: Fix module alias to enable module autoprobe

Quoted 14 lines · Aswath Govindraju

Fix module autoprobe by correcting module alias to match the string from /sys/class/.../spi1.0/modalias content.

Fixes 06b4501e88ad ("misc/eeprom: add driver for microwire 93xx46 EEPROMs")
---
 drivers/misc/eeprom/eeprom_93xx46.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/misc/eeprom/eeprom_93xx46.c +0 -0
index a18247696ce7..890624d97774 100644

drivers/misc/eeprom/eeprom_93xx46.c module_spi_driver(eeprom_93xx46_driver); · line 529

Quoted 4 lines
drivers/misc/eeprom/eeprom_93xx46.c +0 -1
@@ -526,4 +526,4 @@ module_spi_driver(eeprom_93xx46_driver);
 MODULE_LICENSE("GPL");
 MODULE_DESCRIPTION("Driver for 93xx46 EEPROMs");
 MODULE_AUTHOR("Anatolij Gustschin <[email protected]>");
-MODULE_ALIAS("spi:93xx46");

This will break non DT users of this driver like
drivers/misc/eeprom/digsy_mtc_eeprom.c

drivers/misc/eeprom/eeprom_93xx46.c module_spi_driver(eeprom_93xx46_driver); · line 529

Quoted 2 lines
drivers/misc/eeprom/eeprom_93xx46.c +1 -0
+MODULE_ALIAS("spi:eeprom-93xx46");

Can be a new entry.

Regards
Vignesh

#3 lore raw

Re: [PATCH 1/2] misc: eeprom_93xx46: Fix module alias to enable module autoprobe

Quoted 25 lines · Vignesh Raghavendra
Quoted 14 lines · Aswath Govindraju

Fix module autoprobe by correcting module alias to match the string from /sys/class/.../spi1.0/modalias content.

Fixes 06b4501e88ad ("misc/eeprom: add driver for microwire 93xx46 EEPROMs")
---
 drivers/misc/eeprom/eeprom_93xx46.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/misc/eeprom/eeprom_93xx46.c +0 -0
index a18247696ce7..890624d97774 100644

drivers/misc/eeprom/eeprom_93xx46.c module_spi_driver(eeprom_93xx46_driver); · line 529

Quoted 4 lines
drivers/misc/eeprom/eeprom_93xx46.c +0 -1
@@ -526,4 +526,4 @@ module_spi_driver(eeprom_93xx46_driver);
 MODULE_LICENSE("GPL");
 MODULE_DESCRIPTION("Driver for 93xx46 EEPROMs");
 MODULE_AUTHOR("Anatolij Gustschin <[email protected]>");
-MODULE_ALIAS("spi:93xx46");

This will break non DT users of this driver like
drivers/misc/eeprom/digsy_mtc_eeprom.c

Quoted 5 lines

drivers/misc/eeprom/eeprom_93xx46.c module_spi_driver(eeprom_93xx46_driver); · line 529

Quoted 2 lines
drivers/misc/eeprom/eeprom_93xx46.c +1 -0
+MODULE_ALIAS("spi:eeprom-93xx46");

Can be a new entry.

Thank you for the comments. Addressed this by sending a follow up patch,
https://lore.kernel.org/patchwork/patch/1364431/

Thanks,
Aswath

#4 lore raw

PATCH 2/2 misc: eeprom_93xx46: Enable module autoprobe for microchip 93LC46B eeprom

In reply to Aswath Govindraju

Add module alias to enable autoprobe for microchip 93LC46B eeprom by using /sys/class/.../spi1.0/modalias content.

---

This patch is dependent on,
https://lore.kernel.org/patchwork/patch/1360658/

 drivers/misc/eeprom/eeprom_93xx46.c | 1 +
 1 file changed, 1 insertion(+)
drivers/misc/eeprom/eeprom_93xx46.c +1 -0
index 890624d97774..9ca2571cab17 100644
@@ -527,3 +527,4 @@ MODULE_LICENSE("GPL");
 MODULE_DESCRIPTION("Driver for 93xx46 EEPROMs");
 MODULE_AUTHOR("Anatolij Gustschin <[email protected]>");
 MODULE_ALIAS("spi:eeprom-93xx46");
+MODULE_ALIAS("spi:93lc46b");
Signature · 1 line
2.17.1