Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp507083lqd; Wed, 24 Apr 2024 08:42:46 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWUSpxPO6H9hnI0XUKRwn6mV1a64tvKEvL74dxJV0qALmbTUYi7pkdt96e7f84F2shzA5ehidagqttaGawoWOlih8nB3i8GoJ7900ZSHw== X-Google-Smtp-Source: AGHT+IE32nO5oxGywLaBt9OJ568EZKD7dIQKhMaSJYFiTnuIrRLE27f8NHW4JmTV2rMtIWluYvpW X-Received: by 2002:a17:906:7045:b0:a52:3ecb:ad83 with SMTP id r5-20020a170906704500b00a523ecbad83mr1832326ejj.38.1713973366143; Wed, 24 Apr 2024 08:42:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713973366; cv=pass; d=google.com; s=arc-20160816; b=WjMYXsWzZUlcjKL3lyMj6DnxVX4WNSE+NjI8SBFCo6f3M8tudltejlauSDxFfGwoyC MA0LQB2OWS2EcOT142qT3fi+qkCqQgoZ2dENjNSep4ALgE7k6p41Tb+ISBdKI/1zWwyu /uPXWLO7GHb9Pv10vQwokEOdbO2a6NhXMNnYFYGCjkAgsMG8aRW5SP38HaJXTCj6CBz8 m03qIeiw+MtcjlkArhowsoYjldwkffbcpOoErS0n4niu8PK1nVBBwxXu2tK7ZMBfgCO7 NHVrFJSlYhcYvMMyq9YSjbFYy5we7at/4A1koKYGPiEeTIFeMOXmWnXOM/0fBW87CWYk Lphw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=NnQoCXBLj0bhOfPX+zxQdzkBqr1tX55NskR0NFv3mGU=; fh=k+rMm60KZcba7H+liF+8RGLtNOa1lqX8m4YehhEAtjM=; b=gwvJWEQzW7CkPYC5CWIlnqzh9zXI2gbN1K3arZzii6O7J5f6tHRmJKYxbM6mbo0Tc2 8jkDnv+z8N10g5hJbM4UtbF/97RifJNEklQBv5kYw2oFDKQUd8/yaKECgsFK0o54us03 a0eYhMjTfKNDqlUGmF45A+/xLXafd/DhoFwInLcnhotCDmS1iBQdNVUG/j3xXK1KDq4T kyfUwxxdFnVJDGz8SzHDKu9e3m6nxMidnZEbbItzJq3a2KPFFeJand90giUZ99++KQlc Uv/XY+tp3cMkc7y2DsMHQvmYDg46stskHhliJ1JENYOq/8wMU0NoZI7X6vig+E+NfSD9 d6Qw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Svm6e63t; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-bluetooth+bounces-4033-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-4033-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a20-20020a170906685400b00a58a013bdc2si474227ejs.420.2024.04.24.08.42.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 08:42:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-4033-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=@gmail.com header.s=20230601 header.b=Svm6e63t; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-bluetooth+bounces-4033-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-4033-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.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 7A5631F29011 for ; Wed, 24 Apr 2024 15:34:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A633616D310; Wed, 24 Apr 2024 15:32:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Svm6e63t" X-Original-To: linux-bluetooth@vger.kernel.org Received: from mail-lj1-f181.google.com (mail-lj1-f181.google.com [209.85.208.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5F03216C86F for ; Wed, 24 Apr 2024 15:32:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713972726; cv=none; b=leQSo1V6kzUzAg+uzT7hGX/zzHcf9VGlLyE3DxtsVwxFyrunOcrCRA2DYlobWLP2KYlK8yuSc4h7L7gDwTeQVgrMOMEj90pau9xxF4BfccJAqtQHC3C6Q4WSQA3hD8M//dG1Nw2vLOhPfwmFCaY7oA9VKh1G8/JYsriuRK5NGVE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713972726; c=relaxed/simple; bh=NnQoCXBLj0bhOfPX+zxQdzkBqr1tX55NskR0NFv3mGU=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=GRt/UpctxmUA9A2KHms9grLXMXeWoBm3y/uazM1KCH6MmjvQmFQXp/cWGVe3KDeaSrpQvcKuTutrVlbTWFGdDPx/9yJvy0/yma+JEV4i3+LZP9rMZUBz+cNthzlA0hUPF1A4p9WZ1GqljFpVZ1mwAzhCX8r9Ixf79f5xZtDdVRM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=Svm6e63t; arc=none smtp.client-ip=209.85.208.181 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lj1-f181.google.com with SMTP id 38308e7fff4ca-2db6f5977e1so92495061fa.2 for ; Wed, 24 Apr 2024 08:32:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713972722; x=1714577522; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=NnQoCXBLj0bhOfPX+zxQdzkBqr1tX55NskR0NFv3mGU=; b=Svm6e63tvZ66X0a6uXGA+qqNFXN1ZoK7iyMMNnlD48fI9mRJoql1TzczVZZ1Plg86f 1qmbHnQeDCV99Pvbkjc3vIP2sIxlcklEssAMLuwpYXIVSKmM4DCjCiWnOs1E5ZwwveLQ 6cD2jHqRclwhOH0KUu/CTtl4JowDwNmggTgijVh4dM6HZQM1459OtJVplyi2KZbANiSQ NZRruVqO+NLDL5o9+TQa0hjW83qBhPq+O83V9ehisj9yjCROMXySF2bv/p3yUmhqteZ3 nzYDpcbOa1kv9XpWVOc3ra2xuqYJUApMStIWd2KziSr8Vrwgd+zCpyARZv7p7eO/APhQ b/BQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713972722; x=1714577522; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=NnQoCXBLj0bhOfPX+zxQdzkBqr1tX55NskR0NFv3mGU=; b=OSb/KQvXBeLf3qDfncQ5cTrGP+5WSti4F3KkGrO96KCWOTcMM0+GwcIT3/KFqxYfS8 ayvrTSmpfhJWUm59ijo1JKx1DLLqld/FWCqsBecgFgxhn+cw799q4F2T/jNGdAngZ1nY uuHDV9GeqyHOvXvX5Yu9dDCFwY1TaJxP5+aPiDwyVaybx0Hb/YdSnVyCE5FIZVyU9rOK GcKoNt3pd5CkYHJO/3S02UHktWrIqOIULXvZJon1XnqAliXIlDs0JRt8EIETdUks8TrZ fN8s+pkpjWXuVc25L/H9FMX/ZicTfbwS+nFnqp7FSUdplqyzYpNImSSFn06U6gfGBmK+ oe4Q== X-Forwarded-Encrypted: i=1; AJvYcCUCGKL7hkpsV4J6AVYjAPfL+LiKLrjVA61VPvDzF5DP2r002Jzitltso3buz86Q5GibuAkEXF4gpAAzHpD3vt4XG51T40lvuI3lfnvWP0xK X-Gm-Message-State: AOJu0YyNniBIEj5ibeC6FbD5yUcGbgPVkcSHuoEO+BNXmzJj2Ptx3XYo +7s/xkG/8sC77QxxHlzqLhKyOdX+xSVcbOtui38n4Cwvbm2/1tr5qwnVS2L5WYgD8576IcsXOHg roVOmBWUQ/CbyN0gc7/CeXP1oYkaOqg== X-Received: by 2002:a05:651c:1043:b0:2d4:54f2:c409 with SMTP id x3-20020a05651c104300b002d454f2c409mr1806901ljm.38.1713972721626; Wed, 24 Apr 2024 08:32:01 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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> <34091f3a-9711-445d-a369-540bcfc49b29@quicinc.com> In-Reply-To: <34091f3a-9711-445d-a369-540bcfc49b29@quicinc.com> From: Luiz Augusto von Dentz Date: Wed, 24 Apr 2024 11:31:48 -0400 Message-ID: Subject: Re: [PATCH v6 1/2] Bluetooth: qca: Fix BT enable failure for QCA6390 To: quic_zijuhu Cc: Bartosz Golaszewski , Wren Turkal , Krzysztof Kozlowski , luiz.von.dentz@intel.com, marcel@holtmann.org, linux-bluetooth@vger.kernel.org, regressions@lists.linux.dev, kernel@quicinc.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Quic_zijuhu, On Wed, Apr 24, 2024 at 10:46=E2=80=AFAM quic_zijuhu wrote: > > On 4/24/2024 10:41 PM, Bartosz Golaszewski wrote: > > On Wed, 24 Apr 2024 at 16:25, quic_zijuhu wro= te: > >> > >> 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=E2=80=AFAM 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 Bart= osz's > >>>>>>>>> patch right now. > >>>>>>>> > >>>>>>>> Ok, that is great feedback, so I might be picking up the Zijun v= 7 set > >>>>>>>> if we don't find any major problems with it. > >>>>>>>> > >>>>>>> > >>>>>>> Luiz, > >>>>>>> > >>>>>>> Please consider my alternative[1] also tested by Wren. Zijun's us= age > >>>>>>> of GPIO API is wrong. > >>>>>>> > >>>>>> why is it wrong ? > >>>>>> > >>>>> > >>>>> I have already told you that at least three times. But whatever, le= t > >>>>> me repeat again: gpiod_get_optional() returns NULL if the given GPI= O > >>>>> is not assigned to the device in question OR a pointer to a valid G= PIO > >>>>> 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-1961= 9-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 ho= w > >>> 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 t= o > >>> 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 rightne= ss. 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. --=20 Luiz Augusto von Dentz