1. 17 5月, 2011 1 次提交
  2. 05 12月, 2009 1 次提交
    • J
      b43: fix two warnings · df98a496
      Johannes Berg 提交于
      My gcc appears to be able to see past the function
      boundary and notices that the variable 'behaviour'
      could be used uninitialised:
      
      drivers/net/wireless/b43/leds.c: In function ‘b43_leds_register’:
      drivers/net/wireless/b43/leds.c:339: warning: ‘behaviour’ may be used uninitialized in this function
      drivers/net/wireless/b43/leds.c: In function ‘b43_leds_init’:
      drivers/net/wireless/b43/leds.c:262: warning: ‘behaviour’ may be used uninitialized in this function
      
      because b43_led_get_sprominfo() didn't initialise
      it in all cases.
      Signed-off-by: NJohannes Berg <johannes@sipsolutions.net>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      df98a496
  3. 08 10月, 2009 1 次提交
  4. 23 9月, 2009 3 次提交
  5. 11 6月, 2009 1 次提交
  6. 04 6月, 2009 1 次提交
    • J
      rfkill: rewrite · 19d337df
      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_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
      Tested-by: NAlan Jenkins <alan-jenkins@tuffmail.co.uk>
      Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br> [thinkpad]
      Signed-off-by: NJohannes Berg <johannes@sipsolutions.net>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      19d337df
  7. 25 6月, 2008 1 次提交
  8. 20 4月, 2008 1 次提交
    • R
      PM: Remove destroy_suspended_device() · b844eba2
      Rafael J. Wysocki 提交于
      After 2.6.24 there was a plan to make the PM core acquire all device
      semaphores during a suspend/hibernation to protect itself from
      concurrent operations involving device objects.  That proved to be
      too heavy-handed and we found a better way to achieve the goal, but
      before it happened, we had introduced the functions
      device_pm_schedule_removal() and destroy_suspended_device() to allow
      drivers to "safely" destroy a suspended device and we had adapted some
      drivers to use them.  Now that these functions are no longer necessary,
      it seems reasonable to remove them and modify their users to use the
      normal device unregistration instead.
      Signed-off-by: NRafael J. Wysocki <rjw@sisk.pl>
      Acked-by: NPavel Machek <pavel@ucw.cz>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      b844eba2
  9. 07 2月, 2008 1 次提交
  10. 06 2月, 2008 1 次提交
  11. 29 1月, 2008 2 次提交
  12. 18 12月, 2007 1 次提交
    • L
      b43: Fix rfkill radio LED · 1a8d1227
      Larry Finger 提交于
      This fixes Bug #9414
      
      Since addition of the rfkill callback, the LED associated with the off
      switch on the radio has not worked for several reasons:
      
      (1) Essential data in the rfkill structure were missing.
      (2) The rfkill structure was initialized after the LED initialization.
      (3) There was a minor memory leak if the radio LED structure was inited.
      
      Once the above problems were fixed, additional difficulties were noted:
      
      (4) The radio LED was in the wrong state at startup.
      (5) The radio switch had to be manipulated twice for each state change.
      (6) A circular mutex locking situation existed.
      (7) If rfkill-input is built as a module, it is not automatically loaded.
      
      This patch fixes all of the above.
      Signed-off-by: NLarry Finger <Larry.Finger@lwfinger.net>
      Signed-off-by: NMichael Buesch <mb@bu3sch.de>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      1a8d1227
  13. 11 10月, 2007 5 次提交