]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
Bluetooth: btsdio: Do not bind to non-removable BCM43341
authorHans de Goede <hdegoede@redhat.com>
Wed, 29 Nov 2017 19:29:07 +0000 (20:29 +0100)
committerSeth Forshee <seth.forshee@canonical.com>
Thu, 22 Feb 2018 14:18:50 +0000 (08:18 -0600)
commitd5bd09b8dd2a904c2bbbe594d69ccc44c9ab9075
tree5ef2e2079ec0483ef9802e36f2de534759c4b207
parentd0d234c41a827060b48a1eddf408db463ffd369b
Bluetooth: btsdio: Do not bind to non-removable BCM43341

BugLink: http://bugs.launchpad.net/bugs/1751064
commit b4cdaba274247c9c841c6a682c08fa91fb3aa549 upstream.

BCM43341 devices soldered onto the PCB (non-removable) always (AFAICT)
use an UART connection for bluetooth. But they also advertise btsdio
support on their 3th sdio function, this causes 2 problems:

1) A non functioning BT HCI getting registered

2) Since the btsdio driver does not have suspend/resume callbacks,
mmc_sdio_pre_suspend will return -ENOSYS, causing mmc_pm_notify()
to react as if the SDIO-card is removed and since the slot is
marked as non-removable it will never get detected as inserted again.
Which results in wifi no longer working after a suspend/resume.

This commit fixes both by making btsdio ignore BCM43341 devices
when connected to a slot which is marked non-removable.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
drivers/bluetooth/btsdio.c