Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp545124lqd; Wed, 24 Apr 2024 09:38:08 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVxaleQdRKKb/zm9zs5OzJvpUluJV8lMkb63OBgamajD1khlyuWGSys3JHSeBcyK78cM930Tp2qixMBRSC13Q4EGJ07d3rhE/eihokovA== X-Google-Smtp-Source: AGHT+IEEGvd7SJvC+1gqjV4Kf58M1vehrB+rjOyPKnPX3D/aGUDLlZvX6zqqgQua778tIt+WX1zp X-Received: by 2002:a05:6a20:12d3:b0:1a9:c80a:c152 with SMTP id v19-20020a056a2012d300b001a9c80ac152mr3618102pzg.21.1713976688252; Wed, 24 Apr 2024 09:38:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713976688; cv=pass; d=google.com; s=arc-20160816; b=mTFtcROv0/rqMU/+lmxkN+x6as9m7Dc4MW7Cs+eHANcfXxRPcQ1nNMbF9u1Dk82G/8 GhT0tH6zOkxAM+X1nrq/TBPQLKu9M8CQPM2FCmH+r6DV1iK5JpD7b7Qii9CA0IDbN1/0 k+fh8gxScrcdpttTCY6m5pLvV+svAVjCkbhIlQx9DxslExjberLhtDJRKY38ZCBwcuy6 gTHN/CkLJmHFYrFl6aWBZ8peTj4LdESug3/gm6AUq2BE6riRS/xrYKYtz7PF6C7DKZHY fJxWnrJh1Orw6aYbRt4fOfFlA6WzpUsYy/FB4U1nwQL4DfDkN3W7tPU24qIP4vBHcKgu w8aQ== 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=PfxzZ180Z/DowD2IkGMNqRvlIzcI/1uGnJOkilvHWew=; fh=tEf/AUnxHKdYDHhh+mKCRij/DJk666FgG9VL6D3GjzY=; b=Q8JL1Mf6gdNPA6y/o07uY0/97cw/t2gkvbDEIyh20zqv8BtFV0KO8ftAKTDZtcikWi GcIgUnMBEnRnz5AOgijVF8oZMzhCqj03pU3ypgFk12q6dPLSxckJm3malee6VN//EeX3 6R6+KNJRQlmyEyuxeepeSiqsooam5+RoayvXQBDViReW0JDYX3CVrqguWxGUGA4BDuLN 1KF3Ivi428HrjE4VahPCEDf3bdVCyriDOUX8D4+ocYUQmuVCY8J/W4JVWlvXhYg1NUHy rE4VR8Pe9IOnQLccN+yGdrD/b+gj8CgeRez+V/bv5e3VeX8d+i89qvS9arXdB+Zcf9gJ 1L7A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=mIOpfwjU; 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-4037-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-4037-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id o17-20020a639211000000b005fd0a0fdb71si6753616pgd.209.2024.04.24.09.38.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 09:38:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-4037-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=mIOpfwjU; 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-4037-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-4037-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 9A125294550 for ; Wed, 24 Apr 2024 15:44:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8B6CE16D310; Wed, 24 Apr 2024 15:42:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="mIOpfwjU" 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 641BB16C87E for ; Wed, 24 Apr 2024 15:42:49 +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=1713973371; cv=none; b=BPdXhf8qyggjpkkdIJruLgx/CQ50tjS+LstBTTwifgxz9VLGk/OUoXp3QMvbK2ca2P94P+JteTv7JBvoMAnJBkTJkEnJ1Nn4mDLNiGQTxseqKEq3vf7ZE5hKBYHmxbbhSeyfgotzBu2LgrqMeFCHUFzCJoR9fxinxLS11zcddFw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713973371; c=relaxed/simple; bh=pweW++w3oCKYUKIIYYCX5gSORhAEI3UuVYIE72EcDSc=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=IeScqbLWOnsW+rt1SdTUanuxvsHl8dHs2ilEODw4BUxuvPHKrhBe7z4lPJqU5zpKEzsqAFivPXp7GxhUlkdtBzM6q8ktthVYICdlG0d4+LHogemVmLOX2z/QhhTeF5HH17qAJM/h74i6LDsd8XVIZi4WBsqm3DlYlFrCSqIGUwI= 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=mIOpfwjU; 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 (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 43O7d4Zs019368; Wed, 24 Apr 2024 15:42:41 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=PfxzZ180Z/DowD2IkGMNqRvlIzcI/1uGnJOkilvHWew=; b=mI OpfwjUPrAtHj6BaZbneRD7jyFymhQXSV4FoZAiqLQLK5WHxtx7VbcqhdN9aQaS+f xiwoO0FLbp4K/2vNLomEOTmTj5yfv4XN4zaMsGo64XCkHvno0cSNuDjx+G+gRAJo UK1TAX6EWFL7lI/NY6NtCac4/Wv/AtzFq7KuP0Xw5KA9upcdA+nCaAQU+kaqTW4/ bFVY8LEIvCj4R1fR/9TCMeAsl7Fo236G+12+z/DawZC+tqktNH0pl9ugCeH6eLYV 3Xbz1v312x9e8VimGLJZKm6yHBBrBkCA6qwHjGKjQ2lgG7Nd5lW8rwKyWuoi+g1W aKY5gm0PwFrDedo+5vNA== Received: from nasanppmta05.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3xpv9g99p6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 24 Apr 2024 15:42:41 +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 43OFgegL002046 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 24 Apr 2024 15:42:40 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 08:42:34 -0700 Message-ID: Date: Wed, 24 Apr 2024 23:42:32 +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: Luiz Augusto von Dentz CC: Bartosz Golaszewski , Wren Turkal , Krzysztof Kozlowski , , , , , References: <1713919602-5812-1-git-send-email-quic_zijuhu@quicinc.com> <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> <34091f3a-9711-445d-a369-540bcfc49b29@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: plDp4jl8CAzq8M_IpFxT3H0ndG8NCZTH X-Proofpoint-GUID: plDp4jl8CAzq8M_IpFxT3H0ndG8NCZTH 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_13,2024-04-24_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 impostorscore=0 suspectscore=0 clxscore=1015 mlxlogscore=999 malwarescore=0 adultscore=0 mlxscore=0 phishscore=0 lowpriorityscore=0 spamscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2404010003 definitions=main-2404240063 On 4/24/2024 11:31 PM, Luiz Augusto von Dentz wrote: > Hi Quic_zijuhu, > > On Wed, Apr 24, 2024 at 10:46 AM quic_zijuhu wrote: >> >> 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. > > Well you are not making it any better if you are still claiming the > maintainer doesn't know what doing when you should really be thanking > him for looking into this, now perhaps his changes doesn't address a > particular problem you are trying to solve nevertheless it is worth > incorporating his changes in your set and then have yours on top > without reverting his changes? Can you do that or there is something > fundamentally broken with that. > > Everyone here probably have their own assignments, so you are getting > sort of _free_ consultancy, so please instead continue disputing what > we are suggesting at least try to incorporate the suggested changes, > we want to have it fixed properly so we don't have to keep receiving > the same changes over and over again which is a waste of everyone's > time, including yours. > sorry for my offense. suggest merge my change.