Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp1009261lqd; Thu, 25 Apr 2024 03:28:40 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXBRGQ0S3uTisQTICAnonUVsBgTHEHjT2qfY3DNAmBGlTI3X4s4bGUkHoTo4Q0vwtij8nDS9Wu1iBlKGj8VynYLGlaIJUPdOz95/HpsWQ== X-Google-Smtp-Source: AGHT+IHf9VJxADIRyWdt86SG3PptwOcz/DLca0zCc8bwg4z2OvK4rLyElTdG2zQHU8QXUksG5Eq9 X-Received: by 2002:a17:906:1ec9:b0:a55:54ec:a2fe with SMTP id m9-20020a1709061ec900b00a5554eca2femr4278734ejj.29.1714040920564; Thu, 25 Apr 2024 03:28:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714040920; cv=pass; d=google.com; s=arc-20160816; b=vRO7VSeO7OGnSL+XypQPsnqlg1fJPMTcOtdCjM35JMQmhsCZRq3a3FUIdgPBo3vIgC d1xCPssOm5Tq5LcLhU18gMbZa1uH7vUS9uQjWjG3HTHEjNPjioVA0i/w0lzqD4Py7TgR 7F8IS5c/renJlYZClM9pL7Swe/p1y1oMZYa8wekUUU7KSXcEjPY+jSHPomxY4YSLNm2a R4YeE466dZ7LeHMd9oHu6tt0ByWDPufq0AxtQiSdIytdJFj7BO3SVx+RWTUu1Yo9g4qP uhZcZvv1noBeY4EN205ZxP+WgU8URllpBWL14/qAJqtspYE+yc2jNt3vbtCGSYsv6dE7 gEgg== 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=H3fAOW1Nyz0FwV5e3Zk8lZPl5Z//Zw9hkEmwbJ+5fNk=; fh=T3Mzu6lxlXgzmYl7SEZGXGxAYCcM3Us3S+Hddh9vCq4=; b=f1RcgH3xoMrDFhSVV0bBiBMJkOZn59R9Jp/fM4Twwi6+B+OHueYAeWoy1ydMCFQTeB W3PYZ9NQDGx5sObufZMZOJYyQuaF4rMTrv/fXN5/2v0nf/TqmFSjWTGmaqNgdb51hZ5Z 4V47F7lkYwh54I8IOJasC7llL3Hh2TNuxUqRXESqkXc/xYmP0C+34SBcZ5plTTUrSJYI uTsGYsw577L3S0/4JbpYiCwjDGIwxsxmQ5zB+NMphimRXSIEWkgXDkhYW1w6g99+SvBf b4E3I+PkGuLN8y7V+4FWIDPl7ZJf5wHRnOpvr+DjpgUOwKmpeA7DNPxEm3yvPcmJVsfc 0sSQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=hpEgQ2id; 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-4066-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-4066-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 o9-20020a17090608c900b00a52262d7b4esi10188362eje.35.2024.04.25.03.28.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Apr 2024 03:28:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-4066-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=hpEgQ2id; 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-4066-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-4066-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 238AF1F2503D for ; Thu, 25 Apr 2024 10:28:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4B0238664D; Thu, 25 Apr 2024 10:28:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="hpEgQ2id" X-Original-To: linux-bluetooth@vger.kernel.org Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.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 46EAB7FBA3 for ; Thu, 25 Apr 2024 10:28:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714040914; cv=none; b=jri6ruKvwe6/AsJRPtJhDzraOEnmAfsu69jvhaNAcKfXPV3tY70M7IrKqw5BotMqdIOQDN1DKVBtaLbwajiQc2S4aBE4yjVJQ6UfzrN4N1LKTpRUTBU8cX9lr/vQb6RBroF63+ofwgbUN4EPqS3GAXoQ3PlDhrKHOlXRV/G9wDw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714040914; c=relaxed/simple; bh=+O24BpZpOfTOFD3GYh9HCLrZRPBOPLI2tspowlOkP9A=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=A2a044dM01oVKXpYuw+Bd7YzqPaCsVcf4wKTXqJ+zoME1mLGv+ci51Kn56mDBcJLNEw4R61xtDtriMDh0Jap8yHdDKGj8iQ2zs8AoOGilE7MVnt7QhncZJrUkF5jRGTjzU92DUr0DNRtS4efpoAKC1i9qmncjxiiOK+FAfLo0wM= 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=hpEgQ2id; arc=none smtp.client-ip=205.220.168.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 (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 43P8LeFi031659; Thu, 25 Apr 2024 10:28:24 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=H3fAOW1Nyz0FwV5e3Zk8lZPl5Z//Zw9hkEmwbJ+5fNk=; b=hp EgQ2idp9igezPyrsFMfk3o8x1KWwmvG1HYJBoa+0pXXR16xMxFuO/Oe4KO8+4SJP CRivO6wujZRHEXtrb4HZ441HFpVVrhWkY7WuHhFPrIT1GiNrWpEn6k9fY0bPU0bE JYGFqXwbV5IA1IoqyD7+OtF/SeaDPK3HsH2kuMMvvM5X1OCaY6eRMwHaNnQCvXDc HEVgIhqbQSMl/NMhvbvUVQsuhVckuUH/qHY4PMJO+r0W9BBU+5ACwJ1Okib6C3/5 s+DOsPoQjIWSdt9uysHLazziGIQqKtRW3Du5725Xi65cmrW6Xzs6z7rqQuOZsncB tj5UAPf5o1w95I6N9arA== Received: from nasanppmta05.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3xqenh21p0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 25 Apr 2024 10:28:23 +0000 (GMT) Received: from nasanex01a.na.qualcomm.com (nasanex01a.na.qualcomm.com [10.52.223.231]) by NASANPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 43PASNRH026208 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 25 Apr 2024 10:28:23 GMT Received: from [10.253.14.224] (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; Thu, 25 Apr 2024 03:28:17 -0700 Message-ID: <28f245c0-e81c-403b-ae7c-94fbd727998a@quicinc.com> Date: Thu, 25 Apr 2024 18:28:14 +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: Correct property enable-gpios handling logic for WCN6750 and WCN6855 To: Krzysztof Kozlowski , Bartosz Golaszewski , Wren Turkal CC: Krzysztof Kozlowski , , , , , References: <1713947712-4307-1-git-send-email-quic_zijuhu@quicinc.com> <0cba3838-917b-48af-ba8b-2ef60714943a@quicinc.com> <49cf0a3d-5f52-41a1-9858-692f48d06b88@kernel.org> <368e70e0-edc2-44fd-a9a2-72efa0d9f864@linaro.org> Content-Language: en-US From: quic_zijuhu In-Reply-To: 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-ORIG-GUID: L7JvauMb6ux49kqjHne-omcjbKLHyojf X-Proofpoint-GUID: L7JvauMb6ux49kqjHne-omcjbKLHyojf 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-04-25_10,2024-04-25_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 malwarescore=0 impostorscore=0 spamscore=0 priorityscore=1501 mlxscore=0 mlxlogscore=999 bulkscore=0 clxscore=1015 suspectscore=0 phishscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2404010003 definitions=main-2404250075 On 4/25/2024 5:14 PM, Krzysztof Kozlowski wrote: > On 25/04/2024 10:30, Bartosz Golaszewski wrote: >> On Thu, 25 Apr 2024 at 08:30, Wren Turkal wrote: >>> >>> On 4/24/24 11:05 PM, Krzysztof Kozlowski wrote: >>>> On 25/04/2024 00:01, Wren Turkal wrote: >>>>>>> >>>>>>> 3) only care about the case property enable-gpios is not configured, >>>>>>> the original BT driver design logic indeed matches with binging spec's >>>>>>> requirements before bartosz's wrong change >>>>>> >>>>>> What? There is no such case according to bindings. I told you already >>>>>> two times: Either change bindings or this is not valid. >>>>> >>>>> @krzysztof, I'm curious. There is no entry in the binding specifically >>>>> for qca6390. Should there be? >>>> >>>> qca6390 is documented in the bindings, but you are right that it lacks >>>> if:then: entry narrowing/choosing specific supplies and pins. It should >>>> have one, indeed. >>> >>> Would creating an entry for the qca6390 hardware fix the issue you are >>> worried about? >>> >>> Again, sorry for all the, what I assume are, basic questions. I am so >>> far out of my depth here. I am just trying to figure out how to move >>> forward. I really do appreciate your guidance here. >>> >> >> Wren, Krzysztof: I cannot stop you from doing this but I'm afraid this >> will complicate the power sequencing work unnecessarily. The QCA6390 >> PMU bindings I'm proposing[1] are consumers of the BT enable GPIOs. In >> my series I also create an entry for QCA6390 Bluetooth[2] but without >> enable-gpios and with the inputs from the PMU, not host. Please >> consider that if you decide to go with this. > > I don't have a near plan to describe QCA6390 supplies and pins, so don't > worry. I also don't think Qualcomm BT understand what are bindings, so I > don't expect patches from them. > For property enable-gpios of QCA6390, it is optional so not marked as required by the dts spec, dts spec is right, i would like to share history about QCA6390. 1) it was firstly brought-up by Rocky Liao who is the same team as me. e5d6468fe9d8 Bluetooth: hci_qca: Add support for Qualcomm Bluetooth SoC QCA6390 2) for its first product at that time, there are no H/W pin for enable-gpios, so has issue that BT enable failure after warm reboot. so i submitted below commit to solve it. Commit: 7e7bbddd029b ("Bluetooth: hci_qca: Fix qca6390 enable failure after warm reboot") 3) then Krzysztof Kozlowski submitted below commit to solve use-after-free issue but also introduced the regression issue Commit: 272970be3dab ("Bluetooth: hci_qca: Fix driver shutdown on closed serdev") 4) the issue is reported by Wren recently by below link, and i was notified to notice this issue and co-work with you to solve it. https://lore.kernel.org/linux-bluetooth/ea20bb9b-6b60-47fc-ae42-5eed918ad7b4@quicinc.com/T/#m73d6a71d2f454bb03588c66f3ef7912274d37c6f https://bugzilla.kernel.org/show_bug.cgi?id=218726 5) i known the root cause when i saw the issue description and have below formal fix [v7,2/2] and it is verified several times and can solve the issue reported. and the first debugging change included the fix logic. https://patchwork.kernel.org/project/bluetooth/list/?series=847290 6) it does not matter if my fix is not expected, please wait for other good fix. 7) i really don't want to discuss any more since i really talk two much as shown by below link, i will disappear for a short of time. https://lore.kernel.org/linux-bluetooth/1713771497-5733-1-git-send-email-quic_zijuhu@quicinc.com/#t > Best regards, > Krzysztof >