rfkill: rewrite
Subsystems (16)
Johannes Berg
maintainerPATCH v9 1/1 rfkill: rewrite
This patch completely rewrites the rfkill core to address the following deficiencies:
* all rfkill drivers need to implement polling where necessary rather than having one central implementation
* updating the rfkill state cannot be done from arbitrary contexts, forcing drivers to use schedule_work and requiring lots of code
* rfkill drivers need to keep track of soft/hard blocked internally -- the core should do this
* the rfkill API has many unexpected quirks, for example being asymmetric wrt. alloc/free and register/unregister
* rfkill can call back into a driver from within a function the driver called -- this is prone to deadlocks and generally should be avoided
* rfkill-input pointlessly is a separate module
* drivers need to #ifdef rfkill functions (unless they want to depend on or select RFKILL) -- rfkill should provide inlines that do nothing if it isn't compiled in
* the rfkill structure is not opaque -- drivers need to initialise it correctly (lots of sanity checking code required) -- instead force drivers to pass the right variables to rfkill_alloc()
* the documentation is hard to read because it always assumes the reader is completely clueless and contains way TOO MANY CAPS
* the rfkill code needlessly uses a lot of locks and atomic operations in locked sections
* fix LED trigger to actually change the LED when the radio state changes -- this wasn't done before
---
v3: * fix locking bugs
* fix bug in input.c that made it ignore things
* allow setting LED trigger name
* apply default state while registering
* convert HSO
v4: * LED triggering
v5: * convert sony
* introduce rfkill_set_states function
* change query/poll methods to require calls to rfkill_set{_sw,_hw}_state/rfkill_set_states
* do not call driver from registration
* remove tested-by since it changed a lot
v6: * fix stupid sync work bugs
v7: * fix setting states before registration
* make EEEPC resume properly [Alan Jenkins]
v8: * move one rfkill_set_state call under the mutex
* protect things with spinlock and take care to close the race Henrique pointed out
* add note about set_block race
* remove tested-by again, the spinlock change is a little too invasive to claim testing
v9: * fix documentation on query op
* push sw state to device on resume
* remove thing about not calling device while hw blocked -- the call can be ignored but we can't avoid it due to races anyway
* convert toshiba
TODO
* convert thinkpad
More work will be needed on locking eventually, but since the old rfkill core had horrible locking drivers are prepared to deal with that and I don't need to do this right away.
Documentation/rfkill.txt | 637 +++------------------ MAINTAINERS | 6 arch/arm/mach-pxa/tosa-bt.c | 30 - arch/arm/mach-pxa/tosa.c | 1 drivers/net/usb/hso.c | 42 - drivers/net/wireless/ath/ath9k/ath9k.h | 7 drivers/net/wireless/ath/ath9k/main.c | 115 --- drivers/net/wireless/ath/ath9k/pci.c | 15 drivers/net/wireless/b43/Kconfig | 2 drivers/net/wireless/b43/leds.c | 2 drivers/net/wireless/b43/main.c | 4 drivers/net/wireless/b43/phy_a.c | 4 drivers/net/wireless/b43/phy_common.c | 17 drivers/net/wireless/b43/phy_common.h | 4 drivers/net/wireless/b43/phy_g.c | 4 drivers/net/wireless/b43/phy_lp.c | 2 drivers/net/wireless/b43/phy_n.c | 2 drivers/net/wireless/b43/rfkill.c | 123 +--- drivers/net/wireless/b43/rfkill.h | 5 drivers/net/wireless/b43legacy/Kconfig | 2 drivers/net/wireless/b43legacy/leds.c | 3 drivers/net/wireless/b43legacy/rfkill.c | 123 +--- drivers/net/wireless/b43legacy/rfkill.h | 6 drivers/net/wireless/iwlwifi/Kconfig | 5 drivers/net/wireless/iwlwifi/iwl-rfkill.c | 69 -- drivers/platform/x86/Kconfig | 6 drivers/platform/x86/acer-wmi.c | 50 - drivers/platform/x86/dell-laptop.c | 101 +-- drivers/platform/x86/eeepc-laptop.c | 91 --- drivers/platform/x86/hp-wmi.c | 103 +-- drivers/platform/x86/sony-laptop.c | 191 ++---- drivers/platform/x86/toshiba_acpi.c | 159 +---- include/linux/Kbuild | 1 include/linux/rfkill.h | 335 ++++++++--- include/net/wimax.h | 8 net/rfkill/Kconfig | 14 net/rfkill/Makefile | 4 net/rfkill/core.c | 889 ++++++++++++++++++++++++++++++ net/rfkill/input.c | 342 +++++++++++ net/rfkill/rfkill-input.c | 390 ------------- net/rfkill/rfkill-input.h | 21 net/rfkill/rfkill.c | 855 ---------------------------- net/rfkill/rfkill.h | 27 net/wimax/Kconfig | 14 net/wimax/op-rfkill.c | 123 ---- 45 files changed, 2088 insertions(+), 2866 deletions(-)
include/linux/rfkill.h +261 -74
@@ -4,6 +4,7 @@/* * Copyright (C) 2006 - 2007 Ivo van Doorn * Copyright (C) 2007 Dmitry Torokhov +* Copyright 2009 Johannes Berg <[email protected]> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by
@@ -21,6 +22,24 @@* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + +/* define userspace visible states */ +#define RFKILL_STATE_SOFT_BLOCKED 0 +#define RFKILL_STATE_UNBLOCKED 1 +#define RFKILL_STATE_HARD_BLOCKED 2 + +/* and that's all userspace gets */ +#ifdef __KERNEL__ +/* don't allow anyone to use these in the kernel */ +enum rfkill_user_states { +RFKILL_USER_STATE_SOFT_BLOCKED =RFKILL_STATE_SOFT_BLOCKED , +RFKILL_USER_STATE_UNBLOCKED =RFKILL_STATE_UNBLOCKED , +RFKILL_USER_STATE_HARD_BLOCKED =RFKILL_STATE_HARD_BLOCKED , +}; +#undef RFKILL_STATE_SOFT_BLOCKED +#undef RFKILL_STATE_UNBLOCKED +#undef RFKILL_STATE_HARD_BLOCKED +#include <linux/types.h> #include <linux/kernel.h> #include <linux/list.h>
@@ -30,11 +49,13 @@/** * enum rfkill_type - type of rfkill switch. -* RFKILL_TYPE_WLAN: switch is on a 802.11 wireless network device. -* RFKILL_TYPE_BLUETOOTH: switch is on a bluetooth device. -* RFKILL_TYPE_UWB: switch is on a ultra wideband device. -* RFKILL_TYPE_WIMAX: switch is on a WiMAX device. -* RFKILL_TYPE_WWAN: switch is on a wireless WAN device. +* +* @RFKILL_TYPE_WLAN: switch is on a 802.11 wireless network device. +* @RFKILL_TYPE_BLUETOOTH: switch is on a bluetooth device. +* @RFKILL_TYPE_UWB: switch is on a ultra wideband device. +* @RFKILL_TYPE_WIMAX: switch is on a WiMAX device. +* @RFKILL_TYPE_WWAN: switch is on a wireless WAN device. +* @NUM_RFKILL_TYPES: number of defined rfkill types */ enum rfkill_type {RFKILL_TYPE_WLAN ,
@@ -42,97 +63,263 @@ enum rfkill_type {RFKILL_TYPE_UWB ,RFKILL_TYPE_WIMAX ,RFKILL_TYPE_WWAN , - RFKILL_TYPE_MAX, + NUM_RFKILL_TYPES, }; -enum rfkill_state { -RFKILL_STATE_SOFT_BLOCKED =0 ,/* Radio output blocked */ -RFKILL_STATE_UNBLOCKED =1 ,/* Radio output allowed */ -RFKILL_STATE_HARD_BLOCKED =2 ,/* Output blocked, non-overrideable */ -RFKILL_STATE_MAX ,/* marker for last valid state */ -}; +/* this is opaque */ +struct rfkill ;/** -* struct rfkill - rfkill control structure. -* @name: Name of the switch. -* @type: Radio type which the button controls, the value stored -* here should be a value from enum rfkill_type. -* @state: State of the switch, "UNBLOCKED" means radio can operate. -* @mutex: Guards switch state transitions. It serializes callbacks -* and also protects the state. -* @data: Pointer to the RF button drivers private data which will be -* passed along when toggling radio state. -* @toggle_radio(): Mandatory handler to control state of the radio. -* only RFKILL_STATE_SOFT_BLOCKED and RFKILL_STATE_UNBLOCKED are -* valid parameters. -* @get_state(): handler to read current radio state from hardware, -* may be called from atomic context, should return 0 on success. -* Either this handler OR judicious use of rfkill_force_state() is -* MANDATORY for any driver capable of RFKILL_STATE_HARD_BLOCKED. -* @led_trigger: A LED trigger for this button's LED. -* @dev: Device structure integrating the switch into device tree. -* @node: Used to place switch into list of all switches known to the -* the system. -* -* This structure represents a RF switch located on a network device. -*/ -struct rfkill { -const char *name; -enum rfkill_type type; - -/* the mutex serializes callbacks and also protects -* the state */ -struct mutex mutex; -enum rfkill_state state; -void *data; -int (*toggle_radio)(void *data,enum rfkill_state state); -int (*get_state)(void *data,enum rfkill_state *state); +* struct rfkill_ops - rfkill driver methods +* +* @poll: poll the rfkill block state(s) -- only assign this method +* when you need polling. When called, simply call one of the +* rfkill_set{,_hw,_sw}_state family of functions. If the hw +* is getting unblocked you need to take into account the return +* value of those functions to make sure the software block is +* properly used. +* @query: query the rfkill block state(s) and call exactly one of the +* rfkill_set{,_hw,_sw}_state family of functions. Assign this +* method if input events can cause hardware state changes to make +* the rfkill core query your driver before setting a requested +* block. +* @set_block: turn the transmitter on (blocked == false) or off +* (blocked == true) -- this is called only while the transmitter +* is not hard-blocked, but note that the core's view of whether +* the transmitter is hard-blocked might differ from your driver's +* view due to race conditions, so it is possible that it is still +* called at the same time as you are calling rfkill_set_hw_state(). +* This callback must be assigned. +*/ +struct rfkill_ops { +void (*poll)(struct rfkill *rfkill,void *data); +void (*query)(struct rfkill *rfkill,void *data); +int (*set_block)(void *data,bool blocked); +}; -#ifdef CONFIG_RFKILL_LEDS -struct led_trigger led_trigger; -#endif +#if defined(CONFIG_RFKILL ) || defined(CONFIG_RFKILL_MODULE ) +/** +* rfkill_alloc - allocate rfkill structure +* @name: name of the struct -- the string is not copied internally +* @parent: device that has rf switch on it +* @type: type of the switch (RFKILL_TYPE_*) +* @ops: rfkill methods +* @ops_data: data passed to each method +* +* This function should be called by the transmitter driver to allocate an +* rfkill structure. Returns %NULL on failure. +*/ +struct rfkill *__must_check rfkill_alloc (const char *name, +struct device *parent, +const enum rfkill_type type, +const struct rfkill_ops *ops, +void *ops_data); -struct device dev; -struct list_head node; -enum rfkill_state state_for_resume; -}; -#define to_rfkill (d) container_of(d, struct rfkill, dev) +/** +* rfkill_set_led_trigger_name -- set the LED trigger name +* @rfkill: rfkill struct +* @name: LED trigger name +* +* This function sets the LED trigger name of the radio LED +* trigger that rfkill creates. It is optional, but if called +* must be called before rfkill_register() to be effective. +*/ +void rfkill_set_led_trigger_name (struct rfkill *rfkill,const char *name); -struct rfkill *__must_check rfkill_allocate (struct device *parent, -enum rfkill_type type); -void rfkill_free (struct rfkill *rfkill); +/** +* rfkill_register - Register a rfkill structure. +* @rfkill: rfkill structure to be registered +* +* This function should be called by the transmitter driver to register +* the rfkill structure needs to be registered. Before calling this function +* the driver needs to be ready to service method calls from rfkill. +*/ int __must_check rfkill_register (struct rfkill *rfkill); + +/** +* rfkill_pause_polling(struct rfkill *rfkill) +* +* Pause polling -- say transmitter is off for other reasons. +* NOTE: not necessary for suspend/resume -- in that case the +* core stops polling anyway +*/ +void rfkill_pause_polling (struct rfkill *rfkill); + +/** +* rfkill_resume_polling(struct rfkill *rfkill) +* +* Pause polling -- say transmitter is off for other reasons. +* NOTE: not necessary for suspend/resume -- in that case the +* core stops polling anyway +*/ +void rfkill_resume_polling (struct rfkill *rfkill); + + +/** +* rfkill_unregister - Unregister a rfkill structure. +* @rfkill: rfkill structure to be unregistered +* +* This function should be called by the network driver during device +* teardown to destroy rfkill structure. Until it returns, the driver +* needs to be able to service method calls. +*/ void rfkill_unregister (struct rfkill *rfkill); -int rfkill_force_state (struct rfkill *rfkill,enum rfkill_state state); -int rfkill_set_default (enum rfkill_type type,enum rfkill_state state); +/** +* rfkill_destroy - free rfkill structure +* @rfkill: rfkill structure to be destroyed +* +* Destroys the rfkill structure. +*/ +void rfkill_destroy (struct rfkill *rfkill); + +/** +* rfkill_set_hw_state - Set the internal rfkill hardware block state +* @rfkill: pointer to the rfkill class to modify. +* @state: the current hardware block state to set +* +* rfkill drivers that get events when the hard-blocked state changes +* use this function to notify the rfkill core (and through that also +* userspace) of the current state -- they should also use this after +* resume if the state could have changed. +* +* You need not (but may) call this function if poll_state is assigned. +* +* This function can be called in any context, even from within rfkill +* callbacks. +* +* The function returns the combined block state (true if transmitter +* should be blocked) so that drivers need not keep track of the soft +* block state -- which they might not be able to. +*/ +bool __must_check rfkill_set_hw_state (struct rfkill *rfkill,bool blocked); + +/** +* rfkill_set_sw_state - Set the internal rfkill software block state +* @rfkill: pointer to the rfkill class to modify. +* @state: the current software block state to set +* +* rfkill drivers that get events when the soft-blocked state changes +* (yes, some platforms directly act on input but allow changing again) +* use this function to notify the rfkill core (and through that also +* userspace) of the current state -- they should also use this after +* resume if the state could have changed. +* +* This function can be called in any context, even from within rfkill +* callbacks. +* +* The function returns the combined block state (true if transmitter +* should be blocked). +*/ +bool rfkill_set_sw_state (struct rfkill *rfkill,bool blocked); + +/** +* rfkill_set_states - Set the internal rfkill block states +* @rfkill: pointer to the rfkill class to modify. +* @sw: the current software block state to set +* @hw: the current hardware block state to set +* +* This function can be called in any context, even from within rfkill +* callbacks. +*/ +void rfkill_set_states (struct rfkill *rfkill,bool sw,bool hw);/** -* rfkill_state_complement - return complementar state -* @state: state to return the complement of +* rfkill_set_global_sw_state - set global sw block default +* @type: rfkill type to set default for +* @blocked: default to set +* +* This function sets the global default -- use at boot if your platform has +* an rfkill switch. If not early enough this call may be ignored. * -* Returns RFKILL_STATE_SOFT_BLOCKED if @state is RFKILL_STATE_UNBLOCKED, -* returns RFKILL_STATE_UNBLOCKED otherwise. +* XXX: instead of ignoring -- how about just updating all currently +* registered drivers? */ -static inline enum rfkill_state rfkill_state_complement (enum rfkill_state state) +void rfkill_set_global_sw_state (const enum rfkill_type type,bool blocked); +#else /* !RFKILL */ +static inline struct rfkill *__must_check +rfkill_alloc (const char *name, +struct device *parent, +const enum rfkill_type type, +const struct rfkill_ops *ops, +void *ops_data) +{ +return ERR_PTR (-ENODEV ); +} + +static inline int __must_check rfkill_register (struct rfkill *rfkill) +{ +if (rfkill ==ERR_PTR (-ENODEV )) +return 0 ; +return -EINVAL ; +} + +static inline void rfkill_pause_polling (struct rfkill *rfkill) +{ +} + +static inline void rfkill_resume_polling (struct rfkill *rfkill) +{ +} + +static inline void rfkill_unregister (struct rfkill *rfkill) +{ +} + +static inline void rfkill_destroy (struct rfkill *rfkill) +{ +} + +static inline bool rfkill_set_hw_state (struct rfkill *rfkill,bool blocked) { -return (state ==RFKILL_STATE_UNBLOCKED ) ? -RFKILL_STATE_SOFT_BLOCKED :RFKILL_STATE_UNBLOCKED ; +return blocked; } +static inline bool rfkill_set_sw_state (struct rfkill *rfkill,bool blocked) +{ +return blocked; +} + +static inline void rfkill_set_states (struct rfkill *rfkill,bool sw,bool hw) +{ +} + +static inline void rfkill_set_global_sw_state (const enum rfkill_type type, +bool blocked) +{ +} +#endif /* RFKILL || RFKILL_MODULE */ + + +#ifdef CONFIG_RFKILL_LEDS /** -* rfkill_get_led_name - Get the LED trigger name for the button's LED. +* rfkill_get_led_trigger_name - Get the LED trigger name for the button's LED. * This function might return a NULL pointer if registering of the -* LED trigger failed. -* Use this as "default_trigger" for the LED. +* LED trigger failed. Use this as "default_trigger" for the LED. */ -static inline char *rfkill_get_led_name (struct rfkill *rfkill) -{ -#ifdef CONFIG_RFKILL_LEDS -return (char *)(rfkill->led_trigger.name); +const char *rfkill_get_led_trigger_name (struct rfkill *rfkill); + +/** +* rfkill_set_led_trigger_name -- set the LED trigger name +* @rfkill: rfkill struct +* @name: LED trigger name +* +* This function sets the LED trigger name of the radio LED +* trigger that rfkill creates. It is optional, but if called +* must be called before rfkill_register() to be effective. +*/ +void rfkill_set_led_trigger_name (struct rfkill *rfkill,const char *name);#else +static inline const char *rfkill_get_led_trigger_name (struct rfkill *rfkill) +{return NULL ; -#endif } +void rfkill_set_led_trigger_name (struct rfkill *rfkill,const char *name) +{ +} +#endif + +#endif /* __KERNEL__ */ +#endif /* RFKILL_H */
drivers/net/wireless/ath/ath9k/main.c +29 -86
169 lines not on this page · raw message
drivers/platform/x86/eeepc-laptop.c +22 -69
128 lines not on this page · raw message
net/rfkill/rfkill.c deleted +0 -855
855 lines not on this page · raw message
net/rfkill/rfkill-input.h deleted +0 -21
@@ -1,21 +0,0 @@ -/* -* Copyright (C) 2007 Ivo van Doorn -*/ - -/* -* This program is free software; you can redistribute it and/or modify it -* under the terms of the GNU General Public License version 2 as published -* by the Free Software Foundation. -*/ - -#ifndef __RFKILL_INPUT_H -#define __RFKILL_INPUT_H - -void rfkill_switch_all (enum rfkill_type type,enum rfkill_state state); -void rfkill_epo (void ); -void rfkill_restore_states (void ); -void rfkill_remove_epo_lock (void ); -bool rfkill_is_epo_lock_active (void ); -enum rfkill_state rfkill_get_global_state (const enum rfkill_type type); - -#endif /* __RFKILL_INPUT_H */
net/rfkill/rfkill-input.c deleted +0 -390
390 lines not on this page · raw message
drivers/net/wireless/b43/main.c +2 -2
@@ -3470,7 +3470,7 @@ static int b43_op_config(struct ieee8021if (!!conf->radio_enabled != phy->radio_on) {if (conf->radio_enabled) { -b43_software_rfkill (dev,RFKILL_STATE_UNBLOCKED ); +b43_software_rfkill (dev, false);b43info (dev->wl,"Radio turned on by software\n" );if (!dev->radio_hw_enable) { b43info(dev->wl, "The hardware RF-kill button "
@@ -3478,7 +3478,7 @@ static int b43_op_config(struct ieee8021 "Press the button to turn it on.\n"); } }else { -b43_software_rfkill (dev,RFKILL_STATE_SOFT_BLOCKED ); +b43_software_rfkill (dev, true);b43info (dev->wl,"Radio turned off by software\n" ); } }
drivers/net/wireless/b43/phy_a.c +2 -2
@@ -480,11 +480,11 @@ static bool b43_aphy_op_supports_hwpctl( }static void b43_aphy_op_software_rfkill (struct b43_wldev *dev, -enum rfkill_state state) +bool blocked) {struct b43_phy *phy = &dev->phy; -if (state ==RFKILL_STATE_UNBLOCKED ) { +if (!blocked) {if (phy->radio_on)return ;b43_radio_write16 (dev,0x0004 ,0x00C0 );
drivers/net/wireless/b43/phy_common.c +6 -11
@@ -84,7 +84,7 @@ int b43_phy_init(struct b43_wldev *dev) phy->channel = ops->get_default_chan (dev); - ops->software_rfkill (dev,RFKILL_STATE_UNBLOCKED ); + ops->software_rfkill (dev, false); err = ops->init (dev);if (err) {b43err (dev->wl,"PHY init failed\n" );
@@ -104,7 +104,7 @@ err_phy_exit:if (ops->exit) ops->exit (dev); err_block_rf: - ops->software_rfkill (dev,RFKILL_STATE_SOFT_BLOCKED ); + ops->software_rfkill (dev, true);return err; }
@@ -113,7 +113,7 @@ void b43_phy_exit(struct b43_wldev *dev) {const struct b43_phy_operations *ops = dev->phy.ops; - ops->software_rfkill (dev,RFKILL_STATE_SOFT_BLOCKED ); + ops->software_rfkill (dev, true);if (ops->exit) ops->exit (dev); }
@@ -295,18 +295,13 @@ err_restore_cookie:return err; } -void b43_software_rfkill (struct b43_wldev *dev,enum rfkill_state state) +void b43_software_rfkill (struct b43_wldev *dev,bool blocked) {struct b43_phy *phy = &dev->phy; -if (state ==RFKILL_STATE_HARD_BLOCKED ) { -/* We cannot hardware-block the device */ - state =RFKILL_STATE_SOFT_BLOCKED ; - } -b43_mac_suspend (dev); - phy->ops->software_rfkill (dev, state); - phy->radio_on = (state ==RFKILL_STATE_UNBLOCKED ); + phy->ops->software_rfkill (dev, blocked); + phy->radio_on = !blocked;b43_mac_enable (dev); }
drivers/net/wireless/b43/phy_common.h +2 -2
@@ -159,7 +159,7 @@ struct b43_phy_operations {/* Radio */ bool (*supports_hwpctl)(struct b43_wldev *dev); -void (*software_rfkill)(struct b43_wldev *dev,enum rfkill_state state); +void (*software_rfkill)(struct b43_wldev *dev,bool blocked);void (*switch_analog)(struct b43_wldev *dev,bool on);int (*switch_channel)(struct b43_wldev *dev,unsigned int new_channel);unsigned int (*get_default_chan)(struct b43_wldev *dev);
@@ -364,7 +364,7 @@ int b43_switch_channel(struct b43_wldev/** * b43_software_rfkill - Turn the radio ON or OFF in software. */ -void b43_software_rfkill (struct b43_wldev *dev,enum rfkill_state state); +void b43_software_rfkill (struct b43_wldev *dev,bool blocked);/** * b43_phy_txpower_check - Check TX power output.
drivers/net/wireless/b43/phy_g.c +2 -2
@@ -2592,7 +2592,7 @@ static bool b43_gphy_op_supports_hwpctl( }static void b43_gphy_op_software_rfkill (struct b43_wldev *dev, -enum rfkill_state state) +bool blocked) {struct b43_phy *phy = &dev->phy;struct b43_phy_g *gphy = phy->g;
@@ -2600,7 +2600,7 @@ static void b43_gphy_op_software_rfkill(might_sleep (); -if (state ==RFKILL_STATE_UNBLOCKED ) { +if (!blocked) {/* Turn radio ON */ if (phy->radio_on)return ;
drivers/net/wireless/b43/phy_n.c +1 -1
@@ -579,7 +579,7 @@ static void b43_nphy_op_radio_write(stru }static void b43_nphy_op_software_rfkill (struct b43_wldev *dev, -enum rfkill_state state) +bool blocked) {//TODO }
drivers/net/wireless/b43/rfkill.c +34 -89
188 lines not on this page · raw message
drivers/net/wireless/b43legacy/rfkill.c +39 -84
192 lines not on this page · raw message
drivers/net/wireless/iwlwifi/iwl-rfkill.c +28 -41
124 lines not on this page · raw message
Documentation/rfkill.txt +98 -539
438 lines not on this page · raw message
net/rfkill/Kconfig +0 -14
Lines of this file are not shown. View the raw message.
net/rfkill/Makefile +2 -2
Lines of this file are not shown. View the raw message.
net/rfkill/core.c new file +889 -0
889 lines not on this page · raw message
net/rfkill/input.c new file +342 -0
342 lines not on this page · raw message
net/rfkill/rfkill.h new file +27 -0
Lines of this file are not shown. View the raw message.
MAINTAINERS +3 -3
Lines of this file are not shown. View the raw message.
include/linux/Kbuild +1 -0
Lines of this file are not shown. View the raw message.
drivers/net/wireless/ath/ath9k/ath9k.h +1 -6
Lines of this file are not shown. View the raw message.
drivers/net/wireless/ath/ath9k/pci.c +0 -15
Lines of this file are not shown. View the raw message.
drivers/net/wireless/b43/Kconfig +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/wireless/b43/rfkill.h +1 -4
Lines of this file are not shown. View the raw message.
drivers/net/wireless/b43legacy/Kconfig +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/wireless/b43legacy/leds.c +2 -1
Lines of this file are not shown. View the raw message.
drivers/net/wireless/b43legacy/rfkill.h +1 -5
Lines of this file are not shown. View the raw message.
drivers/net/wireless/b43/leds.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/wireless/iwlwifi/Kconfig +2 -3
Lines of this file are not shown. View the raw message.
drivers/net/wireless/b43/phy_lp.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/platform/x86/Kconfig +0 -6
Lines of this file are not shown. View the raw message.
drivers/platform/x86/acer-wmi.c +22 -28
50 lines not on this page · raw message
drivers/platform/x86/dell-laptop.c +32 -69
101 lines not on this page · raw message
drivers/platform/x86/hp-wmi.c +52 -51
103 lines not on this page · raw message
drivers/platform/x86/toshiba_acpi.c +45 -114
159 lines not on this page · raw message
arch/arm/mach-pxa/tosa-bt.c +15 -15
Lines of this file are not shown. View the raw message.
arch/arm/mach-pxa/tosa.c +0 -1
Lines of this file are not shown. View the raw message.
include/net/wimax.h +2 -6
Lines of this file are not shown. View the raw message.
net/wimax/op-rfkill.c +26 -97
123 lines not on this page · raw message
net/wimax/Kconfig +0 -14
Lines of this file are not shown. View the raw message.
drivers/net/usb/hso.c +22 -20
42 lines not on this page · raw message
drivers/platform/x86/sony-laptop.c +71 -120
191 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Part of the diff is not shown here. View the raw message.
Quoted 2 lines · Johannes Berg
This patch completely rewrites the rfkill core to address the following deficiencies:
Btw, git-apply nitpicks on your whitespace
rfkill-rewrite.patch:4335: space before tab in indent.
mutex_unlock(&rfkill_global_mutex);
warning: 1 line adds whitespace errors.
I tested on todays wireless-testing, aka v2.6.30-rc5-23297-gbf2c6a3. Somehow, it triggers an OOPS
Function: req_reg_info_regd
Process: modprobe
Call trace:
wiphy_apply_custom_regulatoryath5k_regd_initath5k_reg_notifierath5k_pci_probe
...
Photo: <http://picasaweb.google.com/sourcejedi.lkml/Screenshots#5334936857267342674>
The kernel then hangs later on in the boot process. It responds to SysRq, but does not echo normal keypresses. SysRq+P shows that the kernel is in the idle task. I left it for three minutes, but I didn't get any trace from the hung task detector or soft lockup detector.
At first I thought it must be a problem with wireless-testing. However, it went away when I eventually tried un-applying the rfkill rewrite patch.
Thanks
Alan
Johannes Berg
maintainerQuoted 15 lines · Alan Jenkins
I tested on todays wireless-testing, aka v2.6.30-rc5-23297-gbf2c6a3. Somehow, it triggers an OOPS
Function:
req_reg_info_regd
Process: modprobeCall trace:
wiphy_apply_custom_regulatoryath5k_regd_initath5k_reg_notifierath5k_pci_probe
...Photo: <http://picasaweb.google.com/sourcejedi.lkml/Screenshots#5334936857267342674>
Quoted 8 lines
The kernel then hangs later on in the boot process. It responds to SysRq, but does not echo normal keypresses. SysRq+P shows that the kernel is in the idle task. I left it for three minutes, but I didn't get any trace from the hung task detector or soft lockup detector.
At first I thought it must be a problem with wireless-testing. However, it went away when I eventually tried un-applying the rfkill rewrite patch.
Confusing, but I think the stacktrace is just bogus. Can you recompile your kernel with CONFIG_FRAME_POINTER please?
johannes
Quoted 23 lines · Johannes Berg
Quoted 21 lines · Alan Jenkins
I tested on todays wireless-testing, aka v2.6.30-rc5-23297-gbf2c6a3. Somehow, it triggers an OOPS
Function:
req_reg_info_regd
Process: modprobeCall trace:
wiphy_apply_custom_regulatoryath5k_regd_initath5k_reg_notifierath5k_pci_probe
...Photo:
<http://picasaweb.google.com/sourcejedi.lkml/Screenshots#5334936857267342674>The kernel then hangs later on in the boot process. It responds to SysRq, but does not echo normal keypresses. SysRq+P shows that the kernel is in the idle task. I left it for three minutes, but I didn't get any trace from the hung task detector or soft lockup detector.
Quoted 6 lines
Quoted 3 lines
At first I thought it must be a problem with wireless-testing. However, it went away when I eventually tried un-applying the rfkill rewrite patch.
Confusing, but I think the stacktrace is just bogus. Can you recompile your kernel with
CONFIG_FRAME_POINTERplease?
Nope, cos it's already enabled :-).
Johannes Berg
maintainerQuoted 7 lines · Alan Jenkins
Quoted 7 lines
Quoted 7 lines
<http://picasaweb.google.com/sourcejedi.lkml/Screenshots#5334936857267342674>
The kernel then hangs later on in the boot process. It responds to SysRq, but does not echo normal keypresses. SysRq+P shows that the kernel is in the idle task. I left it for three minutes, but I didn't get any trace from the hung task detector or soft lockup detector.
Quoted 8 lines
Quoted 6 lines
Quoted 3 lines
At first I thought it must be a problem with wireless-testing. However, it went away when I eventually tried un-applying the rfkill rewrite patch.
Confusing, but I think the stacktrace is just bogus. Can you recompile your kernel with
CONFIG_FRAME_POINTERplease?Nope, cos it's already enabled :-).
Damn, I had hoped to get relevant information. I really don't see how rfkill could cause a problem in regulatory code, let's ask Luis.
johannes
Quoted 3 lines · Johannes Berg
Quoted 1 line · Alan Jenkins
Quoted 1 line
57267342674>
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
The kernel then hangs later on in the boot process. =C2=A0It resp=
onds to
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
SysRq, but does not echo normal keypresses. =C2=A0SysRq+P shows t=
hat the
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
kernel is in the idle task. =C2=A0I left it for three minutes, bu=
t I didn't
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
get any trace from the hung task detector or soft lockup detector=
=2E
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
At first I thought it must be a problem with wireless-testing. However, it went away when I eventually tried un-applying the rfk=
ill
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 1 line
rewrite patch.
Confusing, but I think the stacktrace is just bogus. Can you recom=
pile
Quoted 6 lines
Quoted 3 lines
Quoted 1 line
your kernel with
CONFIG_FRAME_POINTERplease?Nope, cos it's already enabled :-).
Damn, I had hoped to get relevant information. I really don't see how rfkill could cause a problem in regulatory code, let's ask Luis.
I'd review the code but its easier to just ask for now -- do you use the global workqueue ? Anyway -- the more jammed up the global workqueue is the more likely it is that last_request will not be populated before a driver comes around with they custom reg request. The stupid solution is to check for last_request. The right solutions it to flush the global workqueue which I have just addressed.
Mind you I think its now worth considering adding our own workqueue to cfg80211 so we don't have to flush every damn thing on the global workqueue on the core initialization but I figured that can be done in a separate series as we need to address stable as well.
Luis
--
To unsubscribe from this list: send the line "unsubscribe linux-wireles= s" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 8 lines · Alan Jenkins
Quoted 2 lines · Johannes Berg
This patch completely rewrites the rfkill core to address the following deficiencies:
Btw, git-apply nitpicks on your whitespace
=C2=A0 =C2=A0rfkill-rewrite.patch:4335: space before tab in indent. =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0mutex_unlock(&rfkill_global_=
mutex);
Quoted 9 lines
=C2=A0 =C2=A0warning: 1 line adds whitespace errors.
I tested on todays wireless-testing, aka v2.6.30-rc5-23297-gbf2c6a3. Somehow, it triggers an OOPS
Function:
req_reg_info_regd
Process: modprobe
Quoted 8 lines
Call trace:
wiphy_apply_custom_regulatoryath5k_regd_initath5k_reg_notifierath5k_pci_probe
...Photo: <http://picasaweb.google.com/sourcejedi.lkml/Screenshots#53349=
36857267342674>
Quoted 2 lines
The kernel then hangs later on in the boot process. =C2=A0It responds=
to
Quoted 1 line
SysRq, but does not echo normal keypresses. =C2=A0SysRq+P shows that =
the
Quoted 1 line
kernel is in the idle task. =C2=A0I left it for three minutes, but I =
didn't
Quoted 5 lines
get any trace from the hung task detector or soft lockup detector.
At first I thought it must be a problem with wireless-testing. However, it went away when I eventually tried un-applying the rfkill rewrite patch.
I think my new 4 patches should address this and it'd be great to hear your tests as you can reproduce easily. We are able to see something like this but only after 3 hours of testing. Since it seems you might be able to reproduce quickly it would help.
Luis
--
To unsubscribe from this list: send the line "unsubscribe linux-wireles= s" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 34 lines · Luis R. Rodriguez
Quoted 32 lines · Alan Jenkins
Quoted 2 lines · Johannes Berg
This patch completely rewrites the rfkill core to address the following deficiencies:
Btw, git-apply nitpicks on your whitespace
rfkill-rewrite.patch:4335: space before tab in indent.
mutex_unlock(&rfkill_global_mutex);warning: 1 line adds whitespace errors.
I tested on todays wireless-testing, aka v2.6.30-rc5-23297-gbf2c6a3. Somehow, it triggers an OOPS
Function:
req_reg_info_regd
Process: modprobeCall trace:
wiphy_apply_custom_regulatoryath5k_regd_initath5k_reg_notifierath5k_pci_probe
...Photo:
<http://picasaweb.google.com/sourcejedi.lkml/Screenshots#5334936857267342674>The kernel then hangs later on in the boot process. It responds to SysRq, but does not echo normal keypresses. SysRq+P shows that the kernel is in the idle task. I left it for three minutes, but I didn't get any trace from the hung task detector or soft lockup detector.
Quoted 8 lines
Quoted 3 lines
At first I thought it must be a problem with wireless-testing. However, it went away when I eventually tried un-applying the rfkill rewrite patch.
I think my new 4 patches should address this and it'd be great to hear your tests as you can reproduce easily. We are able to see something like this but only after 3 hours of testing. Since it seems you might be able to reproduce quickly it would help.
Glad to be of service :-).
I applied your four patches on top of my current tree (wireless-testing+rfkill rewrite), and it fixed the OOPS.
As a sanity check, I tried un-applying patch 4/4 (cfg80211: fix race between core hint and driver's custom apply), since that looked like the fix I was interested in. Un-applying this fix caused the OOPS to reappear.
Thanks!
Alan
Johannes Berg
maintainerQuoted 7 lines · Alan Jenkins
Quoted 4 lines
I think my new 4 patches should address this and it'd be great to hear your tests as you can reproduce easily. We are able to see something like this but only after 3 hours of testing. Since it seems you might be able to reproduce quickly it would help.
Glad to be of service :-).
Quoted 7 lines
I applied your four patches on top of my current tree (wireless-testing+rfkill rewrite), and it fixed the OOPS.
As a sanity check, I tried un-applying patch 4/4 (cfg80211: fix race between core hint and driver's custom apply), since that looked like the fix I was interested in. Un-applying this fix caused the OOPS to reappear.
Very good, thank you! That means I don't have to fix anything in rfkill :)
johannes
Alan Jenkins
Tested-byQuoted 12 lines · Johannes Berg
Quoted 10 lines · Alan Jenkins
Quoted 4 lines
I think my new 4 patches should address this and it'd be great to hear your tests as you can reproduce easily. We are able to see something like this but only after 3 hours of testing. Since it seems you might be able to reproduce quickly it would help.
Glad to be of service :-).
I applied your four patches on top of my current tree (wireless-testing+rfkill rewrite), and it fixed the OOPS.
Quoted 7 lines
Quoted 4 lines
As a sanity check, I tried un-applying patch 4/4 (cfg80211: fix race between core hint and driver's custom apply), since that looked like the fix I was interested in. Un-applying this fix caused the OOPS to reappear.
Very good, thank you! That means I don't have to fix anything in rfkill :)
Yep, seems so. I'm now able to test the rfkill functionality and it all seems fine. The new resume code successfully fixes the hibernation corner-case I brought up. So I'm happy and you can add my
You should probably drop my Signed-off-by though, seeing as it no longer includes the eeepc-laptop resume handler I wrote.
Oh, and don't forget the "whitespace error" flagged by git-apply.scripts/checkpatch.pl will flag it up as well. Checkpatch also says
you shouldn't initialize "rfkill_no = 0" because it's a static (and therefore will default to zero in the absence of an initializer).
Thanks
Alan
Johannes Berg
maintainerQuoted 8 lines · Alan Jenkins
Quoted 2 lines
Very good, thank you! That means I don't have to fix anything in rfkill :)
Yep, seems so. I'm now able to test the rfkill functionality and it all seems fine. The new resume code successfully fixes the hibernation corner-case I brought up. So I'm happy and you can add my
Tested-by Alan Jenkins <[email protected]>
Thanks.
Quoted 2 lines
You should probably drop my Signed-off-by though, seeing as it no longer includes the eeepc-laptop resume handler I wrote.
Ok.
Quoted 4 lines
Oh, and don't forget the "whitespace error" flagged by git-apply.
scripts/checkpatch.plwill flag it up as well. Checkpatch also says
you shouldn't initialize "rfkill_no= 0" because it's a static (and therefore will default to zero in the absence of an initializer).
Good plan, I'll fix those, thanks.
johannes
Quoted 8 lines · Alan Jenkins
Quoted 2 lines · Johannes Berg
This patch completely rewrites the rfkill core to address the following deficiencies:
Btw, git-apply nitpicks on your whitespace
=C2=A0 =C2=A0rfkill-rewrite.patch:4335: space before tab in indent. =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0mutex_unlock(&rfkill_global_=
mutex);
Quoted 9 lines
=C2=A0 =C2=A0warning: 1 line adds whitespace errors.
I tested on todays wireless-testing, aka v2.6.30-rc5-23297-gbf2c6a3. Somehow, it triggers an OOPS
Function:
req_reg_info_regd
Process: modprobe
Quoted 8 lines
Call trace:
wiphy_apply_custom_regulatoryath5k_regd_initath5k_reg_notifierath5k_pci_probe
...Photo: <http://picasaweb.google.com/sourcejedi.lkml/Screenshots#53349=
36857267342674>
BTW can explain how to reproduce. Did you just use wireless-testing and johanne's rfkill rewrite and use ath5k and can easily reproduce? Do you have an ath9k card?
Luis
Quoted 1 line
The kernel then hangs later on in the boot process. =C2=A0It responds=
to
Quoted 1 line
SysRq, but does not echo normal keypresses. =C2=A0SysRq+P shows that =
the
Quoted 1 line
kernel is in the idle task. =C2=A0I left it for three minutes, but I =
didn't
Quoted 10 lines
get any trace from the hung task detector or soft lockup detector.
At first I thought it must be a problem with wireless-testing. However, it went away when I eventually tried un-applying the rfkill rewrite patch.
Thanks
Alan
--
To unsubscribe from this list: send the line "unsubscribe linux-wirel=
ess" in
Quoted 2 lines
the body of a message to [email protected]
More majordomo info at =C2=A0http://vger.kernel.org/majordomo-info.ht=
ml
Quoted 1 line
--
To unsubscribe from this list: send the line "unsubscribe linux-wireles= s" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 19 lines · Luis R. Rodriguez
Quoted 17 lines · Alan Jenkins
Quoted 2 lines · Johannes Berg
This patch completely rewrites the rfkill core to address the following deficiencies:
I tested on todays wireless-testing, aka v2.6.30-rc5-23297-gbf2c6a3. Somehow, it triggers an OOPS
Function:
req_reg_info_regd
Process: modprobeCall trace:
wiphy_apply_custom_regulatoryath5k_regd_initath5k_reg_notifierath5k_pci_probe
...
Quoted 5 lines
Quoted 2 lines
Photo:
<http://picasaweb.google.com/sourcejedi.lkml/Screenshots#5334936857267342674>BTW can explain how to reproduce. Did you just use wireless-testing and johanne's rfkill rewrite and use ath5k and can easily reproduce?
Yes. wireless-testing (v2.6.30-rc5-23297-gbf2c6a3) + Johan's rfkill rewrite. ath5k on the original model EeePC. The OOPS happens on every boot with this combination.
Quoted 1 line
Do you have an ath9k card?
No.
Thanks,
Alan
Quoted 13 lines · Johannes Berg
This patch completely rewrites the rfkill core to address the following deficiencies:
* all rfkill drivers need to implement polling where necessary rather than having one central implementation
* updating the rfkill state cannot be done from arbitrary contexts, forcing drivers to use
schedule_workand requiring lots of code* rfkill drivers need to keep track of soft/hard blocked internally -- the core should do this
Quoted 9 lines
* the rfkill API has many unexpected quirks, for example being asymmetric wrt. alloc/free and register/unregister
* rfkill can call back into a driver from within a function the driver called -- this is prone to deadlocks and generally should be avoided
* rfkill-input pointlessly is a separate module
Please leave rfkill-input available as a module, at least until the bug I reported in my previous e-mail 'Soft Lockup With rfkill_input and thinkpad_acpi' is resolved. Otherwise it will render Thinkpads, and possibly other systems, unusable with rfkill enabled.
Thank you,
Will Keaney
Johannes Berg
maintainerQuoted 6 lines · Will Keaney
Quoted 2 lines
* rfkill-input pointlessly is a separate module
Please leave rfkill-input available as a module, at least until the bug I reported in my previous e-mail 'Soft Lockup With
rfkill_inputandthinkpad_acpi' is resolved. Otherwise it will render Thinkpads, and possibly other systems, unusable with rfkill enabled.
I certainly will not, but I will help you solve the problem _after_ this patch. For sure not before this patch.
johannes
Quoted 21 lines · Will Keaney
Quoted 20 lines · Johannes Berg
This patch completely rewrites the rfkill core to address the following deficiencies:
* all rfkill drivers need to implement polling where necessary rather than having one central implementation
* updating the rfkill state cannot be done from arbitrary contexts, forcing drivers to use
schedule_workand requiring lots of code* rfkill drivers need to keep track of soft/hard blocked internally -- the core should do this
* the rfkill API has many unexpected quirks, for example being asymmetric wrt. alloc/free and register/unregister
* rfkill can call back into a driver from within a function the driver called -- this is prone to deadlocks and generally should be avoided
Quoted 6 lines
Quoted 2 lines
* rfkill-input pointlessly is a separate module
Please leave rfkill-input available as a module, at least until the bug I reported in my previous e-mail 'Soft Lockup With
rfkill_inputandthinkpad_acpi' is resolved. Otherwise it will render Thinkpads, and possibly other systems, unusable with rfkill enabled.
The problem gets fixed where the problem is at... if the actual root cause is in the rfkill rewrite, then maybe Johannes should take a look. If the actual root cause is a bug in thinkpad-acpi, then it shouldn't block the rfkill rewrite, but should be fixed in thinkpad-acpi.
Dan
Johannes Berg
maintainerQuoted 7 lines · Dan Williams
Quoted 4 lines
Please leave rfkill-input available as a module, at least until the bug I reported in my previous e-mail 'Soft Lockup With
rfkill_inputandthinkpad_acpi' is resolved. Otherwise it will render Thinkpads, and possibly other systems, unusable with rfkill enabled.The problem gets fixed where the problem is at... if the actual root cause is in the rfkill rewrite, then maybe Johannes should take a look.
We don't even know yet whether the bug is present after the rewrite!
Quoted 2 lines
If the actual root cause is a bug in thinkpad-acpi, then it shouldn't block the rfkill rewrite, but should be fixed in thinkpad-acpi.
Unfortunately thinkpad-acpi hasn't been ported yet in my rewrite, so we can't know. I've poked hmh, but if he doesn't respond soon I'll do a crude port and ask Will to test it.
johannes
Quoted 19 lines · Johannes Berg
Quoted 8 lines · Dan Williams
Quoted 5 lines
Please leave rfkill-input available as a module, at least until the bug I reported in my previous e-mail 'Soft Lockup With
rfkill_inputandthinkpad_acpi' is resolved. Otherwise it will render Thinkpads, and possibly other systems, unusable with rfkill enabled.The problem gets fixed where the problem is at... if the actual root cause is in the rfkill rewrite, then maybe Johannes should take a look.
We don't even know yet whether the bug is present after the rewrite!
Quoted 3 lines
If the actual root cause is a bug in thinkpad-acpi, then it shouldn't block the rfkill rewrite, but should be fixed in thinkpad-acpi.
Quoted 6 lines
Unfortunately thinkpad-acpi hasn't been ported yet in my rewrite, so we can't know. I've poked hmh, but if he doesn't respond soon I'll do a crude port and ask Will to test it.
johannes
OK. For what it's worth, the bug is still present in 2.6.30-rc5-wl-23297-gbf2c6a3 as pulled from wireless-testing about an hour ago.
Will Keaney
Johannes Berg
maintainerQuoted 3 lines · Will Keaney
OK. For what it's worth, the bug is still present in 2.6.30-rc5-wl-23297-gbf2c6a3 as pulled from wireless-testing about an hour ago.
Not good, but I don't care. However, you're going to have to compile your kernel with CONFIG_FRAME_POINTER for anybody to be able to make sense out of the problem.
johannes
Quoted 9 lines · Johannes Berg
Quoted 7 lines · Dan Williams
Quoted 4 lines
Please leave rfkill-input available as a module, at least until the bug I reported in my previous e-mail 'Soft Lockup With
rfkill_inputandthinkpad_acpi' is resolved. Otherwise it will render Thinkpads, and possibly other systems, unusable with rfkill enabled.The problem gets fixed where the problem is at... if the actual root cause is in the rfkill rewrite, then maybe Johannes should take a look.
Quoted 8 lines
We don't even know yet whether the bug is present after the rewrite!
Quoted 2 lines
If the actual root cause is a bug in thinkpad-acpi, then it shouldn't block the rfkill rewrite, but should be fixed in thinkpad-acpi.
Unfortunately thinkpad-acpi hasn't been ported yet in my rewrite, so we can't know. I've poked hmh, but if he doesn't respond soon I'll do a crude port and ask Will to test it.
Hmm, I did get your email, but I am overworked and nearing a burn out due to real-life issues, so I didn't answer right away. I will see if I can get something usable by Sunday (I usually get some opportunity to unwind and work on the kernel during the weekend), but I will not complain if you come up with something quick-and-dirty should I fail to deliver.
As for the issue Dan reported, I have _no_ _idea_ of what it might be causing it, and a bissect would help wonders. It will have to be fixed anyway (even if it is also fixed by the rfkill rewrite) if it is hosing 2.6.30 :-(
Signature · 4 lines
"One disk to rule them all, One disk to find them. One disk to bring them all and in the darkness grind them. In the Land of Redmond where the shadows lie." -- The Silicon Valley Tarot Henrique Holschuh
Johannes Berg
maintainerQuoted 5 lines · Henrique de Moraes Holschuh
Hmm, I did get your email, but I am overworked and nearing a burn out due to real-life issues, so I didn't answer right away. I will see if I can get something usable by Sunday (I usually get some opportunity to unwind and work on the kernel during the weekend), but I will not complain if you come up with something quick-and-dirty should I fail to deliver.
Alright, thanks. I just need to get this done to post it for .31.
Quoted 4 lines
As for the issue Dan reported, I have _no_ _idea_ of what it might be causing it, and a bissect would help wonders. It will have to be fixed anyway (even if it is also fixed by the rfkill rewrite) if it is hosing 2.6.30 :-(
Dan? Now I'm confused? You mean Will's issue? Does thinkpad do LED stuff? That's the only thing we changed recently in the current rfkill code...
johannes
Quoted 6 lines · Johannes Berg
Quoted 4 lines
As for the issue Dan reported, I have _no_ _idea_ of what it might be causing it, and a bissect would help wonders. It will have to be fixed anyway (even if it is also fixed by the rfkill rewrite) if it is hosing 2.6.30 :-(
Dan? Now I'm confused? You mean Will's issue? Does thinkpad do LED
Probably.
Quoted 1 line
stuff? That's the only thing we changed recently in the current rfkill
Yes, thinkpad does LED stuff... but not on the rfkill path I think. Although one could certainly use a rfkill trigger on one of the thinkpad leds, and that would tie the two together...
Signature · 4 lines
"One disk to rule them all, One disk to find them. One disk to bring them all and in the darkness grind them. In the Land of Redmond where the shadows lie." -- The Silicon Valley Tarot Henrique Holschuh
Johannes Berg
maintainerQuoted 8 lines · Henrique de Moraes Holschuh
Quoted 6 lines · Johannes Berg
Quoted 4 lines
As for the issue Dan reported, I have _no_ _idea_ of what it might be causing it, and a bissect would help wonders. It will have to be fixed anyway (even if it is also fixed by the rfkill rewrite) if it is hosing 2.6.30 :-(
Dan? Now I'm confused? You mean Will's issue? Does thinkpad do LED
Quoted 7 lines
Probably.
Quoted 1 line
stuff? That's the only thing we changed recently in the current rfkill
Yes, thinkpad does LED stuff... but not on the rfkill path I think. Although one could certainly use a rfkill trigger on one of the thinkpad leds, and that would tie the two together...
Exactly. But for some reason I fail to comprehend rfkill had LED triggers but never actually used them until Larry very recently added that.
johannes
Quoted 2 lines · Henrique de Moraes Holschuh
to real-life issues, so I didn't answer right away. I will see if I can get something usable by Sunday (I usually get some opportunity to unwind
It is done, but it was a complete refactoring, so I am testing it. That could take a few days. If you want, I can send you the untested (and probably still somewhat buggy) code.
Signature · 4 lines
"One disk to rule them all, One disk to find them. One disk to bring them all and in the darkness grind them. In the Land of Redmond where the shadows lie." -- The Silicon Valley Tarot Henrique Holschuh
Johannes Berg
maintainerQuoted 7 lines · Henrique de Moraes Holschuh
Quoted 2 lines · Henrique de Moraes Holschuh
to real-life issues, so I didn't answer right away. I will see if I can get something usable by Sunday (I usually get some opportunity to unwind
It is done, but it was a complete refactoring, so I am testing it. That could take a few days. If you want, I can send you the untested (and probably still somewhat buggy) code.
Up to you -- I'll happily integrate it into my code and actually finally post it for inclusion and we can fix up the bugs later, or you can test it for a few days and then we do that.
johannes
Quoted 5 lines · Johannes Berg
Quoted 4 lines · Henrique de Moraes Holschuh
Quoted 2 lines · Henrique de Moraes Holschuh
to real-life issues, so I didn't answer right away. I will see if I can get something usable by Sunday (I usually get some opportunity to unwind
Quoted 7 lines
Quoted 3 lines
It is done, but it was a complete refactoring, so I am testing it. That could take a few days. If you want, I can send you the untested (and probably still somewhat buggy) code.
Up to you -- I'll happily integrate it into my code and actually finally post it for inclusion and we can fix up the bugs later, or you can test it for a few days and then we do that.
Did some testing yesterday, and found two bugs, one of which I didn't have time to fix yet. Let's see if I can get it fixed today.
Signature · 4 lines
"One disk to rule them all, One disk to find them. One disk to bring them all and in the darkness grind them. In the Land of Redmond where the shadows lie." -- The Silicon Valley Tarot Henrique Holschuh