1. 06 4月, 2012 1 次提交
    • S
      simple_open: automatically convert to simple_open() · 234e3405
      Stephen Boyd 提交于
      Many users of debugfs copy the implementation of default_open() when
      they want to support a custom read/write function op.  This leads to a
      proliferation of the default_open() implementation across the entire
      tree.
      
      Now that the common implementation has been consolidated into libfs we
      can replace all the users of this function with simple_open().
      
      This replacement was done with the following semantic patch:
      
      <smpl>
      @ open @
      identifier open_f != simple_open;
      identifier i, f;
      @@
      -int open_f(struct inode *i, struct file *f)
      -{
      (
      -if (i->i_private)
      -f->private_data = i->i_private;
      |
      -f->private_data = i->i_private;
      )
      -return 0;
      -}
      
      @ has_open depends on open @
      identifier fops;
      identifier open.open_f;
      @@
      struct file_operations fops = {
      ...
      -.open = open_f,
      +.open = simple_open,
      ...
      };
      </smpl>
      
      [akpm@linux-foundation.org: checkpatch fixes]
      Signed-off-by: NStephen Boyd <sboyd@codeaurora.org>
      Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      Cc: Al Viro <viro@zeniv.linux.org.uk>
      Cc: Julia Lawall <Julia.Lawall@lip6.fr>
      Acked-by: NIngo Molnar <mingo@elte.hu>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      234e3405
  2. 16 3月, 2012 1 次提交
  3. 08 3月, 2012 2 次提交
  4. 28 2月, 2012 5 次提交
  5. 16 12月, 2011 2 次提交
  6. 10 11月, 2011 1 次提交
  7. 01 11月, 2011 1 次提交
  8. 12 10月, 2011 1 次提交
  9. 28 9月, 2011 1 次提交
  10. 17 9月, 2011 1 次提交
  11. 15 9月, 2011 3 次提交
  12. 31 8月, 2011 1 次提交
  13. 30 8月, 2011 1 次提交
  14. 25 8月, 2011 1 次提交
  15. 10 8月, 2011 2 次提交
  16. 19 7月, 2011 1 次提交
  17. 04 6月, 2011 1 次提交
  18. 02 6月, 2011 2 次提交
    • M
      ath9k: Add a debug entry to start/stop ANI · 05c0be2f
      Mohammed Shafi Shajakhan 提交于
      this helps the user to start/stop ANI dynamically.
      Signed-off-by: NMohammed Shafi Shajakhan <mshajakhan@atheros.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      05c0be2f
    • F
      ath9k: unify edma and non-edma tx code, improve tx fifo handling · fce041be
      Felix Fietkau 提交于
      EDMA based chips (AR9380+) have 8 Tx FIFO slots, which are used to fix the
      tx queue start/stop race conditions which have to be worked around for
      earlier chips by keeping the last descriptor in the queue. The current code
      stores all frames that do not fit onto the 8 FIFO slots in a separate
      list. Whenever a FIFO slot is freed up, the next frame (or A-MPDU) from the
      pending queue gets moved to that slot.
      
      This process is not only inefficient, but also unnecessary. The code can
      be improved visibly by keeping the pending queue fully linked, and moving
      the contents of the entire queue to a FIFO slot as it becomes available.
      
      This patch makes the necessary changes for that and also merges some code
      that was duplicated for EDMA vs non-EDMA. It changes txq->axq_link to point
      to the last descriptor instead of the link pointer, so that
      ath9k_hw_set_desc_link can be used, which works on all chips.
      
      With this patch, a small performance increase for non-aggregated traffic
      was observed on AR9380 based embedded hardware.
      Signed-off-by: NFelix Fietkau <nbd@openwrt.org>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      fce041be
  19. 20 5月, 2011 2 次提交
  20. 19 5月, 2011 1 次提交
  21. 26 4月, 2011 1 次提交
  22. 13 4月, 2011 1 次提交
  23. 31 3月, 2011 2 次提交
  24. 05 3月, 2011 2 次提交
  25. 04 2月, 2011 1 次提交
  26. 29 1月, 2011 2 次提交
    • F
      ath9k: fix tx queue index confusion in debugfs code · 5bec3e5a
      Felix Fietkau 提交于
      Various places printing tx queue information used various different ways to
      get a tx queue index for printing statistics. Most of these ways were wrong.
      
      ATH_TXQ_AC_* cannot be used as an index for sc->tx.txq, because it is only
      used internally for queue assignment.
      
      One place used WME_AC_* as a queue index for sc->debug.stats.txstats, however
      this array uses the ath9k_hw queue number as well.
      
      Fix all of this by always using the ath9k_hw queue number as an index, and
      always looking it up by going through sc->tx.txq_map.
      Signed-off-by: NFelix Fietkau <nbd@openwrt.org>
      Cc: Ben Greear <greearb@candelatech.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      5bec3e5a
    • F
      ath9k: remove the virtual wiphy debugfs interface · 34302397
      Felix Fietkau 提交于
      It does not make much sense to keep the current virtual wiphy implementation
      any longer - it adds significant complexity, has very few users and is still
      very experimental. At some point in time, it will be replaced by a proper
      implementation in mac80211.
      
      By making the code easier to read and maintain, removing virtual wiphy support
      helps with fixing the remaining driver issues and adding further improvements.
      Signed-off-by: NFelix Fietkau <nbd@openwrt.org>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      34302397