* [PATCH] rtc: rename so the tps6586x-rtc module can be autoloaded at boot
@ 2016-05-10 10:26 Nicolas Chauvet
[not found] ` <1462876002-6462-1-git-send-email-kwizart-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
0 siblings, 1 reply; 5+ messages in thread
From: Nicolas Chauvet @ 2016-05-10 10:26 UTC (permalink / raw)
To: Alessandro Zummo, Alexandre Belloni,
rtc-linux-/JYPxA39Uh5TLH3MbocFFw
Cc: linux-omap-u79uwXL29TY76Z2rM5mHXA,
linux-tegra-u79uwXL29TY76Z2rM5mHXA, 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.
Signed-off-by: Nicolas Chauvet <kwizart-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
---
drivers/rtc/rtc-tps6586x.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/rtc/rtc-tps6586x.c b/drivers/rtc/rtc-tps6586x.c
index e404faa..a3418a8 100644
--- a/drivers/rtc/rtc-tps6586x.c
+++ b/drivers/rtc/rtc-tps6586x.c
@@ -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 <ldewangan-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>");
MODULE_LICENSE("GPL v2");
--
2.4.11
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] rtc: rename so the tps6586x-rtc module can be autoloaded at boot
[not found] ` <1462876002-6462-1-git-send-email-kwizart-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
@ 2016-05-10 15:43 ` Stephen Warren
[not found] ` <573201AD.7080705-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2016-05-11 14:58 ` Alexandre Belloni
1 sibling, 1 reply; 5+ messages in thread
From: Stephen Warren @ 2016-05-10 15:43 UTC (permalink / raw)
To: Nicolas Chauvet
Cc: Alessandro Zummo, Alexandre Belloni,
rtc-linux-/JYPxA39Uh5TLH3MbocFFw,
linux-omap-u79uwXL29TY76Z2rM5mHXA,
linux-tegra-u79uwXL29TY76Z2rM5mHXA
On 05/10/2016 04:26 AM, Nicolas Chauvet wrote:
> 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?
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] rtc: rename so the tps6586x-rtc module can be autoloaded at boot
[not found] ` <573201AD.7080705-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
@ 2016-05-10 21:44 ` Nicolas Chauvet
[not found] ` <CABr+WTnFodrRSThovUCwY+8Th0TjeOPSAFkCKcupfjAXE4bUAA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
0 siblings, 1 reply; 5+ messages in thread
From: Nicolas Chauvet @ 2016-05-10 21:44 UTC (permalink / raw)
To: Stephen Warren
Cc: Alessandro Zummo, Alexandre Belloni,
rtc-linux-/JYPxA39Uh5TLH3MbocFFw,
linux-omap-u79uwXL29TY76Z2rM5mHXA,
linux-tegra-u79uwXL29TY76Z2rM5mHXA
2016-05-10 17:43 GMT+02:00 Stephen Warren <swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>:
> On 05/10/2016 04:26 AM, Nicolas Chauvet wrote:
>>
>> 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?
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).
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] rtc: rename so the tps6586x-rtc module can be autoloaded at boot
[not found] ` <CABr+WTnFodrRSThovUCwY+8Th0TjeOPSAFkCKcupfjAXE4bUAA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2016-05-10 23:02 ` Stephen Warren
0 siblings, 0 replies; 5+ messages in thread
From: Stephen Warren @ 2016-05-10 23:02 UTC (permalink / raw)
To: Nicolas Chauvet
Cc: Alessandro Zummo, Alexandre Belloni,
rtc-linux-/JYPxA39Uh5TLH3MbocFFw,
linux-omap-u79uwXL29TY76Z2rM5mHXA,
linux-tegra-u79uwXL29TY76Z2rM5mHXA
On 05/10/2016 03:44 PM, Nicolas Chauvet wrote:
> 2016-05-10 17:43 GMT+02:00 Stephen Warren <swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>:
>> On 05/10/2016 04:26 AM, Nicolas Chauvet wrote:
>>>
>>> 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?
>
> 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).
Ah, all the cases I used previous did indeed have the RTC driver
built-in not a module, so that explains it.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] rtc: rename so the tps6586x-rtc module can be autoloaded at boot
[not found] ` <1462876002-6462-1-git-send-email-kwizart-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2016-05-10 15:43 ` Stephen Warren
@ 2016-05-11 14:58 ` Alexandre Belloni
1 sibling, 0 replies; 5+ messages in thread
From: Alexandre Belloni @ 2016-05-11 14:58 UTC (permalink / raw)
To: Nicolas Chauvet
Cc: Alessandro Zummo, rtc-linux-/JYPxA39Uh5TLH3MbocFFw,
linux-omap-u79uwXL29TY76Z2rM5mHXA,
linux-tegra-u79uwXL29TY76Z2rM5mHXA
On 10/05/2016 at 12:26:42 +0200, Nicolas Chauvet wrote :
> 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.
>
> Signed-off-by: Nicolas Chauvet <kwizart-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
> ---
> drivers/rtc/rtc-tps6586x.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
Applied, thanks.
--
Alexandre Belloni, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2016-05-11 14:58 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-10 10:26 [PATCH] rtc: rename so the tps6586x-rtc module can be autoloaded at boot Nicolas Chauvet
[not found] ` <1462876002-6462-1-git-send-email-kwizart-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2016-05-10 15:43 ` Stephen Warren
[not found] ` <573201AD.7080705-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2016-05-10 21:44 ` Nicolas Chauvet
[not found] ` <CABr+WTnFodrRSThovUCwY+8Th0TjeOPSAFkCKcupfjAXE4bUAA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-05-10 23:02 ` Stephen Warren
2016-05-11 14:58 ` Alexandre Belloni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox