20 Sep, 2016

1 commit


12 Jul, 2016

1 commit


03 May, 2016

1 commit

  • gpiod_get_optional can return either ERR_PTR or NULL pointer.
    NULL case is not tested and then dereferenced later in desc_to_gpio.
    Fix this by using non optional version which returns ERR_PTR in any
    error case (this is not an optional gpio).
    Use the same non optional version for the host-wake gpio.

    Fixes: 765ea3abd116 ("Bluetooth: hci_intel: Retrieve host-wake IRQ")
    Signed-off-by: Loic Poulain
    Signed-off-by: Marcel Holtmann

    Loic Poulain
     

24 Feb, 2016

1 commit


10 Dec, 2015

2 commits


20 Nov, 2015

1 commit


21 Oct, 2015

2 commits


01 Oct, 2015

1 commit

  • There is some unneeded code in "hci_intel" probing. First
    acpi_match_device() call is needless as driver/platform/acpi core code has
    already done the matching before calling the probe and the driver does not
    use the returned pointer to matching _HID other than checking is it NULL.

    Then tree wide grep for "hci_intel" doesn't reveal that there is any code
    registering this platform device so it looks this device is always backed
    with ACPI companion so also ACPI_HANDLE() test can be removed.

    Signed-off-by: Jarkko Nikula
    Signed-off-by: Marcel Holtmann

    Jarkko Nikula
     

17 Sep, 2015

12 commits


29 Aug, 2015

2 commits

  • A platform device can be used to provide some specific resources in
    order to manage the controller. In this first patch we retrieve the
    reset gpio which is used to power on/off the controller.

    The main issue is to match the current tty with the correct pdev.
    In case of ACPI, we can easily find the right tty/pdev pair because
    they are both child of the same UART port.

    If controller is powered-on from the driver, we need to wait for a
    HCI boot event before being able to send any command.

    Signed-off-by: Loic Poulain
    Signed-off-by: Marcel Holtmann

    Loic Poulain
     
  • Implement the set_baudrate callback for hci_intel.
    - Controller requires a read Intel version command before updating
    its baudrate.
    - The operation consists in an async cmd since the controller does
    not respond at the same speed.
    - Wait 100ms to let the controller change its baudrate.
    - Clear RTS until we change our own UART speed

    Manage speed change in the setup function, we need to restore the oper
    speed once chip has booted on patched firmware.

    Signed-off-by: Loic Poulain
    Signed-off-by: Marcel Holtmann

    Loic Poulain
     

23 Jul, 2015

4 commits


08 Apr, 2015

2 commits