Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp1679346lqm; Fri, 3 May 2024 03:16:38 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW3m4tpGckBSU3coqFJQVjlhnUaPqPLHY5fHoP9u1YpaIrpo6ttsTam1BCHRoyIrsIqjkNNFQprD7aQ7hkur5rZiCIPrPyLe2l5/KQmVw== X-Google-Smtp-Source: AGHT+IFFcN9koh5a76ayybATERuUGuIZ6qIM4XCKAvhYWdXkjeFQKOqpC1K1gzkSoDq1V6l2tD3h X-Received: by 2002:a05:620a:4687:b0:792:7d57:3b2b with SMTP id bq7-20020a05620a468700b007927d573b2bmr1764154qkb.1.1714731398498; Fri, 03 May 2024 03:16:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714731398; cv=pass; d=google.com; s=arc-20160816; b=xFlKrwTVkRaz+BkY1DyCJ5qcAjEVbfAD7OmJ9MHxqATicfCra3WLRWPhlOe9g50hU0 msItNJeh8xG7b8iNQde/yfW4nxUB0GvyZoRFpLvo88EFwMBBtAsJsQ/1PnDMVW6+X95Q b6XajlNUDcOK8NjkZ6aXxR4ODyX1EPRXTSnDBuENO7drbK27Uu5FOtul7AcP1CJHG8JD SdKavHpVjkBXaDsWWGLrSUJwrejoAVd1KRRAltmCDqtXIQl5WgtTR3QMfjY6/JPGzYsg gYTct9zQ3EPJtBthGG6ZCbIGXPjfsYso6XGXnzK+D0Wvc6vlfrWin31PTGTSI3sXrqfF LHLA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :from:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=Ma+YWUxTA7PtDSlhSkl6Oou6CL01YRtN8DrP/FaiB6Q=; fh=RSVqLX/t8A/0htiUkV/RoDB6RJNHcbHquWW05/LRpoI=; b=pZgrPloWnm2lKcOL+zM3S7IZL+qrGg2EwIoX7AdGTB40Ak5Frhreww3jVaUoxqjbMc XqWt0a15/i/jxNC0JZKYTAiM0Cm0nLI2C4UchJXq5BTfdHdWdIqFvXVuV4yPQaZmG3mm zXYx8yX/HX8RS/0ahezzUpBZx7fl+FuHyUDc5d4iqH+7vR97BqQbbAMvwi/sYKz2MmEN 5P9FuXmQ3qht3FcFp6/84LX5EInMGsK0Q5htXnrt+PbfYVAf7E6qQI9cwCJqd5w98HHF N6yX4DdR1YbHfd406Hkw1StaUL082Y5Ic0S0G1j9Nbo/wWo5Qu9ip0nc15SbFpgaci/n NFsQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hLbmDHu8; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-bluetooth+bounces-4291-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-4291-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id yf13-20020a05620a3bcd00b0078eba18c1e5si2776234qkn.705.2024.05.03.03.16.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 May 2024 03:16:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-4291-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hLbmDHu8; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-bluetooth+bounces-4291-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-4291-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 37DBF1C2132D for ; Fri, 3 May 2024 10:16:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2A03A14F9FE; Fri, 3 May 2024 10:16:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="hLbmDHu8" 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 7A75214A601; Fri, 3 May 2024 10:16:30 +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=1714731391; cv=none; b=s0p0UCqUfkPojXqDpM+P4mM3AlU0YAfr9kQZ0ZMeewhmEdSfHttUIyNtB2PRRPctlKuY5HINJJ+yxRYEdgGZGPHucOHMTMbb1VW6BzB+8kMax9Gwq0HLu0uv656MXXEGQXLAD3+c7ZZ8VJvMUkYs2K6C4KUnWYZH6SHDNdIzY3I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714731391; c=relaxed/simple; bh=wtlmcuZsCA9WAT4fHTQYQoRXVnjiIwUUtJ7qWUmtrfk=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=XpyWdWgk9G5pdypkhn0pAeswgsAX6rDO8VYLVg4rHnHBdYE4PfRZmDaX//vXGN4mT0hJ9nbLrd0zQxqj30ElUlMfranpf71EmYEMXCP0bbsFjmtget9I30YDSDReO2U2yGTh1YQ2SPkX9L5UdBAKxGvbKmv7Sr4/BYQQwbXzNl0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=hLbmDHu8; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 08891C116B1; Fri, 3 May 2024 10:16:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714731390; bh=wtlmcuZsCA9WAT4fHTQYQoRXVnjiIwUUtJ7qWUmtrfk=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=hLbmDHu8i3zhYl1M+Pe0gdP6DtX89oaCBFc9emphRo0Rzm17IfsjUke1+wm9zPFcA EXC/bfHkdjC1k2FuBmNOrEsoajm4jHNep8uFH6x/UP+mZHTJnZDeAtLad7MUIeuZkT auCqL31SKFzH2TdtjEXjiVLoD6fmE/sPDwMX+2sc9i4sn2AAcWQqbTPaHHJC18i7Hc zpZGHVv1tWSxf93j3UCRbjoO8a85E7uQNM3n6AV5Hgmm+0k8jNBk0d6tdYwT49DohM ef0/JvyGGaWwdZshSt+kdZuA/Z6rRq09M4mWCaQgohMa3a+N5WMP2oOAtgZx1ISgQ0 FynLUVT1OjcdA== Message-ID: <5e5e869c-da12-4818-837e-55709f0c4db9@kernel.org> Date: Fri, 3 May 2024 12:16:25 +0200 Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v1] Bluetooth: qca: Fix BT enable failure again for QCA6390 after warm reboot To: Zijun Hu , luiz.dentz@gmail.com, luiz.von.dentz@intel.com, marcel@holtmann.org Cc: linux-bluetooth@vger.kernel.org, wt@penguintechs.org, regressions@lists.linux.dev, stable@vger.kernel.org References: <1714658761-15326-1-git-send-email-quic_zijuhu@quicinc.com> From: Krzysztof Kozlowski Content-Language: en-US Autocrypt: addr=krzk@kernel.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8/6CBVjEWqD06/RjI2AnjIq5fSEH/BIfXXfC68nMp9BZoy3So4ZsbOlBmtAPvMYX6U8VwD TNeBxJu5Ex0Izf1NV9CzC3nNaFUYOY8KfN01X5SExAoVTr09ewARAQABzSVLcnp5c3p0b2Yg S296bG93c2tpIDxrcnprQGtlcm5lbC5vcmc+wsGVBBMBCgA/AhsDBgsJCAcDAgYVCAIJCgsE FgIDAQIeAQIXgBYhBJvQfg4MUfjVlne3VBuTQ307QWKbBQJgPO8PBQkUX63hAAoJEBuTQ307 QWKbBn8P+QFxwl7pDsAKR1InemMAmuykCH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= In-Reply-To: <1714658761-15326-1-git-send-email-quic_zijuhu@quicinc.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 02/05/2024 16:06, Zijun Hu wrote: > 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@vger.kernel.org > Reported-by: Wren Turkal > Closes: https://bugzilla.kernel.org/show_bug.cgi?id=218726 > Signed-off-by: Zijun Hu > Tested-by: Wren Turkal > --- > drivers/bluetooth/hci_qca.c | 5 ++--- I don't think this is v1. Version your patches properly and provide changelog. I asked already *two times*: 1. On which kernel did you test it? 2. On which hardware did you test it? I am not interested in any replies like "I wrote something on bugzilla". I am really fed up with your elusive, time-wasting replies, so be specific here. Best regards, Krzysztof