Bluetooth: hci_sync: Rework hci_suspend_notifier
This makes hci_suspend_notifier use the hci_*_sync which can be executed synchronously which is allowed in the suspend_notifier and simplifies a lot of the handling since the status of each command can be checked inline so no other work need to be scheduled thus can be performed without using of a state machine. Signed-off-by:Luiz Augusto von Dentz <luiz.von.dentz@intel.com> Signed-off-by:
Marcel Holtmann <marcel@holtmann.org>
Showing
- include/net/bluetooth/hci_core.h 0 additions, 4 deletionsinclude/net/bluetooth/hci_core.h
- include/net/bluetooth/hci_sync.h 3 additions, 0 deletionsinclude/net/bluetooth/hci_sync.h
- net/bluetooth/hci_conn.c 0 additions, 10 deletionsnet/bluetooth/hci_conn.c
- net/bluetooth/hci_core.c 12 additions, 94 deletionsnet/bluetooth/hci_core.c
- net/bluetooth/hci_event.c 53 additions, 18 deletionsnet/bluetooth/hci_event.c
- net/bluetooth/hci_request.c 0 additions, 237 deletionsnet/bluetooth/hci_request.c
- net/bluetooth/hci_sync.c 278 additions, 16 deletionsnet/bluetooth/hci_sync.c
- net/bluetooth/mgmt.c 1 addition, 38 deletionsnet/bluetooth/mgmt.c
- net/bluetooth/msft.c 292 additions, 217 deletionsnet/bluetooth/msft.c
- net/bluetooth/msft.h 11 additions, 4 deletionsnet/bluetooth/msft.h
Please register or sign in to comment