Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3658989pxb; Mon, 24 Jan 2022 14:40:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJxSmq61Aqav3Z9Vyuh/1EOd15sIuuimL5uGmyCo1GQF9OMWB7jpXZFOGdTVH2CgM1uPCZeY X-Received: by 2002:a17:90b:1e53:: with SMTP id pi19mr432938pjb.29.1643064004932; Mon, 24 Jan 2022 14:40:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643064004; cv=none; d=google.com; s=arc-20160816; b=o02Su10Q3EczcmIuBdJKYUUCq8pKHRyxpmIOlLChjLX1V32/A5TLDba1q/vQgMeAi3 /RitaNkcdozexxEuzCQtqesy7+IiHEB+vgu0MtibyiXIQ5GKHVE4VeN4gN8Fba25QANN OKWBmuFzqj22t6hQRuZAPB4qR2/eRb32BjIW7JNAKvB6szQsWLyH8DDjFNuqY0rpPoa8 xE6knINf+nOoj5i3juI4DTjcSd9jOTYwA1OdaEienx8LPE+JJkDLCR1z/VdxwV5WJsqE jtJFKZcKjxU0AhpTHScBxzJdsP5BSlCMfBGBfvLPndo5xeSscDdGTlQajQeMpUIaXuMj HnoA== 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=smtYWHVW1mO6S4+qxQ+4X0u5ZFXgyBZwJgK5ByM9ft4=; b=TaVopNTDVeOT4gdxK/MMwyoq20mL7ljvrQu74JiSa2rnhB5Y6eXkvEd152eyw8tFDv tukPzfbmxkzHSAYUQPZ2GkUQItYfFw8Mt5OPWUK8xsVusiUhnLfsCVMtxpV83UbgckZN AnDLW3Uv2TNcn5muAY4uC79BgDWxOJe1Hxnjik4EyE/6+C9KoTyNsqNKRURZAGsq1+5k hUNQC9L0KTW7iTg+lqiWQP/Kw/zGDDI0Zc1gD18OIxcDG8qJujjPPCnqKZ0RiZPcLBkT PWGdJCkHYFaLoo1okLHFaKS+AYPzMINZy3VjavclaW+4cfC+iI1nymOk5ep4uCVYj2xV pZAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=nffYg3gI; 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 me15si649507pjb.98.2022.01.24.14.39.53; Mon, 24 Jan 2022 14:40:04 -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=nffYg3gI; 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 S1835035AbiAXWf2 (ORCPT + 99 others); Mon, 24 Jan 2022 17:35:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55820 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1456654AbiAXVjo (ORCPT ); Mon, 24 Jan 2022 16:39:44 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3B27DC0419C4; Mon, 24 Jan 2022 12:26:12 -0800 (PST) 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 ams.source.kernel.org (Postfix) with ESMTPS id 01D42B811F9; Mon, 24 Jan 2022 20:26:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 003D2C340E5; Mon, 24 Jan 2022 20:26:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643055969; bh=VGIkT8JLELxZFrOomgUDtxo9zPRY+QxiAo2uv+JBIW8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nffYg3gI5D9OTfbkOQpR+veEEyeIvzVRy3i//W0X9L9s598J3SAxEvUqEuvmuPOzj sr/viwpFz1eO/+z3W799nNSJ1xwUpsF8w7NLLXh6qd43C4l2xDXPpzlQpsESJNAYiJ zSCsS58gEN0EAQyVZ0XZGENM7krtExeOfyAiQlW4= 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.15 293/846] Bluetooth: hci_qca: Stop IBS timer during BT OFF Date: Mon, 24 Jan 2022 19:36:50 +0100 Message-Id: <20220124184111.033095201@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184100.867127425@linuxfoundation.org> References: <20220124184100.867127425@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 53deea2eb7b4d..3c26fc8463923 100644 --- a/drivers/bluetooth/hci_qca.c +++ b/drivers/bluetooth/hci_qca.c @@ -1927,6 +1927,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