Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp351225lqd; Wed, 24 Apr 2024 04:35:54 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXt/OAVG6EQUfZgWNhkPMK0baGfS+Z+FqqZ34NitkaQWCugqrEmEhVzU/4Y7T9OMRAvHJK5qnYVAM8WTIwKCiPMlTNqkIYpeHywm7DzUA== X-Google-Smtp-Source: AGHT+IFcSyrr2iwtM5KgpKy8wo2Hd48Ul4T02t/g9L0R3agUE2Ij4uOKTX30QZUrwrh/Dm/bOWaw X-Received: by 2002:a0c:fe0e:0:b0:6a0:9371:9eea with SMTP id x14-20020a0cfe0e000000b006a093719eeamr1909288qvr.7.1713958554472; Wed, 24 Apr 2024 04:35:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713958554; cv=pass; d=google.com; s=arc-20160816; b=k8HC84o3Y+39IAsvCruD/w/yqEBdnxwlKDsjndaMd+MyrTnXMm5JbZtgj3GczzoMxs OmZ3/Rzqsa87MSfTDhTccL1C7rz9sm0I949Hc9NAbHXE+8rIf9idQyaon+pPGLdsDUJT SYekRS3wQKZx5MvPOqIW3qGIxR8MFzMIhfwFFHJQfWVC7DZsHiR4A0EPY7HFSrrwytFK l1lOWb6Z0XlOZQZxZGx+Xx2em0M+4rC3BrUyeGFrVcOa6rlxzTIxAiQ1K0uhg5vOvaR0 Wsyd4JSgToHnvbAXq5Kgv73lg0px5GeKcyaMhaiPjpE9HLE8y0U9eaitWQAvDzLm+iXh oOuQ== 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=M2YAOpEFEL2/iKTS3ww8fmU8Pw+0E7xmN1m4F+voxeM=; fh=861d8SG5IV4QoNP97UmXhQi4oQsQPv2KKkNj9J8Po4M=; b=VkQ9+DPuPcNBiy03yJHeFE8WJ2YKwIH1kCH0YVZiKCtqi8BE67wS1q3XJg3W6Wvo3O i1D6N6OC1cWlLman2BD1LcZ625XcHwoB+uBxz9CSxJua+s3/um5Smb4QIAyiB2CarKsO xJ5NofhRsSj5SUbYULBiNaSpmBJqVI4L7PIoAmHjcbk19bi3bGAM1G5SwOiyOKrZiDnt Gll1zK536CpLZohvuOIaBflAXwqW/hfalPTaPGHWMEtENymUB6BO6xQAdve7uK3FrVuB OktJsBgulPAG7BApOJg9EkwaQYA4lfFlxSa4vRoR8Sf/ZDfMtevsohi8h6fpqhW6MfoP MFdQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=ZIXkfc1Y; 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-3961-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-3961-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id a12-20020ad45c4c000000b0069926b01df4si14720253qva.298.2024.04.24.04.35.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 04:35:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-3961-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=@quicinc.com header.s=qcppdkim1 header.b=ZIXkfc1Y; 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-3961-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-3961-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id E8B7A1C227FD for ; Wed, 24 Apr 2024 11:35:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4003A15A4A6; Wed, 24 Apr 2024 11:35:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="ZIXkfc1Y" 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 F247A15A488 for ; Wed, 24 Apr 2024 11:35:47 +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=1713958549; cv=none; b=CfalojM9CZo4Kg5wOjmhRMcXO/yHBX0ZHHYi1f04mhxXGJsvm9SBPMPuvYtVarLoh5icLJ4MU0uD7gALb1PN8aGc0QdxMpo9V2FPAN3uupsZ1eTXS7yAiVZ3dDI8WMPKbq/u8kdlm32xkwHUC7X4SNFgmdDMgYj5ZUbomy02PjU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713958549; c=relaxed/simple; bh=+gK4TxkSXaUmMtTtDe5StNiErs05F98U7NRu2zFyj8E=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=KoGYYqM/FUWrwM2Gx8uxCzrfZoNPlF2qL8CxzJFCYFb+oxi4149IVqVA9yo8Ui9+uBDrFhLUnDeXMPvBLDNxjzqOz0rgqQCBdm5K36+bOTzcCORmnwrsTDtdDlLUTFWb+IHxYjftXpe2wPtfxVVUQ4dg3mXhBQYi0GxxNYfmP+c= 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=ZIXkfc1Y; 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 (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 43O6fv5p004210; Wed, 24 Apr 2024 11:35:37 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=M2YAOpEFEL2/iKTS3ww8fmU8Pw+0E7xmN1m4F+voxeM=; b=ZI Xkfc1YXp5BALnrq2C8ULhnMKn+OipqBPNocoxRfFucTpRlgq7xCMHskD+Edl1iD2 +ULd6Kl7WJ8B+OAqMQeeY+7rI41dnc2QzQ+1Y5XGWRgCLCzMjJgyAknUbacMLy1q Hh0lCS13i06UPgxgloNJKYh2bUILhj5xCpDRjucStu+SBLNE2b0xAXJCI1opAT9a tb4NE7b4z/Hqqu1ztBdiucydEDG6jQ/UwODwASFOZ9XmF3AKbzb1kIybLJTpk5Bd uMOjJYveFKZeUwLVOsH39KWDF+F6z2+vKgBdlB7s7cgrSTNW9yS8xTghMBDZhdeq mnndkjB5kZsGX08wuZ6A== Received: from nasanppmta04.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3xpv9krpbw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 24 Apr 2024 11:35:36 +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 43OBZZaH015038 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 24 Apr 2024 11:35:35 GMT Received: from [10.253.14.221] (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; Wed, 24 Apr 2024 04:35:29 -0700 Message-ID: <16556c54-6064-4638-b3de-4e01c97a9714@quicinc.com> Date: Wed, 24 Apr 2024 19:35:27 +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 v7 1/2] Bluetooth: qca: Fix BT enable failure for QCA6390 To: Bartosz Golaszewski CC: Wren Turkal , Krzysztof Kozlowski , , , , , , , , References: <1713932807-19619-1-git-send-email-quic_zijuhu@quicinc.com> <1713932807-19619-2-git-send-email-quic_zijuhu@quicinc.com> <067db05d-56bc-4ca3-aef1-bc3bae47667c@quicinc.com> <0db77c30-5be2-41b5-adf0-fb4436b9107b@quicinc.com> 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: Eri2qTtVf_Hz0J23sWCAbQ5aJvlnXcWf X-Proofpoint-GUID: Eri2qTtVf_Hz0J23sWCAbQ5aJvlnXcWf 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-24_08,2024-04-23_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 malwarescore=0 clxscore=1015 priorityscore=1501 adultscore=0 lowpriorityscore=0 mlxlogscore=999 impostorscore=0 phishscore=0 spamscore=0 bulkscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2404010003 definitions=main-2404240046 On 4/24/2024 6:34 PM, Bartosz Golaszewski wrote: > On Wed, 24 Apr 2024 at 11:40, quic_zijuhu wrote: >> >> On 4/24/2024 2:01 PM, quic_zijuhu wrote: >>> On 4/24/2024 1:49 PM, Wren Turkal wrote: >>>> On 4/23/24 10:46 PM, quic_zijuhu wrote: >>>>> On 4/24/2024 1:37 PM, Wren Turkal wrote: >>>>>> On 4/23/24 10:02 PM, quic_zijuhu wrote: >>>>>>> On 4/24/2024 12:30 PM, Krzysztof Kozlowski wrote: >>>>>>>> On 24/04/2024 06:26, Zijun Hu wrote: >>>>>>>>> Commit 56d074d26c58 ("Bluetooth: hci_qca: don't use IS_ERR_OR_NULL() >>>>>>>>> with gpiod_get_optional()") will cause below serious regression >>>>>>>>> issue: >>>>>>>>> >>>>>>>>> BT can't be enabled any more after below steps: >>>>>>>>> cold boot -> enable BT -> disable BT -> BT enable failure >>>>>>>>> if property enable-gpios is not configured within DT|ACPI for >>>>>>>>> QCA6390. >>>>>>>>> >>>>>>>>> The commit wrongly changes flag @power_ctrl_enabled set logic for >>>>>>>>> this >>>>>>>>> case as shown by its below code applet and causes this serious issue. >>>>>>>>> qcadev->bt_en = devm_gpiod_get_optional(&serdev->dev, "enable", >>>>>>>>> GPIOD_OUT_LOW); >>>>>>>>> - if (IS_ERR_OR_NULL(qcadev->bt_en)) { >>>>>>>>> + if (IS_ERR(qcadev->bt_en)) { >>>>>>>>> dev_warn(&serdev->dev, "failed to acquire enable gpio\n"); >>>>>>>>> power_ctrl_enabled = false; >>>>>>>>> } >>>>>>>>> >>>>>>>>> Fixed by reverting the mentioned commit for QCA6390. >>>>>>>>> >>>>>>>>> Fixes: 56d074d26c58 ("Bluetooth: hci_qca: don't use IS_ERR_OR_NULL() >>>>>>>>> with gpiod_get_optional()") >>>>>>>>> Cc: stable@vge.kernel.org >>>>>>>>> Reported-by: Wren Turkal >>>>>>>>> Link: https://bugzilla.kernel.org/show_bug.cgi?id=218726 >>>>>>>>> Link: >>>>>>>>> https://lore.kernel.org/linux-bluetooth/ea20bb9b-6b60-47fc-ae42-5eed918ad7b4@quicinc.com/T/#m73d6a71d2f454bb03588c66f3ef7912274d37c6f >>>>>>>>> Signed-off-by: Zijun Hu >>>>>>>>> Tested-by: Wren Turkal >>>>>>>>> --- >>>>>>>>> Changes: >>>>>>>>> V6 -> V7: Add stable tag >>>>>>>> >>>>>>>> Stop sending multiple pathchsets per day. I already asked you to first >>>>>>>> finish discussion and then send new version. You again start sending >>>>>>>> something while previous discussion is going. >>>>>>>> you concern is wrong and i am sure it don't block me sending new patch >>>>>>> sets to solve other issue. so i send this v7. >>>>>>> >>>>>>> i have give reply for Bartosz' patch. >>>>>>> >>>>>>> i hop you as DTS expert to notice my concern about DTS in the reply. >>>>>> >>>>>> Are you saying here (1) that you identified a problem in the DTs that >>>>>> you hope Krzysztof notices or (2) that you want Krzysztof to notice how >>>>>> your description of way that DT declares the gpio as required affects >>>>>> your proposed change. As a native American English speaker, I am finding >>>>>> your text hard to follow. >>>>>> >>>>> 1) is my purpose. i have given my concern about DTS for Bartosz' patch >>>>> and hope DTS expert notice the concern. >>>>> >>>>> my change don't have any such concern about DTS usage. that is why i >>>>> changed my fix from original reverting the whole wrong commit to now >>>>> focusing on QCA6390. >>>> >>>> Let me try to parse this. If #1 is the correct interpretation, does that >>>> mean that the DTs are wrong and need to be changed? Do you expect K to >>>> do that since he's the "DTS expert"? >>>> >>> for your 1) question, NO >>> for your 2) question, need DTS expert notice or suggest how to handle >>> case that a DTS property is marked as required but not be configed by user. >>> >>>>>> I think you are saying #2. >>>>>> >>>>>> I just want to make sure I am following the discussion here. >>>>>> >>>>>> wt >>>>> >>>> >>> >> Hi Krzysztof, bartosz. >> >> do you have any concern for this patch serials? >> > > Yes, we have voiced a number of concerns. Please see the fifty > previous emails in several chaotic threads. > > I will stop responding to you now, at least for some time. I > understand that there's a regression. I will work with Wren to address > it. Hopefully we can get it fixed soon. However I feel like I'm > wasting my time trying to get to you and I have more things on my > plate right now. > okay, let us stop here now, i would like to summarize here. 1) it is me to co-work with reporter and solved his issue and verified with PASS results 2) suppose you don't have any negative comments any more about my patch serials. 3) there are no other working fixes until now when i write this summary 4) i, as a member of BT team of Qualcomm, will give comments about its QCA BT driver changes as much as possible if i have time. > Thanks, > Bartosz