1. 11 Dec, 2009 1 commit
  2. 04 Dec, 2009 1 commit
  3. 03 Dec, 2009 6 commits
  4. 28 Nov, 2009 1 commit
    • Dominik Brodowski's avatar
      pcmcia: rework the irq_req_t typedef · 5fa9167a
      Dominik Brodowski authored
      Most of the irq_req_t typedef'd struct can be re-worked quite
      (1) IRQInfo2 was unused in any case, so drop it.
      (2) IRQInfo1 was used write-only, so drop it.
      (3) Instance (private data to be passed to the IRQ handler):
      	Most PCMCIA drivers using pcmcia_request_irq() to actually
      	register an IRQ handler set the "dev_id" to the same pointer
      	as the "priv" pointer in struct pcmcia_device. Modify the two
      	exceptions (ipwireless, ibmtr_cs) to also work this waym and
      	set the IRQ handler's "dev_id" to p_dev->priv unconditionally.
      (4) Handler is to be of type irq_handler_t.
      (5) Handler != NULL already tells whether an IRQ handler is present.
      	Therefore, we do not need the IRQ_HANDLER_PRESENT flag in
      CC: netdev@vger.kernel.org
      CC: linux-bluetooth@vger.kernel.org
      CC: linux-ide@vger.kernel.org
      CC: linux-wireless@vger.kernel.org
      CC: linux-scsi@vger.kernel.org
      CC: alsa-devel@alsa-project.org
      CC: Jaroslav Kysela <perex@perex.cz>
      CC: Jiri Kosina <jkosina@suse.cz>
      CC: Karsten Keil <isdn@linux-pingi.de>
      for the Bluetooth parts: Acked-by: Marcel Holtmann <marcel@holtmann.org>
      Signed-off-by: default avatarDominik Brodowski <linux@dominikbrodowski.net>
  5. 14 Nov, 2009 1 commit
  6. 11 Nov, 2009 1 commit
  7. 08 Nov, 2009 1 commit
  8. 15 Sep, 2009 1 commit
  9. 24 Aug, 2009 2 commits
    • Oliver Neukum's avatar
      Bluetooth: Add USB autosuspend support to btusb driver · 7bee549e
      Oliver Neukum authored
      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: default avatarOliver Neukum <oliver@neukum.org>
      Tested-by: default avatarSarah Sharp <sarah.a.sharp@linux.intel.com>
      Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
    • Wending Weng's avatar
      Bluetooth: Fix false errors from bcsp_pkt_cull function · d2e353f7
      Wending Weng authored
      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)
      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: default avatarWending Weng <wweng@rheinmetall.ca>
      Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
  10. 22 Aug, 2009 17 commits
  11. 12 Jul, 2009 1 commit
  12. 14 Jun, 2009 1 commit
  13. 11 Jun, 2009 2 commits
    • Alan Cox's avatar
      tty: fix bluetooth scribbling on low latency flags · 7f8d09ea
      Alan Cox authored
      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: default avatarAlan Cox <alan@linux.intel.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    • Alan Cox's avatar
      tty: rewrite the ldisc locking · c65c9bc3
      Alan Cox authored
      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
      - 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: default avatarAlan Cox <alan@linux.intel.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
  14. 08 Jun, 2009 4 commits