From patchwork Thu Nov 25 13:17:10 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: pharish X-Patchwork-Id: 518204 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 4367BC433F5 for ; Thu, 25 Nov 2021 13:19:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1355166AbhKYNWp (ORCPT ); Thu, 25 Nov 2021 08:22:45 -0500 Received: from alexa-out.qualcomm.com ([129.46.98.28]:23253 "EHLO alexa-out.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344193AbhKYNUo (ORCPT ); Thu, 25 Nov 2021 08:20:44 -0500 Received: from ironmsg-lv-alpha.qualcomm.com ([10.47.202.13]) by alexa-out.qualcomm.com with ESMTP; 25 Nov 2021 05:17:33 -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; 25 Nov 2021 05:17:31 -0800 X-QCInternal: smtphost Received: from hyd-lablnx229.qualcomm.com ([10.204.179.152]) by ironmsg01-blr.qualcomm.com with ESMTP; 25 Nov 2021 18:47:14 +0530 Received: by hyd-lablnx229.qualcomm.com (Postfix, from userid 2390365) id 81B9D2126C; Thu, 25 Nov 2021 18:47:12 +0530 (IST) From: pharish 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, mcchou@chromium.org, saluvala@codeaurora.org, pharish Subject: [PATCH v1] Bluetooth: hci_qca: Stop IBS timer during BT OFF Date: Thu, 25 Nov 2021 18:47:10 +0530 Message-Id: <1637846230-4798-2-git-send-email-pharish@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1637846230-4798-1-git-send-email-pharish@codeaurora.org> References: <1637846230-4798-1-git-send-email-pharish@codeaurora.org> Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org This change stops IBS timers during BT OFF. Signed-off-by: pharish --- drivers/bluetooth/hci_qca.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/bluetooth/hci_qca.c b/drivers/bluetooth/hci_qca.c index dd768a8..6f44b26 100644 --- a/drivers/bluetooth/hci_qca.c +++ b/drivers/bluetooth/hci_qca.c @@ -1928,6 +1928,9 @@ static int qca_power_off(struct hci_dev *hdev) hu->hdev->hw_error = NULL; hu->hdev->cmd_timeout = NULL; + mod_timer(&qca->tx_idle_timer, 0); + mod_timer(&qca->wake_retrans_timer, 0); + /* Stop sending shutdown command if soc crashes. */ if (soc_type != QCA_ROME && qca->memdump_state == QCA_MEMDUMP_IDLE) {