Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp193371lqd; Tue, 23 Apr 2024 21:41:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVfsUnlzzwfobu4QS9BiuhsEQiM4skX7rRtFj5qGunLGpPuTbLf0y8Lmv8eQO28YdziIa0sYlh54v0mZS3yl7/YFyWt1onDgx6n5bPqHg== X-Google-Smtp-Source: AGHT+IFqCYgHAFfndDiK96E+8sZisQiBtlWMJ2Yc2ZNfUq6G92LenT3nfKEaNw/ugrFt+/qfJUHW X-Received: by 2002:a17:906:c7c7:b0:a55:690f:121e with SMTP id dc7-20020a170906c7c700b00a55690f121emr1171610ejb.30.1713933713266; Tue, 23 Apr 2024 21:41:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713933710; cv=pass; d=google.com; s=arc-20160816; b=yR03iAjtXnvWbanHJJ/N+zByK65/Vu9bh91imbJq914e3KSHbwoT2IYagQ5Q+OU0qE Sxs/go4mYdZmPx1Jm9sOteoGPLhEw3FVFg9eFuq8OkzSaul//Tj5s/xZBHKFrznLO9wX ChCnCo6JmnZSShwUXix6+qxHpBkT1HbcyzNxlT1Edz0gYOWhwP4DtEdhgt3eTcLJZp6c O1R77I5EyJKhhxUw5pzyKCESTUzrSKtZ+qbp5y+I1QcUV8WruUPFiJS6H84cGC5zYor5 4AAW/KYUAgrl+bYhIFRH0lJYdx6Bun2ZdfpbeL1Uiur9YaCXPmeDHiyEOucK/bfZR9Ls xThA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=es4zbxwGaR9KedWdJAV90KM1yVxa72Eb4FOvevugw4c=; fh=2kyb+m+eVPRzzozQWfNIY2zbT8Q0GM5wtssOUNk8OIo=; b=LYWnOBNadwHF1ZcoMAb1vLTeek38lbuJKSAcC3OvSU77oaUIBOkJIc8EowLYUhjL6P AdG4FM/MWijCa8mm9edGIm0INj6EeXV87M5Yv+Qekn6L6XBtA+Yhh3dIVyX0a8PuhSNv glvbpYaFzNRvL+9J6qfT9ZOVFgMPtY3nCc5jFpET8dYVrOMF0JKD8FT8K5/3mbq9GrIp pXSxu4U87NoVYDRouFyh2PHGY5F0/xawQUoi3S+cgCqJjPY8BUSjO5w6vsEextjyF+4d sWJqO9UJZLQmgTpKYwy8OiKZmwJn5uT8WMJqI+aOcqN0gj4qZ9IGps4FOtApJhK1OhtX +YkA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=fCBHXk1U; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-bluetooth+bounces-3934-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-3934-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id n3-20020a170906118300b00a554391f17esi7619084eja.800.2024.04.23.21.41.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Apr 2024 21:41:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-3934-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=fCBHXk1U; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-bluetooth+bounces-3934-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-3934-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 82ABD1F25768 for ; Wed, 24 Apr 2024 04:34:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 53364152DE5; Wed, 24 Apr 2024 04:34:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="fCBHXk1U" X-Original-To: linux-bluetooth@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A8F1C28EB; Wed, 24 Apr 2024 04:34:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713933293; cv=none; b=ORbXI28VDCGGq4LfcA+d9eO+Alq2ZmlkdhrarobCzX6tW3FdH50eoUBYcZ27rm3E0wM6kf0/BFKbbUFf09gjez8MvFtj+IJIJUvjpRKb9Ae+0OWCs5Y+HJUfbqMkjWAp/Lq+6aj9/f2XbCx7O+hD2E8QV4U/uOj/mrDSCmyWZik= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713933293; c=relaxed/simple; bh=RqvuXJw1Gq+4bHe1D+BOkeGEle15EYqoiQqWYPZZ96U=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=mQ9+rdtFU31C/stfkTP3wIvHuAigK/+A0MaEgnsQ8CqO2C88vnWb25or0uz6lIgyapC/ir5p/dMjHnnBjGWyh6S8GBllizWkAc95VtLh/1oIV1QQ+Vf8C42HE5K+LkhaCDV+JyQsPerO47AY3ikzupmJSyQQxwpVw7eWBMYOKzM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=fCBHXk1U; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2182EC113CE; Wed, 24 Apr 2024 04:34:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1713933293; bh=RqvuXJw1Gq+4bHe1D+BOkeGEle15EYqoiQqWYPZZ96U=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=fCBHXk1UAA2q4X7nNCR7LUY6cZfDeLFe1pTyet/FhnOgsTtKiJM8bF9bUECztn/dj NbMM/V/ksmOl3EjV+qc/Zo97vfPgE9zM4kPU1L/LCSYucZbLpNdSduUVnYwojP9AM+ ks1oD6z55+cn+sUD9rxt3y02ckzPjbbtJp6G3jFw= Date: Tue, 23 Apr 2024 21:34:43 -0700 From: Greg KH To: Zijun Hu Cc: luiz.dentz@gmail.com, luiz.von.dentz@intel.com, marcel@holtmann.org, linux-bluetooth@vger.kernel.org, bartosz.golaszewski@linaro.org, krzysztof.kozlowski@linaro.org, wt@penguintechs.org, regressions@lists.linux.dev, kernel@quicinc.com, stable@vge.kernel.org Subject: Re: [PATCH v7 2/2] Bluetooth: qca: Fix BT enable failure for QCA6390 after disable then warm reboot Message-ID: <2024042330-boat-launch-aaec@gregkh> References: <1713932807-19619-1-git-send-email-quic_zijuhu@quicinc.com> <1713932807-19619-3-git-send-email-quic_zijuhu@quicinc.com> Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1713932807-19619-3-git-send-email-quic_zijuhu@quicinc.com> On Wed, Apr 24, 2024 at 12:26:47PM +0800, Zijun Hu wrote: > From: Zijun Hu > > Commit 272970be3dab ("Bluetooth: hci_qca: Fix driver shutdown on closed > serdev") will cause below regression issue: > > BT can't be enabled after below steps: > cold boot -> enable BT -> disable BT -> warm reboot -> BT enable failure > if property enable-gpios is not configured within DT|ACPI for QCA6390. > > The commit is to fix a use-after-free issue within qca_serdev_shutdown() > during reboot, but also introduces this regression issue regarding above > steps since the VSC is not sent to reset controller during warm reboot. > > Fixed by sending the VSC to reset controller within qca_serdev_shutdown() > once BT was ever enabled, and the use-after-free issue is also be fixed > by this change since serdev is still opened when send to serdev. > > Fixes: 272970be3dab ("Bluetooth: hci_qca: Fix driver shutdown on closed serdev") > Cc: stable@vge.kernel.org That is not a valid email address :(