Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp15335lqh; Fri, 3 May 2024 11:50:19 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXfy11jMvaz3boDcI8WDN7fk8NG1IzVwiFaKcDDATFqX5Yl1e0dUZVaQ7df7SaMdAvNV+rEv26D/GVYkSM1W7HAT/nKXJvoZGOK4RiTkg== X-Google-Smtp-Source: AGHT+IGkQyLtkf8NPxdizzOPTUUxa9M45rKXy1K7Ewq1iI79w8882Hd02e8lqyoirvgZ7deVlRnk X-Received: by 2002:a05:6512:3d87:b0:51d:2529:7c4d with SMTP id k7-20020a0565123d8700b0051d25297c4dmr3082615lfv.0.1714762218953; Fri, 03 May 2024 11:50:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714762218; cv=pass; d=google.com; s=arc-20160816; b=OurzMZveXJ7/u5xvQ1/19hUmmaNDU+TUzlnZIJ2S3M+L2OzuNmTBS/7q1yQ8Nd5n87 B7rIPCAUscAKyoGpC3w+PNFv4sSopx4ZnVRyPZCzp1oxWpRfiX3FPRf9IrD551/ncmsu jxjSno7DHaQpMxCeOVS9bhPn7hLSMYcThR/8823avUCcDl2fz9j66eDMw/maGPB2cn0K A9wvq7mfHeRYcibEOclidqLMvxlvBOJ/ZKFhMXlML5EiIACVY8tp7CLW/Kt/Of/f6UGN w2r1OO3czRloUwt8+RWl85a+dY7572t/J/NrseMA4t4EDUerjiTMDG9hur9g2v3LdcY6 yedg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=9ObS9//9ExqshI6VNkIWIDdXgOoaGk6p+urWvswiWnU=; fh=FX8AnfuujXkSxiK1KPkhBKitJw2dMC973/TWQaQ1pg0=; b=NVtgAmJ1wnje2OWp3+jHzv6tH6cOfR6LOMjSFUtxc1esl+wRFQ9J6JiTpizkGhLxk0 ZnlekDneEdxDhCvOU16ZGtqlwC7FeiZDziVli7eAkEp04mgLT2Ty323fMRdfrLc8u7Md KJq44li8Noswe9baG3llqS26MKosNff1V0RozyBhLdAKao6tlFdON+Jrx5fOTYWZp+j/ RrKhsYNOuZSIscutWlN7otZzB/Ivn0GukHcriKIJLRNwZ0CZ/mlRtyAbpz6zJ0ZFN1bl lcIbiTS5cT0JUm7G/2xa26qcKHbg9QQ9yBjNEVjY2dIL0griwaPhSUomaQyH7oGAHFWs aAYA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=TjYSNkdr; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-bluetooth+bounces-4300-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-4300-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id s19-20020a170906061300b00a5741f4b33esi1732200ejb.441.2024.05.03.11.50.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 May 2024 11:50:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-4300-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=TjYSNkdr; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-bluetooth+bounces-4300-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-4300-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com 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 81F811F241A3 for ; Fri, 3 May 2024 18:50:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BA2AC12F5B2; Fri, 3 May 2024 18:50:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="TjYSNkdr" X-Original-To: linux-bluetooth@vger.kernel.org Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (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 1F3FE2E646; Fri, 3 May 2024 18:50:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714762213; cv=none; b=D9p0YjrS/rxnunb2ar4bu5Z8biF1C8BvSU8tHnxvw1j3yDc5EAegJ4+O4OfguswVfVeEkprQQd1Lim0H83yI4Zi6G9rPWnT3QxV7rht/aHmxCrWylUsJBSHKez10tj0XiYSVk6UtpyupumvtvpfE7BssFXw/XCNN+R0brlHfKC4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714762213; c=relaxed/simple; bh=T9yyH4IPlUtj52yTqtbjFNMjirTaNG94NKLfYu/p98Q=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=VbBMAC33TnAksL+yX/G0A4YK0IxZ3yc9WJFZsVooOor3gBOW4CWBGVnVOE9Z4iW2zBjHy/CRSXosZpQxbP3/ArqwHyAFaFcG73ZtAr1m7MpH8h4UbyGK9sqXHtm8a6la1KkCeZRfsz/zNxW6FLRQO8nHwanP0nJhjy4papOReSk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=TjYSNkdr; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 443DXVwX018105; Fri, 3 May 2024 18:49:48 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= message-id:date:mime-version:subject:to:cc:references:from :in-reply-to:content-type:content-transfer-encoding; s= qcppdkim1; bh=9ObS9//9ExqshI6VNkIWIDdXgOoaGk6p+urWvswiWnU=; b=Tj YSNkdra9ctYQDTZocCUcjrI6ZgJPyp3L54Mdgw5WpI6Tg0mJO3gEQAvMVPEg05eZ h9EL2pI+91htaTdcewo8vlNHpVzNgx9TjXTv6N4B3lRJOks02s4ytW1SRnA/1X4S su8ymGdaFFCnnJmgSjLaKog4ZhTQ4qsmvRtaWmUT5G4KzXVAjF6CbciBat03wDTZ Q3dE35MoXB9iSKZ80EL5zNIQtYiWGKlrMAn7Hnlae9nNz9lLFMG/PPwAOaGBIXZf aI3GalGAGfa9/jJGatIVFTLkK0xVf7wFMZckgGEZ0f9U4paRXnVAVqJ0GmYD73GG ggaI1blmh3HIIcRuaq2w== Received: from nasanppmta04.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3xvtbpse8j-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 03 May 2024 18:49:47 +0000 (GMT) Received: from nasanex01a.na.qualcomm.com (nasanex01a.na.qualcomm.com [10.52.223.231]) by NASANPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 443Inkvg023488 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 3 May 2024 18:49:46 GMT Received: from [10.253.35.130] (10.80.80.8) by nasanex01a.na.qualcomm.com (10.52.223.231) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Fri, 3 May 2024 11:49:44 -0700 Message-ID: <8f6bc1a8-a1ec-45f1-a951-0ad5a9890cc2@quicinc.com> Date: Sat, 4 May 2024 02:49:42 +0800 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: Krzysztof Kozlowski , , , CC: , , , References: <1714658761-15326-1-git-send-email-quic_zijuhu@quicinc.com> <5e5e869c-da12-4818-837e-55709f0c4db9@kernel.org> Content-Language: en-US From: quic_zijuhu In-Reply-To: <5e5e869c-da12-4818-837e-55709f0c4db9@kernel.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nasanex01a.na.qualcomm.com (10.52.223.231) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: ETf956c8RTAoRrb-gV64_u0EMkNVTx2- X-Proofpoint-ORIG-GUID: ETf956c8RTAoRrb-gV64_u0EMkNVTx2- X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1011,Hydra:6.0.650,FMLib:17.11.176.26 definitions=2024-05-03_12,2024-05-03_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 phishscore=0 spamscore=0 clxscore=1015 mlxlogscore=973 lowpriorityscore=0 impostorscore=0 malwarescore=0 suspectscore=0 mlxscore=0 bulkscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2404010003 definitions=main-2405030131 On 5/3/2024 6:16 PM, Krzysztof Kozlowski wrote: > 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 sent it as v1 to start a new and clean discussion. > I asked already *two times*: > 1. On which kernel did you test it? > 2. On which hardware did you test it? > will provide such info within next commit message. > 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. > are there any other concerns about this patch itself? > Best regards, > Krzysztof >