From: Sai Teja Aluvala Date: Fri, 27 May 2022 10:15:43 +0000 (+0530) Subject: Bluetooth: hci_qca: Return wakeup for qca_wakeup X-Git-Tag: v6.6.17~6916^2~75^2~56 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bde63e9effd3a6ba384707c62abe46c32d22f665;p=platform%2Fkernel%2Flinux-rpi.git Bluetooth: hci_qca: Return wakeup for qca_wakeup 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 Signed-off-by: Marcel Holtmann --- diff --git a/drivers/bluetooth/hci_qca.c b/drivers/bluetooth/hci_qca.c index eab34e2..8df1101 100644 --- a/drivers/bluetooth/hci_qca.c +++ b/drivers/bluetooth/hci_qca.c @@ -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)