1. 30 6月, 2011 1 次提交
  2. 15 4月, 2011 1 次提交
  3. 13 4月, 2011 1 次提交
  4. 31 3月, 2011 1 次提交
  5. 20 1月, 2011 1 次提交
  6. 23 12月, 2010 1 次提交
  7. 03 12月, 2010 2 次提交
  8. 01 12月, 2010 1 次提交
    • N
      ath5k: Reset cleanup and generic cleanup · 9320b5c4
      Nick Kossifidis 提交于
       * No functional changes
      
       * Clean up reset:
       Introduce init functions for each unit and call them instead
       of having everything inside ath5k_hw_reset (it's just c/p for
       now so nothing changes except calling order -I tested it with
       various cards and it's ok-)
      
       * Further cleanups:
       ofdm_timings belongs to phy.c
       rate_duration belongs to pcu.c
       clock functions are general and belong to reset.c (more to follow)
      
       * Reorder functions for better organization:
       We start with helpers and other functions follow in categories,
       init functions are last
      Signed-off-by: NNick Kossifidis <mickflemm@gmail.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      9320b5c4
  9. 25 8月, 2010 1 次提交
  10. 03 6月, 2010 2 次提交
  11. 30 3月, 2010 1 次提交
    • T
      include cleanup: Update gfp.h and slab.h includes to prepare for breaking... · 5a0e3ad6
      Tejun Heo 提交于
      include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h
      
      percpu.h is included by sched.h and module.h and thus ends up being
      included when building most .c files.  percpu.h includes slab.h which
      in turn includes gfp.h making everything defined by the two files
      universally available and complicating inclusion dependencies.
      
      percpu.h -> slab.h dependency is about to be removed.  Prepare for
      this change by updating users of gfp and slab facilities include those
      headers directly instead of assuming availability.  As this conversion
      needs to touch large number of source files, the following script is
      used as the basis of conversion.
      
        http://userweb.kernel.org/~tj/misc/slabh-sweep.py
      
      The script does the followings.
      
      * Scan files for gfp and slab usages and update includes such that
        only the necessary includes are there.  ie. if only gfp is used,
        gfp.h, if slab is used, slab.h.
      
      * When the script inserts a new include, it looks at the include
        blocks and try to put the new include such that its order conforms
        to its surrounding.  It's put in the include block which contains
        core kernel includes, in the same order that the rest are ordered -
        alphabetical, Christmas tree, rev-Xmas-tree or at the end if there
        doesn't seem to be any matching order.
      
      * If the script can't find a place to put a new include (mostly
        because the file doesn't have fitting include block), it prints out
        an error message indicating which .h file needs to be added to the
        file.
      
      The conversion was done in the following steps.
      
      1. The initial automatic conversion of all .c files updated slightly
         over 4000 files, deleting around 700 includes and adding ~480 gfp.h
         and ~3000 slab.h inclusions.  The script emitted errors for ~400
         files.
      
      2. Each error was manually checked.  Some didn't need the inclusion,
         some needed manual addition while adding it to implementation .h or
         embedding .c file was more appropriate for others.  This step added
         inclusions to around 150 files.
      
      3. The script was run again and the output was compared to the edits
         from #2 to make sure no file was left behind.
      
      4. Several build tests were done and a couple of problems were fixed.
         e.g. lib/decompress_*.c used malloc/free() wrappers around slab
         APIs requiring slab.h to be added manually.
      
      5. The script was run on all .h files but without automatically
         editing them as sprinkling gfp.h and slab.h inclusions around .h
         files could easily lead to inclusion dependency hell.  Most gfp.h
         inclusion directives were ignored as stuff from gfp.h was usually
         wildly available and often used in preprocessor macros.  Each
         slab.h inclusion directive was examined and added manually as
         necessary.
      
      6. percpu.h was updated not to include slab.h.
      
      7. Build test were done on the following configurations and failures
         were fixed.  CONFIG_GCOV_KERNEL was turned off for all tests (as my
         distributed build env didn't work with gcov compiles) and a few
         more options had to be turned off depending on archs to make things
         build (like ipr on powerpc/64 which failed due to missing writeq).
      
         * x86 and x86_64 UP and SMP allmodconfig and a custom test config.
         * powerpc and powerpc64 SMP allmodconfig
         * sparc and sparc64 SMP allmodconfig
         * ia64 SMP allmodconfig
         * s390 SMP allmodconfig
         * alpha SMP allmodconfig
         * um on x86_64 SMP allmodconfig
      
      8. percpu.h modifications were reverted so that it could be applied as
         a separate patch and serve as bisection point.
      
      Given the fact that I had only a couple of failures from tests on step
      6, I'm fairly confident about the coverage of this conversion patch.
      If there is a breakage, it's likely to be something in one of the arch
      headers which should be easily discoverable easily on most builds of
      the specific arch.
      Signed-off-by: NTejun Heo <tj@kernel.org>
      Guess-its-ok-by: NChristoph Lameter <cl@linux-foundation.org>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Lee Schermerhorn <Lee.Schermerhorn@hp.com>
      5a0e3ad6
  12. 11 3月, 2010 2 次提交
  13. 05 1月, 2010 1 次提交
  14. 11 12月, 2009 1 次提交
    • L
      ath5k: enable EEPROM checksum check · 512414b0
      Luis R. Rodriguez 提交于
      Without this we have no gaurantee of the integrity of the
      EEPROM and are likely to encounter a lot of bogus bug reports
      due to actual issues on the EEPROM. With the EEPROM checksum
      check in place we can easily rule those issues out.
      
      If you run patch during a revert *you* have a card with a busted
      EEPROM and only older kernel will support that concoction. This
      patch is a trade off between not accepitng bogus EEPROMs and
      avoiding bogus bug reports allowing developers to focus instead
      on real concrete issues.
      
      If stable keeps bogus bug reports because of a possibly busted EEPROM
      feel free to apply this there too.
      
      Tested on an AR5414
      
      Cc: stable@kernel.org
      Cc: jirislaby@gmail.com
      Cc: akpm@linux-foundation.org
      Cc: rjw@sisk.pl
      Cc: me@bobcopeland.com
      Cc: david.quan@atheros.com
      Signed-off-by: NLuis R. Rodriguez <lrodriguez@atheros.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      512414b0
  15. 04 12月, 2009 1 次提交
  16. 29 8月, 2009 1 次提交
    • P
      ath5k: fix uninitialized value use in ath5k_eeprom_read_turbo_modes() · 3b3ee43d
      Pavel Roskin 提交于
      The `val' variable in ath5k_eeprom_read_turbo_modes() is used
      uninitialized.  gcc 4.4.1 with -fno-inline-functions-called-once reports
      it:
      
      eeprom.c: In function 'ath5k_eeprom_read_turbo_modes':
      eeprom.c:441: warning: 'val' may be used uninitialized in this function
      
      Comparing the code to the Atheros HAL, it's clear that the split between
      ath5k_eeprom_read_modes() and ath5k_eeprom_read_turbo_modes() was
      incorrect.
      
      The Atheros HAL reads both turbo and non-turbo data from EEPROM in one
      function.  Some turbo mode parameters are derived from the same EEPROM
      values as non-turbo parameters, just from different bits.
      
      Merge ath5k_eeprom_read_turbo_modes() into ath5k_eeprom_read_modes() to
      fix the warning.  The actual values and offsets have been cross-checked
      against Atheros HAL.
      Signed-off-by: NPavel Roskin <proski@gnu.org>
      Acked-by: NBob Copeland <me@bobcopeland.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      3b3ee43d
  17. 14 8月, 2009 1 次提交
  18. 07 5月, 2009 4 次提交
  19. 23 4月, 2009 1 次提交
  20. 28 3月, 2009 1 次提交
  21. 17 3月, 2009 1 次提交
  22. 14 2月, 2009 2 次提交
  23. 30 1月, 2009 2 次提交
    • N
      ath5k: More EEPROM code updates · eaee7cc2
      Nick Kossifidis 提交于
      * Don't scale power values on RF5111 EEPROMs because they get out of
        bounds (power is u8, so multiplying power by 50 is too much and there
        is no reason to do so -we don't do it on other chips anyway-). HAL
        does it as a technique to handle 0.5 dbm steps but i believe it's not
        the right thing to do and certainly not the right place to do it. We
        'll work this out on interpolation code for all chips (0.5 or 0.25
        steps etc) in a generic way.
      Signed-Off-by: NNick Kossifidis <mickflemm@gmail.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      eaee7cc2
    • N
      ath5k: Update EEPROM code · 0ea9c00c
      Nick Kossifidis 提交于
      *Read misc2...6 values from eeprom since we want to use them (fixes
       wrong power calibration info offset on RF2413+ chips)
      
      *Initialize num_piers to 0 for RF2413 chips (note that we read 2GHz
       frequency piers while reading mode sections, we have to ignore them
       -usualy they are 0xff anyway but during my tests i got a 1 on b mode
       with no data- and use the newer eemap.
      
      *Add some more comments (please forgive my poor English ;-( ) and
       some minor code cleanup
      
      *Tested on 2425 and 2112 and has the same data with ath_info (i
       wrote some debug code on debug.c to print everything like ath_info
       but i haven't tested it yet on 5111 and it's full of > 80 col lines,
       if anyone wants to play with it let me know).
      Signed-Off-by: NNick Kossifidis <mickflemm@gmail.com>
      Acked-by: NFelix Fietkau <nbd@openwrt.org>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      0ea9c00c
  24. 26 11月, 2008 1 次提交
  25. 06 9月, 2008 1 次提交
    • N
      ath5k: HW code cleanup · c6e387a2
      Nick Kossifidis 提交于
       * No code changes...
      
       * Split hw.c to multiple files for better maintenance and add some documentation on each file
         code is going to grow soon (eeprom.c for example is going to get much stuff currently developed
         on ath_info) so it's better this way.
      
       * Rename following functions to maintain naming scheme:
      
           ah_setup_xtx_desc -> ah_setup_mrr_tx_desc
           (Because xtx doesn't say much, it's actually
           a multi-rate-retry tx descriptor)
      
           ath5k_hw_put_tx/rx_buf - > ath5k_hw_set_tx/rxdp
           ath5k_hw_get_tx/rx_buf -> ath5k_hw_get_tx/rxdp
           (We don't put any "buf" we set descriptor pointers on hw)
      
           ath5k_hw_tx_start -> ath5k_hw_start_tx_dma
           ath5k_hw_start_rx -> ath5k_hw_start_rx_dma
           ath5k_hw_stop_pcu_recv -> ath5k_hw_stop_rx_pcu
           (It's easier this way to identify them, we also
           have ath5k_hw_start_rx_pcu which completes the
           set)
      
           ath5k_hw_set_intr -> ath5k_hw_set_imr
           (As in get_isr we set imr here, not "intr")
      
        * Move ath5k_hw_setup_rx_desc on ah->ah_setup_rx_desc so we can
          include support for different rx descriptors in the future
      
        * Further cleanups so that checkpatch doesn't complain
          (only some > 80 col warnings for eeprom.h and reg.h as usual
          due to comments)
      
        Tested on 5211 and 5213 cards and works ok.
      
      Changes-licensed-under: ISC
      Signed-off-by: NNick Kossifidis <mickflemm@gmail.com>
      Acked-by: NLuis R. Rodriguez <lrodriguez@atheros.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      c6e387a2