misc: eeprom_93xx46: Enable module autoprobe
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
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.
--- drivers/misc/eeprom/eeprom_93xx46.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/misc/eeprom/eeprom_93xx46.c +1 -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" ); +MODULE_ALIAS ("spi:eeprom-93xx46" );
Signature · 1 line
2.17.1
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/modaliascontent.Fixes 06b4501e88ad ("misc/eeprom: add driver for microwire 93xx46 EEPROMs")Signed-off-by Aswath Govindraju <[email protected]>--- drivers/misc/eeprom/eeprom_93xx46.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/misc/eeprom/eeprom_93xx46.c +0
-0
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 likedrivers/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
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/modaliascontent.Fixes 06b4501e88ad ("misc/eeprom: add driver for microwire 93xx46 EEPROMs")Signed-off-by Aswath Govindraju <[email protected]>--- drivers/misc/eeprom/eeprom_93xx46.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/misc/eeprom/eeprom_93xx46.c +0
-0drivers/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
PATCH 2/2 misc: eeprom_93xx46: Enable module autoprobe for microchip 93LC46B eeprom
In reply to Aswath GovindrajuAdd 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
@@ -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