Skip to contentSkip to conversation

rt2x00: rt2x00dev: move rfkill_polling register to proper place

PATCH In review Chen, Chien-Chia 3 participants 7 messages Mar 27, 2012 – Mar 29, 2012 Networking drivers (wireless)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rt2x00: rt2x00dev: move rfkill_polling register to proper place

Move rt2x00rfkill_register(rt2x00dev) to rt2x00lib_probe_dev(). It fixes of starting rfkill_poll function at the right time if sets hard rfkill block and reboot. rt2x00mac_rfkill_poll should be starting before bringing up the wireless interface.

---
 drivers/net/wireless/rt2x00/rt2x00dev.c |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)
drivers/net/wireless/rt2x00/rt2x00dev.c +1 -5
index fc9901e..90cc5e7 100644
@@ -1062,11 +1062,6 @@ static int rt2x00lib_initialize(struct rt2x00_dev *rt2x00dev)
 
 	set_bit(DEVICE_STATE_INITIALIZED, &rt2x00dev->flags);
 
-	/*
-	 * Register the extra components.
-	 */
-	rt2x00rfkill_register(rt2x00dev);
-
 	return 0;
 }
 
@@ -1210,6 +1205,7 @@ int rt2x00lib_probe_dev(struct rt2x00_dev *rt2x00dev)
 	rt2x00link_register(rt2x00dev);
 	rt2x00leds_register(rt2x00dev);
 	rt2x00debug_register(rt2x00dev);
+	rt2x00rfkill_register(rt2x00dev);
 
 	return 0;
 
Signature · 1 line
1.7.3.4
Acked-by on v1 1/1
#1 lore raw
Quoted 4 lines · Chien-Chia

Move rt2x00rfkill_register(rt2x00dev) to rt2x00lib_probe_dev(). It fixes of starting rfkill_poll function at the right time if sets hard rfkill block and reboot. rt2x00mac_rfkill_poll should be starting before bringing up the wireless interface.

Looks reasonable to me. However, you should include John Linville in future patch submissions (if your intention is to get them merged :D and not only reviewed).

Quoted 32 lines

---
 drivers/net/wireless/rt2x00/rt2x00dev.c |    6 +-----

 1 files changed, 1 insertions(+), 5 deletions(-)
drivers/net/wireless/rt2x00/rt2x00dev.c +1 -6
index fc9901e..90cc5e7 100644
@@ -1062,11 +1062,6 @@ static int rt2x00lib_initialize(struct rt2x00_dev *rt2x00dev)
 
        set_bit(DEVICE_STATE_INITIALIZED, &rt2x00dev->flags);
 
-       /*
-        * Register the extra components.
-        */
-       rt2x00rfkill_register(rt2x00dev);
-
        return 0;
  }
 
@@ -1210,6 +1205,7 @@ int rt2x00lib_probe_dev(struct rt2x00_dev *rt2x00dev)
        rt2x00link_register(rt2x00dev);
        rt2x00leds_register(rt2x00dev);
        rt2x00debug_register(rt2x00dev);
+       rt2x00rfkill_register(rt2x00dev);
 
        return 0;
 
--

1.7.3.4

#2 lore raw
In reply to Chen, Chien-Chia
Quoted 6 lines · Chien-Chia

Move rt2x00rfkill_register(rt2x00dev) to rt2x00lib_probe_dev(). It fixes of starting rfkill_poll function at the right time if sets hard rfkill block and reboot. rt2x00mac_rfkill_poll should be starting before bringing up the wireless interface.

You should sign off the patch, and probably add "From:" to mark real author of the patch, and CC Kevin as well.

Stanislaw

author
#3 lore raw

Hi all,

2012/3/27 Stanislaw Gruszka <[email protected]>:

Quoted 9 lines · Chien-Chia
Quoted 6 lines

Move rt2x00rfkill_register(rt2x00dev) to rt2x00lib_probe_dev(). It fixes of starting rfkill_poll function at the right time if sets hard rfkill block and reboot. rt2x00mac_rfkill_poll should be starting before bringing up the wireless interface.

You should sign off the patch, and probably add "From:" to mark real author of the patch, and CC Kevin as well.

Yes, thank you for information of patch format. :)

Quoted 7 lines

Stanislaw

_______________________________________________
users mailing list
[email protected]
http://rt2x00.serialmonkey.com/mailman/listinfo/users_rt2x00.serialmonkey.com

Signature · 1 line
Thank you.
author
#4 lore raw

Hi John,

Would it be possible to merge my patch to v3.4 merging ? It would be great if this patch got merged. This patch fixes an initialization of probing pci device. Since a lot users reported the issue is making no sense after rebooting the machine and got No wireless device working due to rfkill is not yet started to work.

Thank you for your kindly help. :)

Would it be possible to merge this patch into v3.4 tree before the merging window closed ?

2012/3/28 Matt Chen <[email protected]>:

Quoted 25 lines

Hi all,

2012/3/27 Stanislaw Gruszka <[email protected]>:

Quoted 9 lines · Chien-Chia
Quoted 6 lines

Move rt2x00rfkill_register(rt2x00dev) to rt2x00lib_probe_dev(). It fixes of starting rfkill_poll function at the right time if sets hard rfkill block and reboot. rt2x00mac_rfkill_poll should be starting before bringing up the wireless interface.

You should sign off the patch, and probably add "From:" to mark real author of the patch, and CC Kevin as well.

Yes, thank you for information of patch format. :)

Quoted 7 lines

Stanislaw

_______________________________________________
users mailing list
[email protected]
http://rt2x00.serialmonkey.com/mailman/listinfo/users_rt2x00.serialmonkey.com

--
Thank you.

Signature · 1 line
Thank you.
#5 lore raw
Quoted 8 lines · Matt Chen

Hi John,

Would it be possible to merge my patch to v3.4 merging ? It would be great if this patch got merged. This patch fixes an initialization of probing pci device. Since a lot users reported the issue is making no sense after rebooting the machine and got No wireless device working due to rfkill is not yet started to work.

Quoted 4 lines

Thank you for your kindly help. :)

Would it be possible to merge this patch into v3.4 tree before the merging window closed ?

Since patch is a fix, it could be applied after merge window. But first you should fix sign-off's and repost.

Stanislaw

author
#6 lore raw

Hi Stanislaw,

2012/3/29 Stanislaw Gruszka <[email protected]>:

Quoted 9 lines · Matt Chen
Quoted 8 lines

Hi John,

Would it be possible to merge my patch to v3.4 merging ? It would be great if this patch got merged. This patch fixes an initialization of probing pci device. Since a lot users reported the issue is making no sense after rebooting the machine and got No wireless device working due to rfkill is not yet started to work.

Quoted 6 lines
Quoted 4 lines

Thank you for your kindly help. :)

Would it be possible to merge this patch into v3.4 tree before the merging window closed ?

Since patch is a fix, it could be applied after merge window. But first you should fix sign-off's and repost.

OK, repost and also mail to John.
Thanks for your reminding. :)

Quoted 2 lines

Stanislaw

Signature · 1 line
Thank you.