Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp468876lqd; Wed, 24 Apr 2024 07:47:43 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXGfC0pj8QW04ZIWnscewQAzcf/WGYvdCQA16zZB/Ib4rwb8IX9cpJ4JZNAsnK6SedtUwlF575L5c88N7Vo+Gy4dcQJDmASSCs09hw8Tw== X-Google-Smtp-Source: AGHT+IGKQ4N92hzSkomIRHTVrxTPnJIOMYlxPz1FUYK8IDHtac76iAEisifJVe5G7k4Bf9SP5Ceu X-Received: by 2002:a17:907:7da2:b0:a58:a37e:cfc4 with SMTP id oz34-20020a1709077da200b00a58a37ecfc4mr379584ejc.5.1713970063416; Wed, 24 Apr 2024 07:47:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713970063; cv=pass; d=google.com; s=arc-20160816; b=VDig41FecQdENbzR3VE32rFGOYTPG9gSg5KNkzNJdXlXO0/ljMQcVGGAxx0WnuTq7G MQ88IwkGTzwGlkeGb1mc+/1MMedMGGQgyjYpph0nLprNfzyBzXtwBYhhCkqz3mGDQMbJ l5mNNap+xKoFDG8/+pBaUhA2GlmDbU922AhSlqm0+3IZVsdvsbh0VCFzZL+g/cFmPUA6 rx3OPCLib6RhKYa6NhyEQXVqna4m8eswamLe5Czv4AWGZ0GhSQEImV3SIPqRABwTzNkC ro/IJXdtU4jPw6e00lU9DcW/lw2gjGNQ88FhvYKrwxD2JHtDFXMQXrCkOTvJ8lDN4x9I fTGg== 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=8CPV7Hz/Aa3JF09vNVqi95ImnV5Er7/aw86QJnKRHBk=; fh=4JRKERdJhG9ef8hDCev2JE+XWRkUF2uaCdILvN/pFVw=; b=0nSbEIXq3iYX1myPTNVZ3BLIOfvLSUtT2VksmqpmmVD9Y19r2zTF0pNDYKy0EH91BH Kucu9ul9aExmXzu8j2sznJ0AybHMKv79Ie/BiMltPuMWwxBmHwW407zgihKeqTVzWKRQ ZNabBnl7t5HVhC1x3dn4BkCApnxCO6BzDopyfjOLaujoN//AyAYG+RRPLltcgNifTBo3 ZxjIfnyNlOrkzDwzF2zcRpJ96eXKE3DgYXp+PisokaEPpIB1agP7iuJjuuJg94ZikwTP k7oDmGdxLKMYxSzFvDjZ/v+mhPjfqLkX8OSVYdEqqYy1X1K9iuZgErSCzxwEDRl9fe4i CquQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qUPiuidn; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-bluetooth+bounces-4020-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-4020-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id jt20-20020a170906ca1400b00a55b5945e2dsi4015976ejb.552.2024.04.24.07.47.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 07:47:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-4020-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=@linaro.org header.s=google header.b=qUPiuidn; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-bluetooth+bounces-4020-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-4020-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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 042A91F275D8 for ; Wed, 24 Apr 2024 14:41:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4630D15ECC4; Wed, 24 Apr 2024 14:41:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="qUPiuidn" X-Original-To: linux-bluetooth@vger.kernel.org Received: from mail-yb1-f182.google.com (mail-yb1-f182.google.com [209.85.219.182]) (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 0536215E81E for ; Wed, 24 Apr 2024 14:41:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713969678; cv=none; b=jOx5btwZ0cH+noT5LAxPuPWsgSlSB5nC1NM12qL0tupuV/X7Ag53ctUuBhKYtAaUHS1JjLRkzdX7m4cDZCA+y727WbiPOBM8TBLz5ihgHhCWtjRaZquVi/UApfF2dezaGYd1RyX3MdLqXLKTzIEC0AoIkYLEU0yQC0Ptbb3Nx54= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713969678; c=relaxed/simple; bh=8CPV7Hz/Aa3JF09vNVqi95ImnV5Er7/aw86QJnKRHBk=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=AioyIKzBCD/KqX9C9Al74a+grwiN1HeiJFxwwe9oxU9GxVXVEyGVluLNkp/j/t77995qw7epnUJWguT1HYtnf5cpkPF/iOao5/UjuK/bj1KWwxQls7zVhZsnQAqfsCiIExgEAb+xqULt6o3FAvyRUvgvAyhnxMiwG0yLxURMLhg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=qUPiuidn; arc=none smtp.client-ip=209.85.219.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-yb1-f182.google.com with SMTP id 3f1490d57ef6-de54c2a3eeaso2162155276.1 for ; Wed, 24 Apr 2024 07:41:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1713969676; x=1714574476; 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=8CPV7Hz/Aa3JF09vNVqi95ImnV5Er7/aw86QJnKRHBk=; b=qUPiuidnahqiHeiyk2380WVRgLd8UQtyn0Ow9+FStow6QwmowAZukkR0cXKzcEPeKS jcS1uhHykkoLg2+e11SlmOHJEyWRkd3bJxbBOZw1Ggzgw1COD+X0jl6R93rD2GQITGnX dOu8EbHM40oQnLcnOliZhzr87hRb2Ai80gODYz2Mww6d/nkeS/wKukg4ZO9fnq7RGl6c 5QVBRduCeqmAQmCUewjHP/URATz8ttXynTUuwRvREWrWxUEVNCWjhqHxzUMAhCw2kJSq PqiiS0oDB+aV0aDdkYuVxhv+BN/yPuW1igGuFEtBDRBvw6CS7UstZRN9r7kag+PVDGWQ n28A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713969676; x=1714574476; 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=8CPV7Hz/Aa3JF09vNVqi95ImnV5Er7/aw86QJnKRHBk=; b=FBUa9O6dCoOoB5WBnbXRvmKv7PZkXYGGV338vPNbYUCU87+1kxx+QheL3AvKtGAVz6 CFl7MY1YmH+Y4HrfiaJk+5KYK08kd5FfDMSy0GRx28E/peLEQDWryotCxS4q581gNR9P 4ml2BKr6okcatXR5kwQGnC82Fp98RggQ/6j2NLiGp9NLYrLeWTMS3xBr4PJPs7IZeHDa l3i873k17xKrbk44TIi6SR55oOd6YECN9sShRjtm/VhrfvncnJ25PFmYQPwjGtHZpxF6 aykxLlN6ThgVdj+CbzrTt3FNzP9VcTnAh4NpjN8O/k8ydQyq2gof1c7KYgh+Vj+dQIHL oGJg== X-Forwarded-Encrypted: i=1; AJvYcCUbg5Z9wYAwpdMjcPjvOvCJtjUrXWjaZe431E2mdXkdPZaVcaQ+N03j2OkV7aCmSjdsVk1CkMeOFNdvbBWj/zEu4KixcrYpAqAgfb+yzygM X-Gm-Message-State: AOJu0Yz5i3AOFjJb66dPikcrbZci+3PcUrBTIm/VsuqRerEXAbIZ42Iu 4NHV8U+LVHcCcevzweSA8BDDh5fmib3q+9iSnF3zsVJGadx55I7VnUPaGeTY5ilvsXHFHa1kppN 2Cryus+n1iNMWAN8NuwL8BYu8+C96luTTAg4sjQ== X-Received: by 2002:a25:850d:0:b0:de4:f885:5aa9 with SMTP id w13-20020a25850d000000b00de4f8855aa9mr2529325ybk.13.1713969676031; Wed, 24 Apr 2024 07:41:16 -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> In-Reply-To: <2805ad96-6383-45b3-9b68-66578461bb5f@quicinc.com> From: Bartosz Golaszewski Date: Wed, 24 Apr 2024 16:41:05 +0200 Message-ID: Subject: Re: [PATCH v6 1/2] Bluetooth: qca: Fix BT enable failure for QCA6390 To: Luiz Augusto von Dentz Cc: Wren Turkal , Krzysztof Kozlowski , luiz.von.dentz@intel.com, marcel@holtmann.org, linux-bluetooth@vger.kernel.org, regressions@lists.linux.dev, kernel@quicinc.com, quic_zijuhu Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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=E2=80=AFAM Bartosz Golaszewski > >> wrote: > >>> > >>> On Wed, 24 Apr 2024 at 15:53, quic_zijuhu w= rote: > >>>> > >>>>>>> > >>>>>>> Please slow down here. Zijun's patch works and Bartosz's patch do= es not. > >>>>>>> I don't think Zijun means any ill intent. I am replying to Bartos= z'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 usag= e > >>>>> 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 GPI= O > >>> 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. Bartosz