Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp357702pxb; Tue, 2 Feb 2021 07:03:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJzS7XG/G8UsY8GvqHY8OLW+i/F3A+Eb2OIIZJGfimpdginv3xXDH1rbTDx4Xu/v3z11jT/7 X-Received: by 2002:a05:600c:24e:: with SMTP id 14mr4062385wmj.87.1612278237780; Tue, 02 Feb 2021 07:03:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612278237; cv=none; d=google.com; s=arc-20160816; b=Q+ge6Pt7oHxkE8p4YdaBTYcrlN6H3rUwjxw69p69VFrztMpYhL/80uTYIqR6i6c1wE NfyD/JkFllF8pJKhzHSpoS7+/RwKC2FBj93x85ecrfx1G5MkIfYUhVYaKzZaRKm0GE9p oECrAUE+MlxLVI+FAAH06aZ3UbIlqQ6WyMi3iv7xFneEQtoWaYkdXY/Hr+FZHH8yy1XK Np/MzuMctmX+maJq8Q+0C/xgznH61fwycHXb4oDPFKt4wBspOJlnocfjq99hh/w49yV2 K/v9kqJSVEPq4Orj3ARpUxi8YFARVUvrxkHIwFK9sTPvcrmHMAsfjVUEaKd3Zhr17CWl PJpg== 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=lRFojwtS+B3OwtraKGnPIPrYfnkR9GG0eK+haTuyiII=; b=WjNXiqGnS4YeS4p11tAh1g53l/ZGTJB1NJCMQ85dbrPnr2MGBvUzePFieR1qdDtgv3 nZpDQTmG5X55eXmn1o1dkAie4e2AOKbqSduRdCn9FkhNuUJzGa9/0AftAUMA8I/pIKLH xmoBHo8F/p5jK5yrQiaM9+C1oR9X4LDw0sgZXhudRuxxEUDwiEN1c7CRf/pY8TJgl+Zm 7RDB0ExB/ivqU0lusL2Ccxkc9sArcfuKUGgWgO/2kFRcbieUE+QR/Ri320neG8Upav+j mgmQsCMlcKvX9NpKDHzEBgP7+0x/yPk2Yid26CWNeB+tvaNSYR/0G0/RgiGKih5GTDnT jZKA== 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 x19si11791637edd.134.2021.02.02.07.03.07; Tue, 02 Feb 2021 07:03:57 -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 S234950AbhBBO7Q (ORCPT + 99 others); Tue, 2 Feb 2021 09:59:16 -0500 Received: from alexa-out.qualcomm.com ([129.46.98.28]:34126 "EHLO alexa-out.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234957AbhBBO6u (ORCPT ); Tue, 2 Feb 2021 09:58:50 -0500 Received: from ironmsg-lv-alpha.qualcomm.com ([10.47.202.13]) by alexa-out.qualcomm.com with ESMTP; 02 Feb 2021 06:58:10 -0800 X-QCInternal: smtphost Received: from ironmsg01-blr.qualcomm.com ([10.86.208.130]) by ironmsg-lv-alpha.qualcomm.com with ESMTP/TLS/AES256-SHA; 02 Feb 2021 06:58:08 -0800 X-QCInternal: smtphost Received: from gubbaven-linux.qualcomm.com ([10.206.64.32]) by ironmsg01-blr.qualcomm.com with ESMTP; 02 Feb 2021 20:27:45 +0530 Received: by gubbaven-linux.qualcomm.com (Postfix, from userid 2365015) id 7F5C921DF9; Tue, 2 Feb 2021 20:27:44 +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 v2] Bluetooth: hci_qca: check for SSR triggered flag while suspend Date: Tue, 2 Feb 2021 20:27:42 +0530 Message-Id: <1612277862-13022-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. Fixes: 2be43abac5a8 ("Bluetooth: hci_qca: Wait for timeout during suspend") 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