summaryrefslogtreecommitdiff
path: root/drivers/bluetooth/btbcm.c
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2018-10-30 16:17:23 +0300
committerMarcel Holtmann <marcel@holtmann.org>2018-12-19 02:49:33 +0300
commit8589086f4efd5756d20cedd844b865e5d20164ec (patch)
tree38ee30a7d66ade09b265696abfa55c89f6f372bf /drivers/bluetooth/btbcm.c
parent28a75e4c813c7ae7de5b4baf4c29369769247cc6 (diff)
downloadlinux-8589086f4efd5756d20cedd844b865e5d20164ec.tar.xz
Bluetooth: hci_h5: Turn off RTL8723BS on suspend, reprobe on resume
On many devices the RTL8723BS device gets reset during suspend/resume, causing it to lose its firmware and all state. Testing has shown it drops back to communicating at 115200 bps and sends sync-request packages, indicating it has been fully reset. This commit fixes this by queueing a reprobe on resume. This mirrors how USB RTL BT devices, which have the same problem, are handled in the btusb driver, there we set the USB_QUIRK_RESET_RESUME for all RTL devices, which also causes a reprobe on resume. The only difference is that here we need to do the reprobe ourselves. Since we are doing a full reprobe on resume now, we can also turn off the device on suspend to save power while suspended. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'drivers/bluetooth/btbcm.c')
0 files changed, 0 insertions, 0 deletions