Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3630486pxb; Mon, 24 Jan 2022 13:57:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJztirtcC44l5ZkcAxfKs7sNaoigPiRfMDNVIJ9CA2pkrnfEeD8lKzVYntxjjNgV4trV8hVp X-Received: by 2002:a17:90a:39c6:: with SMTP id k6mr308127pjf.194.1643061466876; Mon, 24 Jan 2022 13:57:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643061466; cv=none; d=google.com; s=arc-20160816; b=TX/R/JuLEZ9DenqzHFdz1MId3pzg8cxCQZm8PXbdKPTlXrcsXiRRLaBEiVFJ3sxwv+ T6KZqWnqLGjiD4Aj5Z2YYMk65J7laohA/bdMdG/RkTb5RQh8EVP2Q6wlo3Z1QNga9y5c k0dnSbGMuRxya9XLbyYjT1fjOo3PTBNaKakZ5Vu3L/QER8CHUztntAxSTviCHHGMJv6H ZGkTKQl0pyMOJb+cTLayxwoJdnvUcsjD4oucS6UDKlpOib1qenJgzkvnxPIiQ8kb5cBS PJK6da1K64WEghYCRYCqpK8k+Z1woTj5GeLJ9mj6Q4rylPrV5foVeoWbnnYJ3g6MQl4N KGfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=RjdOOzxQyV7yGthe3TAips3jgMOh2J8Bw3IUasjXWKY=; b=pRrMND0xdXTDbh88oTi0UG3khCpB2GQQPX/HdrE1NlWLC5KaEtB1pqvXK4jLLUCGPX +2RzM9nw5V5+y2ENb81fIm0evhML16OYDJ7C/1T1EIRTcWIphnZay0FjeSEIL5t3uoVH stsN0ZXzVBHJuuBY5ZEAGpa8krDi6m2RuejoKagwtpaanasB5icGk82/OANLtQWy0u79 RbzwVmACKG6wZF47V++zcCnQYHsy72NsnZHTY3gQ8lHKcSHN8/xR+XYeG8Hv5lnYFJmD Wjgn+C/vZmr1pu+h+qR3UUJNsmlzfXGrLZl5QG27qPzHenBcZtNfgKCjK2nnbQJCw/Ea vQKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=aLcjjV9E; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l24si14126873pgb.772.2022.01.24.13.57.35; Mon, 24 Jan 2022 13:57:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=aLcjjV9E; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1573550AbiAXVpL (ORCPT + 99 others); Mon, 24 Jan 2022 16:45:11 -0500 Received: from dfw.source.kernel.org ([139.178.84.217]:34266 "EHLO dfw.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1447388AbiAXVKi (ORCPT ); Mon, 24 Jan 2022 16:10:38 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 99897611C8; Mon, 24 Jan 2022 21:10:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 66EA0C340E5; Mon, 24 Jan 2022 21:10:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643058637; bh=kjZCPYkaoD8O3IPDj3N9+OXUTPfaBdFPnZd6whD02Vo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=aLcjjV9Eb3V0gyzOtqv2o6h1mTWwvNsGnMCkfZW5aOdydln5WiKGGTXT20kqMnrog R4BbcgJKLECt2kF1OFmrVuzNJJCLfQ6263NzKegJOM3A/gCRzbN1mvWXNE1yL+Kgja hQL50vyP6iud7r+fbMeTO8wOK+pv2wRlIvvAAIss= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Panicker Harish , Marcel Holtmann , Sasha Levin Subject: [PATCH 5.16 0353/1039] Bluetooth: hci_qca: Stop IBS timer during BT OFF Date: Mon, 24 Jan 2022 19:35:42 +0100 Message-Id: <20220124184137.148309494@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184125.121143506@linuxfoundation.org> References: <20220124184125.121143506@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Panicker Harish [ Upstream commit df1e5c51492fd93ffc293acdcc6f00698d19fedc ] The IBS timers are not stopped properly once BT OFF is triggered. we could see IBS commands being sent along with version command, so stopped IBS timers while Bluetooth is off. Fixes: 3e4be65eb82c ("Bluetooth: hci_qca: Add poweroff support during hci down for wcn3990") Signed-off-by: Panicker Harish Signed-off-by: Marcel Holtmann Signed-off-by: Sasha Levin --- 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 dd768a8ed7cbb..9e99311038ae8 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; + del_timer_sync(&qca->wake_retrans_timer); + del_timer_sync(&qca->tx_idle_timer); + /* Stop sending shutdown command if soc crashes. */ if (soc_type != QCA_ROME && qca->memdump_state == QCA_MEMDUMP_IDLE) { -- 2.34.1