Bluetooth: btusb: add callback function in btusb suspend/resume
authorChris Lu <chris.lu@mediatek.com>
Thu, 4 Jul 2024 06:01:12 +0000 (14:01 +0800)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Mon, 15 Jul 2024 14:11:44 +0000 (10:11 -0400)
commit95f92928ad2215b5f524903e67eebd8e14f99564
treecd50ebe5f79dc5d2e152a8718badaddd589e2f9c
parentd3e6236053958a8f1c7c7a885d9cecdd383e4615
Bluetooth: btusb: add callback function in btusb suspend/resume

Add suspend/resum callback function in btusb_data which are reserved
for vendor specific usage during suspend/resume. hdev->suspend will be
added before stop traffic in btusb_suspend and hdev-> resume will be
added after resubmit urb in btusb_resume.

Signed-off-by: Chris Lu <chris.lu@mediatek.com>
Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
drivers/bluetooth/btusb.c