All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] RFKILL: fix input layer initialisation
@ 2008-10-22 16:52 Dmitry Baryshkov
  2008-10-22 17:05 ` Ivo van Doorn
  2008-10-22 17:15 ` Henrique de Moraes Holschuh
  0 siblings, 2 replies; 14+ messages in thread
From: Dmitry Baryshkov @ 2008-10-22 16:52 UTC (permalink / raw)
  To: linux-wireless; +Cc: linux-input, Dmitry Baryshkov

Initialise correctly last fields, so tasks can be actually executed.
On some architectures the initial jiffies value is not zero, so later
all rfkill incorrectly decides that rfkill_*.last is in future.

Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
---
 net/rfkill/rfkill-input.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/net/rfkill/rfkill-input.c b/net/rfkill/rfkill-input.c
index e5b6955..cd93f48 100644
--- a/net/rfkill/rfkill-input.c
+++ b/net/rfkill/rfkill-input.c
@@ -255,6 +255,11 @@ static struct input_handler rfkill_handler = {
 
 static int __init rfkill_handler_init(void)
 {
+	unsigned long last_run = jiffies - msecs_to_jiffies(500);
+	rfkill_wlan.last = last_run;
+	rfkill_bt.last = last_run;
+	rfkill_uwb.last = last_run;
+	rfkill_wimax.last = last_run;
 	return input_register_handler(&rfkill_handler);
 }
 
-- 
1.5.6.5


^ permalink raw reply related	[flat|nested] 14+ messages in thread
* [PATCH] RFKILL: fix input layer initialisation
@ 2008-06-19 11:28 Dmitry Baryshkov
  2008-06-19 18:49 ` Ivo van Doorn
  2008-06-23 13:22 ` Dmitry Torokhov
  0 siblings, 2 replies; 14+ messages in thread
From: Dmitry Baryshkov @ 2008-06-19 11:28 UTC (permalink / raw)
  To: netdev, IvDoorn

Initialise correctly last fields, so tasks can be actually executed

Also move rfkill-input initialisation to subsys level so that it's
available before generic drivers probing occurs.

Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
---
 net/rfkill/rfkill-input.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/net/rfkill/rfkill-input.c b/net/rfkill/rfkill-input.c
index e4b051d..e4540fc 100644
--- a/net/rfkill/rfkill-input.c
+++ b/net/rfkill/rfkill-input.c
@@ -181,6 +181,11 @@ static struct input_handler rfkill_handler = {
 
 static int __init rfkill_handler_init(void)
 {
+	unsigned long last_run = jiffies - msecs_to_jiffies(500);
+	rfkill_wlan.last = last_run;
+	rfkill_bt.last = last_run;
+	rfkill_uwb.last = last_run;
+	rfkill_wimax.last = last_run;
 	return input_register_handler(&rfkill_handler);
 }
 
@@ -190,5 +195,5 @@ static void __exit rfkill_handler_exit(void)
 	flush_scheduled_work();
 }
 
-module_init(rfkill_handler_init);
+subsys_initcall(rfkill_handler_init);
 module_exit(rfkill_handler_exit);
-- 
1.5.5.3


-- 
With best wishes
Dmitry


^ permalink raw reply related	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2008-10-28 12:33 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-22 16:52 [PATCH] RFKILL: fix input layer initialisation Dmitry Baryshkov
2008-10-22 17:05 ` Ivo van Doorn
     [not found]   ` <200810221905.58169.IvDoorn-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2008-10-28 12:33     ` Dmitry
2008-10-28 12:33       ` Dmitry
2008-10-22 17:15 ` Henrique de Moraes Holschuh
  -- strict thread matches above, loose matches on Subject: below --
2008-06-19 11:28 Dmitry Baryshkov
2008-06-19 18:49 ` Ivo van Doorn
2008-06-19 22:28   ` Dmitry
2008-06-20 19:23     ` Ivo van Doorn
2008-06-23 13:22 ` Dmitry Torokhov
2008-06-23 14:40   ` Dmitry Baryshkov
2008-06-23 15:24     ` Dmitry Torokhov
2008-06-23 18:21       ` Henrique de Moraes Holschuh
2008-06-23 18:25         ` Dmitry

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.