linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Regression in 2.6.27-rcX caused by commit bc19d6e0b74ef03a3baf035412c95192b54dfc6f
@ 2008-09-16 14:18 Larry Finger
  2008-09-16 15:42 ` Michael Buesch
  0 siblings, 1 reply; 37+ messages in thread
From: Larry Finger @ 2008-09-16 14:18 UTC (permalink / raw)
  To: John Linville, Michael Buesch, LKML, Adel Gadllah
  Cc: wireless, Broadcom Linux

Since commit bc19d6e0b74ef03a3baf035412c95192b54dfc6f entitled
"b43/b43legacy: add RFKILL_STATE_HARD_BLOCKED support", the radio LED
no longer responds to rfkill switch events.

ATM, I do not have a fix, other than reversion of this commit.

Larry


^ permalink raw reply	[flat|nested] 37+ messages in thread
* [PATCH] rfkill: update LEDs for all state changes
@ 2008-10-03 19:58 Henrique de Moraes Holschuh
  0 siblings, 0 replies; 37+ messages in thread
From: Henrique de Moraes Holschuh @ 2008-10-03 19:58 UTC (permalink / raw)
  To: John Linville; +Cc: linux-wireless, Ivo van Doorn

The LED state was not being updated by rfkill_force_state(), which
will cause regressions in wireless drivers that had old-style rfkill
support and are updated to use rfkill_force_state().

The LED state was not being updated when a change was detected through
the rfkill->get_state() hook, either.

Move the LED trigger update calls into notify_rfkill_state_change(),
where it should have been in the first place.  This takes care of both
issues above.

Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Acked-by: Ivo van Doorn <IvDoorn@gmail.com>
Cc: stable@kernel.org
---

This change is needed on 2.6.27 and 2.6.28.  It is likely too late to
get it in 2.6.27 before it is released, but it should be queued for
2.6.27.y after it gets into 2.6.28.

 net/rfkill/rfkill.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/net/rfkill/rfkill.c b/net/rfkill/rfkill.c
index ea0dc04..f949a48 100644
--- a/net/rfkill/rfkill.c
+++ b/net/rfkill/rfkill.c
@@ -125,6 +125,7 @@ static void rfkill_led_trigger_activate(struct led_classdev *led)
 
 static void notify_rfkill_state_change(struct rfkill *rfkill)
 {
+	rfkill_led_trigger(rfkill, rfkill->state);
 	blocking_notifier_call_chain(&rfkill_notifier_list,
 			RFKILL_STATE_CHANGED,
 			rfkill);
@@ -217,10 +218,8 @@ static int rfkill_toggle_radio(struct rfkill *rfkill,
 			rfkill->state = state;
 	}
 
-	if (force || rfkill->state != oldstate) {
-		rfkill_led_trigger(rfkill, rfkill->state);
+	if (force || rfkill->state != oldstate)
 		notify_rfkill_state_change(rfkill);
-	}
 
 	return retval;
 }
-- 
1.5.6.5


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

end of thread, other threads:[~2008-10-03 20:15 UTC | newest]

Thread overview: 37+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-16 14:18 Regression in 2.6.27-rcX caused by commit bc19d6e0b74ef03a3baf035412c95192b54dfc6f Larry Finger
2008-09-16 15:42 ` Michael Buesch
2008-09-16 17:08   ` Larry Finger
2008-09-16 19:18     ` Carlos Corbacho
2008-09-16 19:25       ` Michael Buesch
2008-09-16 22:37         ` Henrique de Moraes Holschuh
2008-09-17 14:26           ` Michael Buesch
2008-09-17 14:29             ` John W. Linville
2008-09-17 14:33               ` Michael Buesch
2008-09-16 19:30       ` Larry Finger
2008-09-16 23:32         ` Matthew Garrett
2008-09-17  2:33           ` Henrique de Moraes Holschuh
2008-09-17  2:52             ` Larry Finger
2008-09-17 13:23               ` John W. Linville
2008-09-17 20:07             ` [PATCH] rfkill: update LEDs for all state changes Henrique de Moraes Holschuh
2008-09-17 20:55               ` Larry Finger
2008-09-18 12:43                 ` Henrique de Moraes Holschuh
2008-09-18 13:09                   ` Larry Finger
2008-09-18 13:18                     ` Henrique de Moraes Holschuh
2008-09-18 12:49               ` Ivo van Doorn
2008-09-17 14:22           ` Regression in 2.6.27-rcX caused by commit bc19d6e0b74ef03a3baf035412c95192b54dfc6f Michael Buesch
2008-09-17 14:50             ` Henrique de Moraes Holschuh
2008-09-17 15:28               ` Larry Finger
2008-09-17 15:36                 ` Henrique de Moraes Holschuh
2008-09-17 15:47                   ` Larry Finger
2008-09-16 19:51     ` Matthew Garrett
2008-09-16 20:34       ` Larry Finger
2008-09-16 21:09         ` Matthew Garrett
2008-09-17 14:19           ` Michael Buesch
2008-09-17 15:18             ` Henrique de Moraes Holschuh
2008-09-17 15:59               ` Michael Buesch
2008-09-17 20:51                 ` Tomas Winkler
2008-09-18 13:16                   ` Henrique de Moraes Holschuh
2008-09-16 20:44       ` Carlos Corbacho
2008-09-16 21:07         ` Larry Finger
2008-09-16 22:40           ` Henrique de Moraes Holschuh
  -- strict thread matches above, loose matches on Subject: below --
2008-10-03 19:58 [PATCH] rfkill: update LEDs for all state changes Henrique de Moraes Holschuh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).