Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp469305lqd; Wed, 24 Apr 2024 07:48:27 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVOXoz5Wp4mVyLU9ddzPfU/UzlMUC2Ej6Jpze5S3SuxS6Od2qdCw96j26VofWYxpDLNfXAMyka//0tXx40divwYymFB3vBndKVaJaIMfw== X-Google-Smtp-Source: AGHT+IGp4hZA0Jy3FWJ1uNPfphiuPz+BgNbcp5lTiRqTUHKwUxN/2j8Cf6dmCWzLYpTQlMXpdC45 X-Received: by 2002:a50:d64a:0:b0:56d:faa2:7aca with SMTP id c10-20020a50d64a000000b0056dfaa27acamr1867696edj.17.1713970107571; Wed, 24 Apr 2024 07:48:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713970107; cv=pass; d=google.com; s=arc-20160816; b=mcSnAiSIqvqeSZub1toEdIhmJySJPHfHCFvUANbAdKBeOaGIMADv4zuEPdomAe+ku5 iOFZ3gS3veGVvvZKGjKIta6Bh460Vc3zfOwHAsploxGS94Ls8zXGdoAch+lWWVx/8b8O mx4aJNCAnPXfLLBe13zXbWgIrD2dWNt8dv2r2K4t0wNbmD412xBjNONhx2q+HquHahh7 pRRpEpT5dpb/W6Qx04WCLgcT/0he4nc+8tMzuWaUwWaEcTFvZV69ne7mOtkrScFMBYXU Ig00qGmR2r7GT53rj1nayTWFTLnUC26SsJEqSWcxtfwgH8K7HAOmXrUcFq5sD6jp/J/Q Rvtw== 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=kMahKhpTZaw/vwmerS953kRIxiDFemw77PXxILTKshs=; fh=lCWMlktdI+4czfUoqPYhcaprrXCWNuJig5FadrCtsnk=; b=axj2h7YkS8aSpJ2VQT0iwtxpg0MsaBXR2Dl2rcsNLUiN44Hm3959pLPCUPHPj1nNkD ol3GfXnnmVpy7sLTBf/8xB9fpF0yC611VXD0PDJ6TE4/mMxfGZc0mA1fyF/FnUtEQnVN U0qNCvloYrMeJBbWikMLqhzm31nS1Ic7vRxYmv8hujPxMZi3knJE/xCUCubWg0by86Su Vv1xEO/y0i7aH1ekDZJvOz9ubp4ZAJEi2DK0XzfpmYTjagOaNDusajLCQyIV6nG8mo11 cd9R3QdeQfNYEVQGg181cH1fD5OLbNhs6JMiyBCtZqpBJIklfIuyMK2txgcZGEAC8JEB ZxzQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=lxSyprrs; 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-4023-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-4023-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. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id m27-20020a50999b000000b00571e987f608si5863663edb.410.2024.04.24.07.48.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 07:48:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-4023-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=@quicinc.com header.s=qcppdkim1 header.b=lxSyprrs; 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-4023-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-4023-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 02A801F2690D for ; Wed, 24 Apr 2024 14:47:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7348315EFD5; Wed, 24 Apr 2024 14:46:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="lxSyprrs" 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 719FC1DFEB for ; Wed, 24 Apr 2024 14:46:51 +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=1713970012; cv=none; b=IxC4YxX1Frk9/hqteFlQzncKW+g1pgyuWvouzn7ytxFcNLiXBb8KcGFIB80XnpkmoZVabCpKgz8NEyXbHXtaamTA8yYqT+Rgcq/ebLtndeTubWJstUbh8EzVsSboZultMx3bEd4its0JHciMWS927t4/A9HUs5Zg+TA+UaU+qaU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713970012; c=relaxed/simple; bh=l7W3Za2l7dFFJ5qPbBTjeqOMr3uUcUMehptQJuJeu4s=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=fpk7v3iZAsJb3TOsVQ4HXK/TzHlnIbK7/BW1jg1KHRn3YOtul67kQR8hqpgJvKP7ZIZHTOeC45u0nCHuFr7IMCbPnHR4zjMEYbucMVcPZukWmQYEYmsZ2r53UDive9QrxHVYhdNrRL8GnNV1Mav/wTP7eYo36Fk+sm0pHbDFP5Q= 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=lxSyprrs; 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 (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 43O6XYEa016785; Wed, 24 Apr 2024 14:46:42 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=kMahKhpTZaw/vwmerS953kRIxiDFemw77PXxILTKshs=; b=lx Syprrs3oBNmqDPX5xflzIRVwnM6ryCC/OUPWhzKwC+UEDS+Zb0uidEgbGKoGg6B7 4ZHwxpsB8Xlo/ar7+PfGBElwLoFNHc2woDznbJGcfGt+JbCDll3ikLB1Eh23VDIg hBVuEmhTUXAbXE04W6Tc+D9Th9B8MzciiDWTMZ06eTwX9U2lvgRzHKsktnzFU9tY 4R/EVfLIAK0V3gRgag3tyMxEfuvsqSHOjgbavZ97j21RrA0oYoU/jcszJSbvMfFj E2vwyXHOy8zigsCLEi7XMwCmdxTiJi3KWndw2ZzIngxnPVDZBNWN2KfVLQKRVw5+ PiFxIuGKPLxhuvoBmACQ== Received: from nasanppmta03.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3xpv9gh4pm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 24 Apr 2024 14:46:42 +0000 (GMT) Received: from nasanex01a.na.qualcomm.com (nasanex01a.na.qualcomm.com [10.52.223.231]) by NASANPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 43OEkfJC025726 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 24 Apr 2024 14:46:41 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 07:46:35 -0700 Message-ID: <34091f3a-9711-445d-a369-540bcfc49b29@quicinc.com> Date: Wed, 24 Apr 2024 22:46:33 +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 v6 1/2] Bluetooth: qca: Fix BT enable failure for QCA6390 To: Bartosz Golaszewski , "Luiz Augusto von Dentz" CC: Wren Turkal , Krzysztof Kozlowski , , , , , References: <1713919602-5812-1-git-send-email-quic_zijuhu@quicinc.com> <1713919602-5812-2-git-send-email-quic_zijuhu@quicinc.com> <349b27a5-d2d3-46f1-b002-44f81e0cedef@linaro.org> <8ae32009-5f5e-49a1-88a1-e330f0614f60@quicinc.com> <5e363318-c6e4-4874-8026-7940b434d583@linaro.org> <2020a858-c3d9-48a7-ad59-3691c6b98fb2@penguintechs.org> <38736db8-eec4-4ebd-b4c4-4b404cea6e42@quicinc.com> <2805ad96-6383-45b3-9b68-66578461bb5f@quicinc.com> Content-Language: en-US From: quic_zijuhu In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit 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: 1tu1glyTkbrwtluWf8iUl4K8AdAKvC3T X-Proofpoint-GUID: 1tu1glyTkbrwtluWf8iUl4K8AdAKvC3T 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_11,2024-04-24_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 mlxlogscore=999 mlxscore=0 bulkscore=0 impostorscore=0 spamscore=0 clxscore=1015 priorityscore=1501 malwarescore=0 phishscore=0 lowpriorityscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2404010003 definitions=main-2404240053 On 4/24/2024 10:41 PM, Bartosz Golaszewski wrote: > On Wed, 24 Apr 2024 at 16:25, quic_zijuhu wrote: >> >> On 4/24/2024 10:19 PM, Bartosz Golaszewski wrote: >>> On Wed, 24 Apr 2024 at 16:08, Luiz Augusto von Dentz >>> wrote: >>>> >>>> Hi Bartosz, >>>> >>>> On Wed, Apr 24, 2024 at 10:00 AM Bartosz Golaszewski >>>> wrote: >>>>> >>>>> On Wed, 24 Apr 2024 at 15:53, quic_zijuhu wrote: >>>>>> >>>>>>>>> >>>>>>>>> Please slow down here. Zijun's patch works and Bartosz's patch does not. >>>>>>>>> I don't think Zijun means any ill intent. I am replying to Bartosz's >>>>>>>>> patch right now. >>>>>>>> >>>>>>>> Ok, that is great feedback, so I might be picking up the Zijun v7 set >>>>>>>> if we don't find any major problems with it. >>>>>>>> >>>>>>> >>>>>>> Luiz, >>>>>>> >>>>>>> Please consider my alternative[1] also tested by Wren. Zijun's usage >>>>>>> of GPIO API is wrong. >>>>>>> >>>>>> why is it wrong ? >>>>>> >>>>> >>>>> I have already told you that at least three times. But whatever, let >>>>> me repeat again: gpiod_get_optional() returns NULL if the given GPIO >>>>> is not assigned to the device in question OR a pointer to a valid GPIO >>>>> descriptor. Anything else returned by it is an error and the driver >>>>> must abort probe(). >>>> >>>> Ok, but there are other fixes on top of it: >>>> >>>> https://patchwork.kernel.org/project/bluetooth/patch/1713932807-19619-3-git-send-email-quic_zijuhu@quicinc.com/ >>>> >>>> I guess that could go in but it would really help if you guys could >>>> work together so we don't have more competing solutions. >>>> >>> >>> These threads with their 7 patch versions from Zijun within 2 days or >>> so have become very chaotic. Let me summarize: there are two >>> regressions: one caused by my commit 6845667146a2 ("Bluetooth: >>> hci_qca: Fix NULL vs IS_ERR_OR_NULL check in qca_serdev_probe") and a >>> second caused by Krzysztof's commit 272970be3dab ("Bluetooth: hci_qca: >>> Fix driver shutdown on closed serdev"). The patch I linked here is how >>> I propose to fix my regression only. These fixes don't seem to >>> conflict with one another. >>> >> it is not conflict issue, from my perspective, you fix are wrong. >> do you see my patch change log? >> >>> We (Krzysztof and I) have provided feedback to Zijun but he refused to >>> address it and instead kept on resending his patches every couple >>> hours. Zijun's patch 1/2 proposed to revert my commit 6845667146a2. I >>> disagreed and proposed a way forward by fixing the regression. This >>> fix was incorrect as pointed out by Wren, so I submitted v2 which >>> works. >>> >> v2 is not right from my point as i commented with your solution. >> >> you don't answer my questions commented within your solution. >> >> what is your question i don't answer? >> >>> Bartosz >> > > Luiz, > > This is an example of how Zijun will borrow any attempt at meaningful > communication under a heap of incomprehensible emails. Krzysztof has > already given up and I think I will stop too now. As the GPIO > maintainer I suggest you take my fix for this regression. I can't make > you though and I've already wasted way too much time on it. Your call. > how about GPIO maintainer? it is your change about GPIOs causes serious regression issue. i maybe send many mails. but dos it have any relevant my change's rightness. do you find anything my change have wrong usage about GPIO about the case i care about? > Bartosz