diff options
| author | Hans de Goede <[email protected]> | 2021-09-20 12:57:39 +0000 |
|---|---|---|
| committer | Marcel Holtmann <[email protected]> | 2021-09-24 09:35:53 +0000 |
| commit | 9a9023f314873241a43b5a2b96e9c0caaa958433 (patch) | |
| tree | eb646403045ce3e0941a19901358cf60b6dc079f /net/bluetooth/hci_request.c | |
| parent | Bluetooth: hci_core: Move all debugfs handling to hci_debugfs.c (diff) | |
| download | kernel-9a9023f314873241a43b5a2b96e9c0caaa958433.tar.gz kernel-9a9023f314873241a43b5a2b96e9c0caaa958433.zip | |
Bluetooth: hci_h5: Fix (runtime)suspend issues on RTL8723BS HCIs
The recently added H5_WAKEUP_DISABLE h5->flags flag gets checked in
h5_btrtl_open(), but it gets set in h5_serdev_probe() *after*
calling hci_uart_register_device() and thus after h5_btrtl_open()
is called, set this flag earlier.
Also on devices where suspend/resume involves fully re-probing the HCI,
runtime-pm suspend should not be used, make the runtime-pm setup
conditional on the H5_WAKEUP_DISABLE flag too.
This fixes the HCI being removed and then re-added every 10 seconds
because it was being reprobed as soon as it was runtime-suspended.
Fixes: 66f077dde749 ("Bluetooth: hci_h5: add WAKEUP_DISABLE flag")
Fixes: d9dd833cf6d2 ("Bluetooth: hci_h5: Add runtime suspend")
Signed-off-by: Hans de Goede <[email protected]>
Reviewed-by: Archie Pusaka <[email protected]>
Signed-off-by: Marcel Holtmann <[email protected]>
Diffstat (limited to 'net/bluetooth/hci_request.c')
0 files changed, 0 insertions, 0 deletions
