From patchwork Fri May 27 10:15:43 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sai Teja Aluvala X-Patchwork-Id: 576680 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id AED9AC433EF for ; Fri, 27 May 2022 10:16:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350868AbiE0KQJ (ORCPT ); Fri, 27 May 2022 06:16:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49472 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240890AbiE0KQI (ORCPT ); Fri, 27 May 2022 06:16:08 -0400 Received: from alexa-out.qualcomm.com (alexa-out.qualcomm.com [129.46.98.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 87596106A6A; Fri, 27 May 2022 03:16:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1653646567; x=1685182567; h=from:to:cc:subject:date:message-id; bh=JjbnnMSRoLOJod2CWxV4vK/Y2fmBbrZOVMe5g6r53VA=; b=vorBKOXolH+pd6ENe7q1O0mgSGiwVvt9J5Hsxny5z7wYg2MAIezGOHLm DBHSZvlMTlmGMiGat1LBrWL2RokXeBy5AvQBwMtEPmnoLdkJ7U/Faf/Em LwYGopqOf7JLa445Dv3VIZYWt4JbHd5qy3iGTixRaOFpuogsUADUSu1eI I=; Received: from ironmsg07-lv.qualcomm.com ([10.47.202.151]) by alexa-out.qualcomm.com with ESMTP; 27 May 2022 03:16:07 -0700 X-QCInternal: smtphost Received: from ironmsg02-blr.qualcomm.com ([10.86.208.131]) by ironmsg07-lv.qualcomm.com with ESMTP/TLS/AES256-SHA; 27 May 2022 03:16:06 -0700 X-QCInternal: smtphost Received: from hyd-lablnx377.qualcomm.com ([10.204.178.226]) by ironmsg02-blr.qualcomm.com with ESMTP; 27 May 2022 15:45:48 +0530 Received: by hyd-lablnx377.qualcomm.com (Postfix, from userid 4035820) id DB92520F2F; Fri, 27 May 2022 15:45:47 +0530 (IST) From: Sai Teja Aluvala To: marcel@holtmann.org, johan.hedberg@gmail.com, luiz.dentz@gmail.com Cc: mka@chromium.org, linux-kernel@vger.kernel.org, linux-bluetooth@vger.kernel.org, quic_hemantg@quicinc.com, quic_bgodavar@quicinc.com, quic_rjliao@quicinc.com, quic_hbandi@quicinc.com, abhishekpandit@chromium.org, mcchou@chromium.org, Sai Teja Aluvala Subject: [RESEND v1] Bluetooth: hci_qca: Return wakeup for qca_wakeup Date: Fri, 27 May 2022 15:45:43 +0530 Message-Id: <1653646543-349-1-git-send-email-quic_saluvala@quicinc.com> X-Mailer: git-send-email 2.7.4 Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org 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 --- drivers/bluetooth/hci_qca.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)