1. 15 11月, 2009 1 次提交
  2. 12 11月, 2009 1 次提交
  3. 16 9月, 2009 1 次提交
  4. 25 8月, 2009 2 次提交
    • O
      Bluetooth: Add USB autosuspend support to btusb driver · 7bee549e
      Oliver Neukum 提交于
      This patch adds support of USB autosuspend to the btusb driver.
      
      If the device doesn't support remote wakeup, simple support based on
      up/down is provided. If the device supports remote wakeup, additional
      support for autosuspend while the interface is up is provided. This is
      done by queueing URBs in an anchor structure and waking the device up
      from a work queue on sending. Reception triggers remote wakeup.
      
      The last busy facility of the USB autosuspend code is used. To close
      a race between autosuspend and transmission, a counter of ongoing
      transmissions is maintained.
      
      Add #ifdefs for CONFIG_PM as necessary.
      Signed-off-by: NOliver Neukum <oliver@neukum.org>
      Tested-by: NSarah Sharp <sarah.a.sharp@linux.intel.com>
      Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
      7bee549e
    • W
      Bluetooth: Fix false errors from bcsp_pkt_cull function · d2e353f7
      Wending Weng 提交于
      The error message "Removed only %u out of %u pkts" is printed when multiple
      to be acked packets are queued.
      
          if (i++ >= pkts_to_be_removed)
                  break;
      
      This will break out of the loop and increase the counter i when
      i==pkts_to_be_removed and the loop ends up with i=pkts_to_be_removed+1.
      
      The following line
      
          if (i != pkts_to_be_removed) {
                  BT_ERR("Removed only %u out of %u pkts", i, pkts_to_be_removed);
          }
      
      will then display the false message.
      
      The counter i must not increase on the same statement.
      Signed-off-by: NWending Weng <wweng@rheinmetall.ca>
      Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
      d2e353f7
  5. 23 8月, 2009 17 次提交
  6. 13 7月, 2009 1 次提交
  7. 14 6月, 2009 1 次提交
  8. 11 6月, 2009 2 次提交
    • A
      tty: fix bluetooth scribbling on low latency flags · 7f8d09ea
      Alan Cox 提交于
      Bluetooth shouldn't be doing this as most drivers don't support the flag,
      furthermore it shouldn't be needed with newer buffering. This becomes rather
      more visible as the locking fixes make the abuse of low_latency visible as
      spew on the users console/dmesg.
      Signed-off-by: NAlan Cox <alan@linux.intel.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      7f8d09ea
    • A
      tty: rewrite the ldisc locking · c65c9bc3
      Alan Cox 提交于
      There are several pretty much unfixable races in the old ldisc code, especially
      with respect to pty behaviour and also to hangup. It's easier to rewrite the
      code than simply try and patch it up.
      
      This patch
      - splits the ldisc from the tty (so we will be able to refcount it more cleanly
        later)
      - introduces a mutex lock for ldisc changing on an active device
      - fixes the complete mess that hangup caused
      - implements hopefully correct setldisc/close/hangup locking
      
      There are still some problems around pty pairs that have always been there but
      at least it is now possible to understand the code and fix further problems.
      
      This fixes the following known bugs
      - hang up can leak ldisc references
      - hang up may not call open/close on ldisc in a matched way
      - pty/tty pairs can deadlock during an ldisc change
      - reading the ldisc proc files can cause every ldisc to be loaded
      
      and probably a few other of the mysterious ldisc race reports.
      
      I'm sure it also adds the odd new one.
      Signed-off-by: NAlan Cox <alan@linux.intel.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      c65c9bc3
  9. 08 6月, 2009 4 次提交
  10. 27 2月, 2009 3 次提交
  11. 30 11月, 2008 7 次提交