Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp467583lqd; Wed, 24 Apr 2024 07:45:36 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWX7QzTBPeYbZSmDFVrOoJrE9mqa0siq783c8j0dMJ9+DFIfTBquf4ayuSDbdsp+owwkV40xsEsuQbITgSfVmXYSrsX+QWJxa2AEpe2OA== X-Google-Smtp-Source: AGHT+IHW+9tZ7v4/5REUKAdYCHnqgDhqtvuWaAKkmhvkBEwotU5Qb8uC1AA794SBpGbZ3ka4GGxh X-Received: by 2002:a05:6870:3127:b0:22e:a7a1:6e56 with SMTP id v39-20020a056870312700b0022ea7a16e56mr2917005oaa.29.1713969935945; Wed, 24 Apr 2024 07:45:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713969935; cv=pass; d=google.com; s=arc-20160816; b=c4rnWq2urW1kdYiHVfLmM0AO9gLNGwbU7WJb/EvPvnjM0zHC3TKWE9E2zwwTityCvH vRHu+qewsREVsx4gYUWXJ14Yjja8Mtt76SBwd9EQwVsUVOvUjhVl/EK2+mFe+3to1ziK RsuuHlp1Qg/NcK5dBww7ZwrUg1qxz6nP4spnPF5GA6etP75RsdQe01dz0Jv/T+MPGyDK 8eCncJhUi2O+MuQBhtMqCeqCSW93qzxwC6XNw5OHLuyEELsH+edzdV4F23FCvS1t3PJA 4WE66kh9Xwo4F1F4jWpeCMq/V1sOXudlD6G+O6LqQR+TVStsBy1HGXQvBuwUMvH27l6u pd5w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :from:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=nrpjcJzbIWN+7n7NJajhclpC3028/XgYLEN5udjhdz8=; fh=XI2r1xIeOPnmPcP+E9JfKNmCfBCkYPuTDnHituqiiHg=; b=uzwHeeaYw2MfdSiMr+Vng7KYwMN/zpfBB/jLFskhpULoJ408u7xObSnfvCiyQTtcwq V02wZ/X9p403oBlhli1bVrON7XRkBuXkgkbVERJAY+IjaAu/61CMrHD6JCSHYVZphjEb a6aLCNiOxs3V7ti4olXtTlSthKj9aUiAMBM6weVMMo5pRXLtVi2QnK4paozGZcRGjYz2 CVoaxwPuLO4WifV8pqOF/WD1ZPhKnPiP/6PsCQR6T0En/4cSHbdUJdVla9vYIFcUebX5 UlP0mR9dcYtRgwZtcZlgqeWYygFZV+Ka7sTaO+QRXRZCO6fcrplGjxnv7sCRzVQW1kfG IYVw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PCjHo1XD; 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-4021-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-4021-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id h9-20020a654049000000b005dc88c4702dsi11521179pgp.225.2024.04.24.07.45.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 07:45:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-4021-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=@linaro.org header.s=google header.b=PCjHo1XD; 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-4021-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-4021-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id E177F28A2F4 for ; Wed, 24 Apr 2024 14:45:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 41FDA15ECD1; Wed, 24 Apr 2024 14:44:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="PCjHo1XD" X-Original-To: linux-bluetooth@vger.kernel.org Received: from mail-ej1-f45.google.com (mail-ej1-f45.google.com [209.85.218.45]) (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 DCBE715EFB7 for ; Wed, 24 Apr 2024 14:44:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713969891; cv=none; b=s50HNSyhR4eUpxA7eNq4Oy3ImLt7gazx1qhf7dsv79YowhcOGdQFyBc61hjE4llMqjAxRNXqYLEDhSYMZnZ4yULmSR2u/2RIJZ3NYsmaj9Gdzptny7hosJ1qlFZQLMfT2YfipiclV5nq6xRfkxQsN8Os9MhQj2VrAKHBRmfypxQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713969891; c=relaxed/simple; bh=Wjvi6/FPDxdY71RXd4ksoRnM6YcRHw0fUXQiZ75Ds04=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=a1ai5M+2Rz4pufpTTx/vRHeA3vRVqpicvIrX4+YR3vpw1OQjDnjpiIrlqEvmKk2XrOO5ihSkb/60h/bDAWIVqTP43evgCzkt8chIspBjBUuukbu341WHeSBXeo6qfZ6b7j/rdkdrlREgaMxgzayAwLU0rSZEMo3bYLBH/XEkF9E= 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=PCjHo1XD; arc=none smtp.client-ip=209.85.218.45 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-ej1-f45.google.com with SMTP id a640c23a62f3a-a55b2f49206so183085066b.1 for ; Wed, 24 Apr 2024 07:44:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1713969888; x=1714574688; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :from:references:cc:to:subject:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to; bh=nrpjcJzbIWN+7n7NJajhclpC3028/XgYLEN5udjhdz8=; b=PCjHo1XDMMnMQFAqBolIc+74NKWhpxTwJ19LpX/H/DyNM2HQjM8unLjNRvIsgRwqFf 9Q2vlv5RIiLWnjWzr0JjmFGy6RCFSXCmi1TvjszsDrA/kWkNKfV7cZ67+zZDYkkmXFkH U9rMTMp58a19RCRtZ2uOYL7e8BdRylBGxfh3fVeMuc94JEX5Z2STRpms05uA8fdFOtgv dxmnHjh7cs0pA4T1/dOh2n/te8jtXTXhCJTWBO8SgwE/rJF+5J8MS4IdYzYsDwxhu6tO paQeKGkGwPU15qyDUGaawx3CDIb7c6Xn9eaU8jesK7nCk3eUGeoflO006O84NY53CD6D Fk3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713969888; x=1714574688; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :from:references:cc:to:subject:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=nrpjcJzbIWN+7n7NJajhclpC3028/XgYLEN5udjhdz8=; b=d5r8UuOMgM6n2nXgWLdR8y1VtO7ZAudNShULEuqo65atQEkV/nWMaxMg1IbGo7tUqp fLCYoGI99u6VJ5O00igw2FKiJk3gzom3AWiGX70M5qMc4WT5zgjrIc3F0WUsHUYUL83e CLuBTSDBiGiLxmtwAh+vZN5ThDTom4IxEag/8hXh4XLBIHf0KqTa39KRAGcYmoQsQ4Yz jIQiloKBpTv8AcUhXb1QMtxVbjragynAjv2JtJFPYLOuNolQC4VoUNSm1LiGTKYdtmlH iK1Tm77kVPDFJZ0lIm8gznxiWBuTvJrw4A7wlGwj6J5+VgJBL5zz1pYC0NRevmhojC+w XekA== X-Forwarded-Encrypted: i=1; AJvYcCVXM32OXzhDBvZCBGJxwpeaPOadTIGFu4weeh3W+TCUNeVRop+PDCICid8deQUXwhjwTYMeQ4apI5zHppoIyETG7IZh59dra3ba8o3paYHR X-Gm-Message-State: AOJu0Yz2SFTPN89+Y1IasukCbrbqs7YgvqWEQLE3mxGLjhkHhwGIG+84 AMf96dt2T1LxG10tq0Wl3yGfWEAFRAqUUQWadF8wDNH2jWV4wluyvLQK26CXVWQ= X-Received: by 2002:a17:907:868d:b0:a58:86f8:410d with SMTP id qa13-20020a170907868d00b00a5886f8410dmr4438969ejc.23.1713969888050; Wed, 24 Apr 2024 07:44:48 -0700 (PDT) Received: from [192.168.1.20] ([178.197.223.16]) by smtp.gmail.com with ESMTPSA id k11-20020a17090632cb00b00a46a2779475sm8375189ejk.101.2024.04.24.07.44.46 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 24 Apr 2024 07:44:47 -0700 (PDT) Message-ID: Date: Wed, 24 Apr 2024 16:44:45 +0200 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 , luiz.von.dentz@intel.com, marcel@holtmann.org, linux-bluetooth@vger.kernel.org, regressions@lists.linux.dev, kernel@quicinc.com, quic_zijuhu 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> From: Krzysztof Kozlowski Content-Language: en-US Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3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53hyV4I2LPmptPE9Rb9yCTAbSUlzgjiyyjuXhcwM qf3lzsm02y7Ooq+ERVKiJzlvLd9tSe4jRx6Z6LMXhB21fa5DGs/tHAcUF35hSJrvMJzPT/+u /oVmYDFZkbLlqs2XpWaVCo2jv8+iHxZZ9FL7F6AHFzqEFdqGnJQqmEApiRqH6b4jRBOgJ+cY qc+rJggwMQcJL9F+oDm3wX47nr6jIsEB5ZftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 24/04/2024 16:41, 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. Yeah, I given up. It suck way too much of my time and effort. I will just review Bartosz' patch for completeness. Best regards, Krzysztof