Bluetooth: Make use of hci_{suspend,resume}_dev on suspend notifier
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Tue, 28 Sep 2021 21:36:51 +0000 (14:36 -0700)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 29 Sep 2021 13:50:14 +0000 (15:50 +0200)
commite1b77d68feea20e59dd9a797e3bc520282cd4b25
tree98134504daf21c18ef3b288aebee647008bf04ec
parent0eb10c0c6d610baa10b6d1f98e2beed0e6393589
Bluetooth: Make use of hci_{suspend,resume}_dev on suspend notifier

This moves code from hci_suspend_notifier to hci_{suspend,resume}_dev
since some driver may handle pm directly using
HCI_QUIRK_NO_SUSPEND_NOTIFIER they would instead call
hci_{suspend,resume}_dev directly and we want that to have the same
behavior regardless of where pm is being handled.

Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/hci_core.c