]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite710d300a8f86ad28c0fbc3686da0f5560e802a1
tree98134504daf21c18ef3b288aebee647008bf04ec
parent2d8646abbc1bd3f628a88ea08dc00042be64edd3
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