30 Nov, 2008

10 commits

  • With the introduction of CONFIG_DYNAMIC_PRINTK_DEBUG it is possible to
    allow debugging without having to recompile the kernel. This patch turns
    all BT_DBG() calls into pr_debug() to support dynamic debug messages.

    As a side effect all CONFIG_BT_*_DEBUG statements are now removed and
    some broken debug entries have been fixed.

    Signed-off-by: Marcel Holtmann

    Marcel Holtmann
     
  • This patch allows the Asus WL-BTD202 dongle to be used with a mono
    headset without having to specify "options btusb force_scofix=1".

    Based on a patch from Guillaume Bedot

    Signed-off-by: Marcel Holtmann

    Marcel Holtmann
     
  • The Bluetooth subsystem was not using the HCI Reset command when doing
    device initialization. The Bluetooth 1.0b specification was ambiguous
    on how the device firmware was suppose to handle it. Almost every device
    was triggering a transport reset at the same time. In case of USB this
    ended up in disconnects from the bus.

    All modern Bluetooth dongles handle this perfectly fine and a lot of
    them actually require that HCI Reset is sent. If not then they are
    either stuck in their HID Proxy mode or their internal structures for
    inquiry and paging are not correctly setup.

    To handle old and new devices smoothly the Bluetooth subsystem contains
    a quirk to force the HCI Reset on initialization. However maintaining
    such a quirk becomes more and more complicated. This patch turns the
    logic around and lets the old devices disable the HCI Reset command.

    The only device where the HCI_QUIRK_NO_RESET is still needed are the
    original Digianswer devices and dongles with an early CSR firmware.

    CSR reported that they fixed this for version 12 firmware. The last
    official release of version 11 firmware is build ID 115. The first
    version 12 candidate was build ID 117.

    Signed-off-by: Marcel Holtmann

    Marcel Holtmann
     
  • The old hci_usb driver has been fully replaced with the new btusb driver
    and all major distributions switched to the new driver now. This removes
    it since it should not be used at all anymore.

    Signed-off-by: Marcel Holtmann

    Marcel Holtmann
     
  • Following the pattern from hci_*.c, turn off BT_DBG messages unless
    they have been requested via HCI_UART_DEBUG

    Signed-off-by: Nick Pelly
    Acked-by: Brian Swetland
    Signed-off-by: Marcel Holtmann

    Nick Pelly
     
  • Since size, addr, fcs, and tmp are unsigned, it would seem better to use
    simple_strtoul that simple_strtol.

    A simplified version of the semantic patch that makes this change is as
    follows: (http://www.emn.fr/x-info/coccinelle/)

    //
    @r2@
    long e;
    position p;
    @@

    e = simple_strtol@p(...)

    @@
    position p != r2.p;
    type T;
    T e;
    @@

    e =
    - simple_strtol@p
    + simple_strtoul
    (...)
    //

    Signed-off-by: Julia Lawall
    Signed-off-by: Marcel Holtmann

    Julia Lawall
     
  • This patch fixes accumulating of the header in case packet was requeued
    in the error path.

    Signed-off-by: Tomas Winkler
    Signed-off-by: Marcel Holtmann

    Tomas Winkler
     
  • During suspend it is important that all URBs are cancelled and then on
    resume re-submitted. This gives initial suspend/resume support.

    Based on initial work from Oliver Neukum

    Signed-off-by: Marcel Holtmann

    Marcel Holtmann
     
  • With the addition of usb_unlink_anchored_urbs() it is possible to fully
    control the bulk URBs from the notify callback. There is no need to
    schedule work and so only do this for the ISOC URBs.

    Signed-off-by: Marcel Holtmann

    Marcel Holtmann
     
  • The URB submission routines need more fine grained control for the
    mem_flags used by kmalloc(), usb_alloc_urb() and usb_submit_urb() to
    better support different caller situations. Add a mem_flags parameter
    and give the caller full control.

    Signed-off-by: Marcel Holtmann

    Marcel Holtmann
     

31 Oct, 2008

2 commits


27 Oct, 2008

1 commit


18 Oct, 2008

1 commit


14 Oct, 2008

2 commits

  • * git://git.kernel.org/pub/scm/linux/kernel/git/brodo/pcmcia-2.6: (49 commits)
    pcmcia: ioctl-internal definitions
    pcmcia: cistpl header cleanup
    pcmcia: remove unused argument to pcmcia_parse_tuple()
    pcmcia: card services header cleanup
    pcmcia: device_id header cleanup
    pcmcia: encapsulate ioaddr_t
    pcmcia: cleanup device driver header file
    pcmcia: cleanup socket services header file
    pcmcia: merge ds_internal.h into cs_internal.h
    pcmcia: cleanup cs_internal.h
    pcmcia: cs_internal.h is internal
    pcmcia: use dev_printk for cs_error()
    pcmcia: remove CS_ error codes alltogether
    pcmcia: deprecate CS_BAD_TUPLE
    pcmcia: deprecate CS_BAD_ARGS
    pcmcia: deprecate CS_BAD_BASE, CS_BAD_IRQ, CS_BAD_OFFSET and CS_BAD_SIZE
    pcmcia: deprecate CS_BAD_ATTRIBUTE, CS_BAD_TYPE and CS_BAD_PAGE
    pcmcia: deprecate CS_NO_MORE_ITEMS
    pcmcia: deprecate CS_IN_USE
    pcmcia: deprecate CS_CONFIGURATION_LOCKED
    ...

    Fix trivial conflict in drivers/pcmcia/ds.c manually

    Linus Torvalds
     
  • Move the set up on ldisc change into the ldisc
    Move the INQ/OUTQ cases into the driver not in shared ioctl code where it
    gives bogus answers for other ldisc values

    Signed-off-by: Alan Cox
    Signed-off-by: Linus Torvalds

    Alan Cox
     

09 Oct, 2008

1 commit


06 Oct, 2008

3 commits


01 Oct, 2008

1 commit


23 Sep, 2008

4 commits

  • smp_mb is enough for ordering memory operations among processors,and mb is
    more expensive than smp_mb for UP machine, so replace it with smp_mb().

    Signed-off-by: Ming Lei
    Acked-by: Marcel Holtmann
    Signed-off-by: Andrew Morton
    Signed-off-by: David S. Miller

    Ming Lei
     
  • The USB transport specification for Bluetooth splits the ACL and SCO
    handling into two separate interfaces. In Linux it possible to probe
    and disconnect these interfaces independently. So make sure that both
    interfaces are tightly bound together.

    This fixes the suspend regression that some people have expierenced.

    Signed-off-by: Oliver Neukum
    Signed-off-by: Marcel Holtmann

    Marcel Holtmann
     
  • The btusb driver contains two typos that result in some buggy behavior,
    but the impact is not immediately visible.

    During initialization the submitting of interrupt URBs might fail and
    then make sure to remove the correct flag and not one of the hci_dev
    flags.

    When closing down the interface make sure to kill the anchor for the
    ISOC URBs and not kill the interrupt URBs twice.

    Also cancel any scheduled work when closing down the interface.

    Signed-off-by: Marcel Holtmann

    Marcel Holtmann
     
  • The newer MacBooks contain a Broadcom based Bluetooth chip and to make
    this work properly, HCI_Reset must be send first. If HCI_Reset is not
    used then a lot of I/O errors show up and its triggers packets from
    non-existent ACL links.

    Signed-off-by: Marcel Holtmann

    Marcel Holtmann
     

22 Sep, 2008

1 commit


23 Aug, 2008

5 commits


18 Aug, 2008

2 commits

  • The Bluetooth entries for the MAINTAINERS file are a little bit too
    much. Consolidate them into two entries. One for Bluetooth drivers and
    another one for the Bluetooth subsystem.

    Also the MODULE_AUTHOR should indicate the current maintainer of the
    module and actually not the original author. Fix all Bluetooth modules
    to provide current maintainer information.

    Signed-off-by: Marcel Holtmann

    Marcel Holtmann
     
  • The new generic driver for Bluetooth USB devices was missing proper
    SCO support. The driver now claims the second interface for these USB
    devices to allow the flow of SCO packets. It also handles switching
    of the alternate setting and re-submission of isochronous URBs.

    The btusb driver is now a full replacement for hci_usb and thus the
    experimental tag has been removed and this driver is promoted as
    preferred one.

    Signed-off-by: Marcel Holtmann

    Marcel Holtmann
     

08 Aug, 2008

2 commits


31 Jul, 2008

1 commit

  • Preface: The "Broadcom" device is on unreleased hardware, so I can't
    disclose the actual model.

    When the Dell 370 and 410 BT adapters are put into BT radio mode, they
    need to be prepared like many other Broadcom adapters.

    Also, add quirk Broadcom 2046 devices with HCI_RESET. Reference for this
    bug: https://launchpad.net/bugs/249448

    Signed-off-by: Michael Frey
    Signed-off-by: Mario Limonciello
    Signed-off-by: Tim Gardner
    Signed-off-by: Ben Collins
    Acked-by: Marcel Holtmann
    Signed-off-by: Andrew Morton
    Signed-off-by: David S. Miller

    Michael Frey
     

21 Jul, 2008

2 commits

  • * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6: (1232 commits)
    iucv: Fix bad merging.
    net_sched: Add size table for qdiscs
    net_sched: Add accessor function for packet length for qdiscs
    net_sched: Add qdisc_enqueue wrapper
    highmem: Export totalhigh_pages.
    ipv6 mcast: Omit redundant address family checks in ip6_mc_source().
    net: Use standard structures for generic socket address structures.
    ipv6 netns: Make several "global" sysctl variables namespace aware.
    netns: Use net_eq() to compare net-namespaces for optimization.
    ipv6: remove unused macros from net/ipv6.h
    ipv6: remove unused parameter from ip6_ra_control
    tcp: fix kernel panic with listening_get_next
    tcp: Remove redundant checks when setting eff_sacks
    tcp: options clean up
    tcp: Fix MD5 signatures for non-linear skbs
    sctp: Update sctp global memory limit allocations.
    sctp: remove unnecessary byteshifting, calculate directly in big-endian
    sctp: Allow only 1 listening socket with SO_REUSEADDR
    sctp: Do not leak memory on multiple listen() calls
    sctp: Support ipv6only AF_INET6 sockets.
    ...

    Linus Torvalds
     
  • Move the line disciplines towards a conventional ->ops arrangement. For
    the moment the actual 'tty_ldisc' struct in the tty is kept as part of
    the tty struct but this can then be changed if it turns out that when it
    all settles down we want to refcount ldiscs separately to the tty.

    Pull the ldisc code out of /proc and put it with our ldisc code.

    Signed-off-by: Alan Cox
    Signed-off-by: Linus Torvalds

    Alan Cox
     

18 Jul, 2008

1 commit


15 Jul, 2008

1 commit

  • Fix bluetooth hci_bcsp Kconfig to avoid build errors:

    drivers/built-in.o: In function `bcsp_prepare_pkt':
    hci_bcsp.c:(.text+0x7e9ac): undefined reference to `bitrev16'
    drivers/built-in.o: In function `bcsp_recv':
    hci_bcsp.c:(.text+0x7f276): undefined reference to `bitrev16'
    hci_bcsp.c:(.text+0x7f293): undefined reference to `bitrev16'
    make[1]: *** [.tmp_vmlinux1] Error 1

    Signed-off-by: Randy Dunlap
    Ackey-by: Marcel Holtmann
    Signed-off-by: David S. Miller

    Randy Dunlap