Skip to contentSkip to conversation

rtc: rename so the tps6586x-rtc module can be autoloaded at boot

PATCH Applied Nicolas Chauvet 4 participants 6 messages May 10, 2016 – May 11, 2016 3 messages not in the archive

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rtc: rename so the tps6586x-rtc module can be autoloaded at boot

This module is loaded by the related mfd driver which has the needed MODULE_DEVICE_TABLE(i2c,...).

This patch fix the modalias when the rtc driver is built as a module, so the right name is used. Everything operates correctly when this module is builtin.

---
 drivers/rtc/rtc-tps6586x.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/rtc/rtc-tps6586x.c +1 -1
index e404faa..a3418a8 100644
@@ -344,7 +344,7 @@ static struct platform_driver tps6586x_rtc_driver = {
 };
 module_platform_driver(tps6586x_rtc_driver);
 
-MODULE_ALIAS("platform:rtc-tps6586x");
+MODULE_ALIAS("platform:tps6586x-rtc");
 MODULE_DESCRIPTION("TI TPS6586x RTC driver");
 MODULE_AUTHOR("Laxman dewangan <[email protected]>");
 MODULE_LICENSE("GPL v2");
Signature · 1 line
2.4.11

A message that is not in the archive (sent off-list or not yet received): 1462876002-6462-1-git-send-email-kwizart-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org

#2 lore raw
Quoted 6 lines · Nicolas Chauvet

This module is loaded by the related mfd driver which has the needed MODULE_DEVICE_TABLE(i2c,...).

This patch fix the modalias when the rtc driver is built as a module, so the right name is used. Everything operates correctly when this module is builtin.

I'm sure this used to work. Do you know when/why it broke? Perhaps a Fixes: tag would be useful, and perhaps a Cc: stable?

#3 lore raw

2016-05-10 17:43 GMT+02:00 Stephen Warren <[email protected]>:

Quoted 5 lines · Nicolas Chauvet
Quoted 4 lines

This module is loaded by the related mfd driver which has the needed MODULE_DEVICE_TABLE(i2c,...).

Quoted 8 lines
Quoted 4 lines

This patch fix the modalias when the rtc driver is built as a module, so the right name is used. Everything operates correctly when this module is builtin.

I'm sure this used to work. Do you know when/why it broke? Perhaps a
Fixes: tag would be useful, and perhaps a Cc: stable?

I don't remember autoloading of rtc-tps6586x.ko has ever worked. Then there is still the issue of rtc modules loaded too late for the kernel (or the kernel not capable to defer the read of hw clock), but that's another issue.

I first tried to report the issue on this bug tracker and at that time, autoloading wasn't working (was in 2014).
https://bugzilla.redhat.com/show_bug.cgi?id=1074002

I'm sure current distros using an arm generic kernel (with all modules) will rebase on kernel 4.4, but technically the bug is present in kernel 3.10 from the oldest current maintained branch (since the driver introduction).

Signature · 9 lines
-- 
You received this message because you are subscribed to "rtc-linux".
Membership options at http://groups.google.com/group/rtc-linux .
Please read http://groups.google.com/group/rtc-linux/web/checklist
before submitting a driver.
--- 
You received this message because you are subscribed to the Google Groups "rtc-linux" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.

A message that is not in the archive (sent off-list or not yet received): [email protected]

#5 lore raw

2016-05-10 17:43 GMT+02:00 Stephen Warren <[email protected]>:

Quoted 5 lines · Nicolas Chauvet
Quoted 4 lines

This module is loaded by the related mfd driver which has the needed MODULE_DEVICE_TABLE(i2c,...).

Quoted 7 lines
Quoted 3 lines

This patch fix the modalias when the rtc driver is built as a module, so the right name is used. Everything operates correctly when this module is builtin.

I'm sure this used to work. Do you know when/why it broke? Perhaps a Fixes:
tag would be useful, and perhaps a Cc: stable?

I don't remember autoloading of rtc-tps6586x.ko has ever worked. Then there is still the issue of rtc modules loaded too late for the kernel (or the kernel not capable to defer the read of hw clock), but that's another issue.

I first tried to report the issue on this bug tracker and at that time, autoloading wasn't working (was in 2014).
https://bugzilla.redhat.com/show_bug.cgi?id=1074002

I'm sure current distros using an arm generic kernel (with all modules) will rebase on kernel 4.4, but technically the bug is present in kernel 3.10 from the oldest current maintained branch (since the driver introduction).

A message that is not in the archive (sent off-list or not yet received): CABr+WTnFodrRSThovUCwY+8Th0TjeOPSAFkCKcupfjAXE4bUAA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org

#7 lore raw
Quoted 19 lines · Nicolas Chauvet

2016-05-10 17:43 GMT+02:00 Stephen Warren <[email protected]>:

Quoted 5 lines · Nicolas Chauvet
Quoted 4 lines

This module is loaded by the related mfd driver which has the needed MODULE_DEVICE_TABLE(i2c,...).

Quoted 7 lines
Quoted 3 lines

This patch fix the modalias when the rtc driver is built as a module, so the right name is used. Everything operates correctly when this module is builtin.

I'm sure this used to work. Do you know when/why it broke? Perhaps a Fixes:
tag would be useful, and perhaps a Cc: stable?

I don't remember autoloading of rtc-tps6586x.ko has ever worked. Then there is still the issue of rtc modules loaded too late for the kernel (or the kernel not capable to defer the read of hw clock), but that's another issue.

Quoted 8 lines

I first tried to report the issue on this bug tracker and at that time, autoloading wasn't working (was in 2014).
https://bugzilla.redhat.com/show_bug.cgi?id=1074002

I'm sure current distros using an arm generic kernel (with all modules) will rebase on kernel 4.4, but technically the bug is present in kernel 3.10 from the oldest current maintained branch (since the driver introduction).

Ah, all the cases I used previous did indeed have the RTC driver built-in not a module, so that explains it.

#8 lore raw
In reply to a message not in the archive
Quoted 12 lines · Nicolas Chauvet

This module is loaded by the related mfd driver which has the needed MODULE_DEVICE_TABLE(i2c,...).

This patch fix the modalias when the rtc driver is built as a module, so the right name is used. Everything operates correctly when this module is builtin.

---
 drivers/rtc/rtc-tps6586x.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Applied, thanks.

Signature · 3 lines
Alexandre Belloni, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com