OSDN Git Service

Bluetooth: hci_qca: Return wakeup for qca_wakeup
authorSai Teja Aluvala <quic_saluvala@quicinc.com>
Fri, 27 May 2022 10:15:43 +0000 (15:45 +0530)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 22 Jul 2022 00:04:14 +0000 (17:04 -0700)
This fixes the return value of qca_wakeup(), since
.wakeup work inversely with original .prevent_wake.

Fixes: 4539ca67fe8ed (Bluetooth: Rename driver .prevent_wake to .wakeup)
Signed-off-by: Sai Teja Aluvala <quic_saluvala@quicinc.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/hci_qca.c

index eab34e2..8df1101 100644 (file)
@@ -1588,7 +1588,7 @@ static bool qca_wakeup(struct hci_dev *hdev)
        wakeup = device_may_wakeup(hu->serdev->ctrl->dev.parent);
        bt_dev_dbg(hu->hdev, "wakeup status : %d", wakeup);
 
-       return !wakeup;
+       return wakeup;
 }
 
 static int qca_regulator_init(struct hci_uart *hu)