1. 07 7月, 2011 1 次提交
  2. 17 5月, 2011 1 次提交
  3. 23 11月, 2010 1 次提交
  4. 05 12月, 2009 1 次提交
    • L
      b43: avoid PPC fault during resume · c2ff581a
      Larry Finger 提交于
      The routine b43_is_hw_radio_enabled() has long been a problem.
      For PPC architecture with PHY Revision < 3, a read of the register
      B43_MMIO_HWENABLED_LO will cause a CPU fault unless b43_status()
      returns a value of 2 (B43_STAT_STARTED) (BUG 14181). Fixing that
      results in Bug 14538 in which the driver is unable to reassociate
      after resuming from hibernation because b43_status() returns 0.
      
      The correct fix would be to determine why the status is 0; however,
      I have not yet found why that happens. The correct value is found for
      my device, which has PHY revision >= 3.
      
      Returning TRUE when the PHY revision < 3 and b43_status() returns 0 fixes
      the regression for 2.6.32.
      
      This patch fixes the problem in Red Hat Bugzilla #538523.
      Signed-off-by: NLarry Finger <Larry.Finger@lwfinger.net>
      Tested-by: NChristian Casteyde <casteyde.christian@free.fr>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      c2ff581a
  5. 28 10月, 2009 1 次提交
    • L
      b43: Fix Bugzilla #14181 and the bug from the previous 'fix' · d50bae33
      Larry Finger 提交于
      "b43: Fix PPC crash in rfkill polling on unload" fixed the bug reported
      in Bugzilla No. 14181; however, it introduced a new bug. Whenever the
      radio switch was turned off, it was necessary to unload and reload
      the driver for it to recognize the switch again.
      
      This patch fixes both the original bug in #14181 and the bug introduced by
      the previous patch. It must be stated, however, that if there is a BCM4306/3
      with an rfkill switch (not yet proven), then the driver will need an
      unload/reload cycle to turn the device back on.
      Signed-off-by: NLarry Finger <Larry.Finger@lwfinger.net>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      d50bae33
  6. 23 9月, 2009 1 次提交
  7. 11 6月, 2009 1 次提交
  8. 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
  9. 23 4月, 2009 1 次提交
  10. 28 2月, 2009 1 次提交
  11. 25 9月, 2008 1 次提交
  12. 17 9月, 2008 1 次提交
  13. 30 8月, 2008 1 次提交
  14. 01 7月, 2008 2 次提交
  15. 27 6月, 2008 1 次提交
    • J
      wireless: remove RFKILL_STATE_HARD_BLOCKED warnings · ff28bd94
      John W. Linville 提交于
        CC [M]  drivers/net/wireless/b43/rfkill.o
      drivers/net/wireless/b43/rfkill.c: In function ‘b43_rfkill_soft_toggle’:
      drivers/net/wireless/b43/rfkill.c:90: warning: enumeration value ‘RFKILL_STATE_HARD_BLOCKED’ not handled in switch
      
        CC [M]  drivers/net/wireless/b43legacy/rfkill.o
      drivers/net/wireless/b43legacy/rfkill.c: In function ‘b43legacy_rfkill_soft_toggle’:
      drivers/net/wireless/b43legacy/rfkill.c:92: warning: enumeration value ‘RFKILL_STATE_HARD_BLOCKED’ not handled in switch
      
        CC [M]  drivers/net/wireless/iwlwifi/iwl-rfkill.o
      drivers/net/wireless/iwlwifi/iwl-rfkill.c: In function ‘iwl_rfkill_soft_rf_kill’:
      drivers/net/wireless/iwlwifi/iwl-rfkill.c:56: warning: enumeration value ‘RFKILL_STATE_HARD_BLOCKED’ not handled in switch
      
      Also handle RFKILL_STATE_{ON,OFF} -> RFKILL_STATE_{UNBLOCKED,SOFT_BLOCKED}
      conversion since I'm already here...
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      ff28bd94
  16. 17 1月, 2008 1 次提交
  17. 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
  18. 10 11月, 2007 2 次提交
  19. 11 10月, 2007 2 次提交