Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp349486pxb; Tue, 2 Feb 2021 06:52:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJx6R8sihdBnO26IEI3WcyHwxgwAWGJIHhzKRJX3BhvdORyiK6PW5FtZuRdT8E+GBt3toN1O X-Received: by 2002:aa7:d817:: with SMTP id v23mr1241764edq.192.1612277557592; Tue, 02 Feb 2021 06:52:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612277557; cv=none; d=google.com; s=arc-20160816; b=KMiMDQu+IsaBVbMfH2sD1YRew7FpF2RBqIKePpNEIjk8Mob9jpVBQ6qGqRkjEhPLjn qDXzgjkwHW18qmAGTNIzTxmvyNf7nx9AoQan2Cxw+BBluF9holiZr8hXU9VuYMku6is0 ZojZHuDYxPertcPMYGCytbFOEHFUmHW1jwv0P0ua+AFXRBlqGPRPyGaC6Oh1OgW1qJL5 izdOkXWrf/NL9zM/FMW580dSz8MIKDq0DfUxNwONz8wLgMNn+Bic8sYCNBfn4tlXsoz/ J36nBM72OOQSl3PLbSGWzFwyusJXYvFFulWO3ZF+mUUNAGMJ7IhDoRrYbpa600F6AdML oMwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=M9Lto3Fnvcgt6SbrGqQRXb5DBdvckvJwcnTqG0Eg7oo=; b=KBxeSwZ13AB3nxR/rVuRRahxXwQAX+26CZ1FT+k5lZM4eHUjQsvvi4rzsDN8SQyOmM 0R0AV6QH4sXlnBBKE1bqNT7xGMBE/ON2GZtpE9vWcB46nYmYJ+mZx40h0srR6NtZ1Zzy wm3btwdSdeO8se+4sTZ/x8Plj4R2TZDbnkQahBWqVpHkhzzswFoFPg+V3wbApA6yyqMc rJ/3gBqKNuj5NgUXc5ojnEriFGnBpUnZ4U4v5O7C2tPgI8yU1wz0r5wL9kWMMemy3RhL C9GdpST2s8pqNJIZYNwVV2bu0L8urPE8la71T99R2WOjUJ+x2Tq+m5F8IlgI6FtSXJGP cRnQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e17si12332889ejr.533.2021.02.02.06.51.52; Tue, 02 Feb 2021 06:52:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234599AbhBBOre (ORCPT + 99 others); Tue, 2 Feb 2021 09:47:34 -0500 Received: from alexa-out.qualcomm.com ([129.46.98.28]:50648 "EHLO alexa-out.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232227AbhBBOqS (ORCPT ); Tue, 2 Feb 2021 09:46:18 -0500 Received: from ironmsg08-lv.qualcomm.com ([10.47.202.152]) by alexa-out.qualcomm.com with ESMTP; 02 Feb 2021 06:45:34 -0800 X-QCInternal: smtphost Received: from ironmsg02-blr.qualcomm.com ([10.86.208.131]) by ironmsg08-lv.qualcomm.com with ESMTP/TLS/AES256-SHA; 02 Feb 2021 06:45:33 -0800 X-QCInternal: smtphost Received: from gubbaven-linux.qualcomm.com ([10.206.64.32]) by ironmsg02-blr.qualcomm.com with ESMTP; 02 Feb 2021 20:15:09 +0530 Received: by gubbaven-linux.qualcomm.com (Postfix, from userid 2365015) id EB59521DF9; Tue, 2 Feb 2021 20:15:08 +0530 (IST) From: Venkata Lakshmi Narayana Gubba To: marcel@holtmann.org, johan.hedberg@gmail.com Cc: mka@chromium.org, linux-kernel@vger.kernel.org, linux-bluetooth@vger.kernel.org, hemantg@codeaurora.org, linux-arm-msm@vger.kernel.org, bgodavar@codeaurora.org, rjliao@codeaurora.org, hbandi@codeaurora.org, abhishekpandit@chromium.org, Venkata Lakshmi Narayana Gubba Subject: [PATCH v1] Bluetooth: hci_qca: check for SSR triggered flag while suspend Date: Tue, 2 Feb 2021 20:15:07 +0530 Message-Id: <1612277107-12163-1-git-send-email-gubbaven@codeaurora.org> X-Mailer: git-send-email 2.7.4 Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org QCA_IBS_DISABLED flag will be set after memorydump started from controller.Currently qca_suspend() is waiting for SSR to complete based on flag QCA_IBS_DISABLED.Added to check for QCA_SSR_TRIGGERED flag too. Signed-off-by: Venkata Lakshmi Narayana Gubba --- drivers/bluetooth/hci_qca.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/bluetooth/hci_qca.c b/drivers/bluetooth/hci_qca.c index 17a3859..ff2fb68 100644 --- a/drivers/bluetooth/hci_qca.c +++ b/drivers/bluetooth/hci_qca.c @@ -2111,7 +2111,8 @@ static int __maybe_unused qca_suspend(struct device *dev) !test_bit(QCA_SSR_TRIGGERED, &qca->flags)) return 0; - if (test_bit(QCA_IBS_DISABLED, &qca->flags)) { + if (test_bit(QCA_IBS_DISABLED, &qca->flags) || + test_bit(QCA_SSR_TRIGGERED, &qca->flags)) { wait_timeout = test_bit(QCA_SSR_TRIGGERED, &qca->flags) ? IBS_DISABLE_SSR_TIMEOUT_MS : FW_DOWNLOAD_TIMEOUT_MS; -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation