summary refs log tree commit diff
path: root/drivers
diff options
context:
space:
mode:
authorRolando Roca <rolandor@valvesoftware.com>2023-09-20 14:36:38 -0700
committerChristian Marcheselli <christianm@valvesoftware.com>2023-11-09 10:47:59 -0800
commit69be18f81e69dfa29b0304c956c27a6ccb510e71 (patch)
tree6fea09fc1bfe95b811af940534c0737c39911ea0 /drivers
parent58dc35e5b1636353d8be27c1a30eaf3c584bf917 (diff)
downloadlinux-69be18f81e69dfa29b0304c956c27a6ccb510e71.tar.gz
[Zhongjun.yu][BT]: Added host changes related to the BR/EDR/LE gamepad wake-up.
<Change Type>: FR(Feature Request)

<<< Test Notes >>>
<Test-Proposal>:
1)BT function(power on/restart/connect/disconnect/iop)
2)BT BR/EDR gamepad wakeup function
3)BT BLE gamepad wakeup function
<Stress-Test>: Y
Diffstat (limited to 'drivers')
-rw-r--r--drivers/bluetooth/hci_qca.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/bluetooth/hci_qca.c b/drivers/bluetooth/hci_qca.c
index a345cb5318ba..e7361dfe858a 100644
--- a/drivers/bluetooth/hci_qca.c
+++ b/drivers/bluetooth/hci_qca.c
@@ -1770,7 +1770,8 @@ retry:
 		qca_debugfs_init(hdev);
 		hu->hdev->hw_error = qca_hw_error;
 		hu->hdev->cmd_timeout = qca_cmd_timeout;
-		hu->hdev->wakeup = qca_wakeup;
+		if (device_can_wakeup(hu->serdev->ctrl->dev.parent))
+			hu->hdev->wakeup = qca_wakeup;
 	} else if (ret == -ENOENT) {
 		/* No patch/nvm-config found, run with original fw/config */
 		set_bit(QCA_ROM_FW, &qca->flags);