Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp289203lqt; Thu, 18 Apr 2024 15:37:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUHNKEdSE4OnpPYt8G4uRX9jCPGyKr+uT2lMJW5YyyAa/RBD1rAG48UclqrPFb4ABFjyD0BeIj3WZyuStkdhUyEXw4DBelF9V2SZ6UMaw== X-Google-Smtp-Source: AGHT+IFsKf94NREgvyFCW6jHAFGCEUgmBHkIoILTqbwPUIJgorleTUlfjzomk2aXTS/lwCHMydi/ X-Received: by 2002:a05:6a20:3251:b0:1a7:697f:fb9f with SMTP id hm17-20020a056a20325100b001a7697ffb9fmr679198pzc.49.1713479845371; Thu, 18 Apr 2024 15:37:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713479845; cv=pass; d=google.com; s=arc-20160816; b=F+WdaW94hxZABL7SZ/SEEiygHAcIYrb/hdPANST9D9G1xf+s8gtbhnzaNCk7dcjSsE Qn0iNbEMUDK+kfH7vK7y19tI7PzaZ5UxXdN82jxpjP4d+r4D3n5E2kfslRoMtI7b5fHv altFQ3UbPVZZsv36nVwVkICrDIt5tXeuhCpQ5qi8OaPaxveQaSuYgukpC+gv71bFKZa/ NNBZGKFq6QcDhbX+YtO5dPJK7kYqjcOO6mypyTMPaTrkEzOFIlCBv2gSuoBkgdQWOkNM +OiAETFXH40KJ+RYt/lj1T2Prde+8/oPQk4xnkNurZSFuCUV+iEfuRJtF8RxqwWkEYTw PwEg== 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:from :content-language:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=7okPBaveo1ZiS5BzkmL1UYE8cQkDLuGYdlHLujOhpzc=; fh=x0AI9Hyjruznt0fUAc0WB51HNFserLNLuqVc+2GUFHY=; b=GiCYpE+Pg+yKe8Q5hp/gjke5gvSmR1IMdlsvQafaGZOMlwD7SoeXgvl2JjoEuAIlng OpfnB0icRNtiCSI/jPKTOcHjC5xxhlgkIuls4c09kt70n/+0AKeoQCQg0/B6PlTGfqjB xNfUN+hJAMpbtF0CjRX/2/zqoAqn9K9JUkgtfbq5hRPLzud1in/69mfCCUAL8ROsk/FF AcZIa/KtJx9fMDV0Ltp7eTlbZCOXAfu3UlYqepkXiPK5tdufbV5kRmJpmEtgorHZ10VN IlVtFz3beuyn890e89guDl12Te1NpatZpSNhHrStiAMxdt2M/ycQxi8M5QJ6MmDSx7rB iVkg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=AbOSW98o; 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-3746-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-3746-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 l189-20020a6388c6000000b005f7af029769si692874pgd.21.2024.04.18.15.37.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Apr 2024 15:37:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-3746-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=AbOSW98o; 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-3746-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-3746-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 94136281C39 for ; Thu, 18 Apr 2024 22:37:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6A8181E51D; Thu, 18 Apr 2024 22:37:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="AbOSW98o" X-Original-To: linux-bluetooth@vger.kernel.org Received: from mail-pl1-f169.google.com (mail-pl1-f169.google.com [209.85.214.169]) (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 3042A4A20 for ; Thu, 18 Apr 2024 22:37:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.169 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713479839; cv=none; b=Ubmuc1vGEPW/HwdISkaLcBDHLl9lavQF0L6Ii7087xglO0wO/uWNC9FgZTo4wDuwUnyJ5s5gTQ99XxxuwvaeLdg3EGhN8sPPOci8N8Dda3sIx8XqbN/J7ztkg5vno8bSiVgYg2qXypP7Uvc0DulSJfrDUniInUcks/3XGMJRjb8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713479839; c=relaxed/simple; bh=Xbgd/exa8qf/QYBD1lldu+SDodYLutGvqNZOu5u0qXA=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=fngqcE/dceAVDi/So7JARR92ogYyN+sB4YxzaAZdHJpEBIobV0XaGokey/rmZPqlIBa3HZbaRFSzOOjaS+MvLWq+9iCz3Kgpb31T7pprqxvcP6ztyRkSvZIkFgTESJk3ta0MSIqMRChborEU0k7RkN2TJ/IRY5ydNWhBYxPtMJw= 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=AbOSW98o; arc=none smtp.client-ip=209.85.214.169 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-pl1-f169.google.com with SMTP id d9443c01a7336-1e8b03fa5e5so5363665ad.1 for ; Thu, 18 Apr 2024 15:37:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1713479837; x=1714084637; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to; bh=7okPBaveo1ZiS5BzkmL1UYE8cQkDLuGYdlHLujOhpzc=; b=AbOSW98ooy6lgQSSeIfoNo8VA0uI8vD2eJ9FbxlNNfOBrCywByOOdKVbDquByivNX7 dvgE3PSpy5/Qyy3s/b9bURoR0Q34/1G0MTbxcoDnbeExj5NPHMoEnVGBQExmKtzp5NYw EvO/KOAT3huI2h9JtvkYiX7h8SkDrlhivn9iEPWf9UG00ImEBRqb9Fh7ppgw42D38Sga u4UMSIS0QBKdlJFo9BQKR4yOSn8afqUA/jSNEo9TRTcetq/fwKD8vmldVoM/1H+Z7+lF 3Xlw5KBJCMGnZqELdtpviSad6DA4O3q0FEhrYLKdde7Tr284Hzj4TYN0FCCH26mf7rhm LjPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713479837; x=1714084637; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language: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=7okPBaveo1ZiS5BzkmL1UYE8cQkDLuGYdlHLujOhpzc=; b=Xqnz84Pk5DcAqEE5oH8JWJ7uDMrxyxHT4JI6xR1DSQHwF9hbHYBkzHeGIe8UkQtnQN CAE9mtaAfH7u7pyAzGkLT39698ldbuEkQK5nWzS51UU+vb26iZqssjFetuUp/s3GYXxt w1JPeRvpjJSy5pCUNiWseN2Vr4p4gR9skLpbWca+9llxAUIazCTh2y0QpOWarlKWbiN9 P6CmE9yGlT4CYoOisVoaLL4xLAm8800vGooaQLiHjM5GMps+00A30kTt4nPc2jZpLRYj Z6PyzUV+daajj6jjJpz7ZLGJXufMYqptTIu7oQ+Cf73w3I6orZUDYQ3mdtD4G5x4l/EH oFkg== X-Gm-Message-State: AOJu0YzZQI4eW7S4P6gTGL2bNPjqRZF3Pn2GMjOynEuh5A5oxB9MjVtX CNPeJf7SCC0HPGv8iMwtl/Wet7P0SJd5EFKvFu09FSgbOVQ1wPD08oRRC9pbfrE= X-Received: by 2002:a17:902:d491:b0:1e3:1542:91e2 with SMTP id c17-20020a170902d49100b001e3154291e2mr551277plg.46.1713479837383; Thu, 18 Apr 2024 15:37:17 -0700 (PDT) Received: from [10.36.51.174] ([24.75.208.147]) by smtp.gmail.com with ESMTPSA id o24-20020a170902779800b001e5119c0f9asm2042123pll.66.2024.04.18.15.37.16 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 18 Apr 2024 15:37:16 -0700 (PDT) Message-ID: <52394d97-04c3-4f77-aaae-f1e152cd5632@linaro.org> Date: Fri, 19 Apr 2024 00:37:15 +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 v1 1/2] Revert "Bluetooth: hci_qca: don't use IS_ERR_OR_NULL() with gpiod_get_optional()" To: quic_zijuhu , luiz.dentz@gmail.com, luiz.von.dentz@intel.com, marcel@holtmann.org Cc: linux-bluetooth@vger.kernel.org, wt@penguintechs.org, bartosz.golaszewski@linaro.org References: <1713449192-25926-1-git-send-email-quic_zijuhu@quicinc.com> <1713449192-25926-2-git-send-email-quic_zijuhu@quicinc.com> <83a1c837-e403-4da2-83c6-ee3dedbc1fe0@linaro.org> <7c5b85ca-e897-4798-97e7-955478c57d12@quicinc.com> Content-Language: en-US From: Krzysztof Kozlowski Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8/6CBVjEWqD06/RjI2AnjIq5fSEH/BIfXXfC68nMp9BZoy3So4ZsbOlBm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Z5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <7c5b85ca-e897-4798-97e7-955478c57d12@quicinc.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 18/04/2024 23:16, quic_zijuhu wrote: > On 4/19/2024 12:52 AM, Krzysztof Kozlowski wrote: >> On 18/04/2024 16:06, Zijun Hu wrote: >>> This reverts commit 56d074d26c5828773b00b2185dd7e1d08273b8e8. >>> >>> Commit 56d074d26c58 ("Bluetooth: hci_qca: don't use IS_ERR_OR_NULL() >>> with gpiod_get_optional()") will cause serious regression issue for >>> several QCA controllers such as QCA_WCN6750,QCA_WCN6855,QCA_ROME, >> >> The pin is required on 6750, 6855 and maybe others. You cannot not have >> the GPIO. >> >> This is no correct fix. You provide wrong DTS and, instead fixing it, >> try to revert kernel code. >> >> No, fix your DTS first. >> > no. your point is not right. > > 1) do you have any evidence that the hci_qca driver must use reset GPIO? I think we talk here about enable-gpios, right? Then the evidence are bindings. > 2) why does original design do error return when get GPIO error if GPIO is mandatory? If GPIO is mandatory, then it is expected to return error. What is the problem here? > 3) i meet many customer cases that BT are working fine without hci_qca operating the GPIO, > there is why HCI_QUIRK_NON_PERSISTENT_SETUP are introduced. Bindings tell different story and nothing in the commit msg explained this. You did not correct bindings either. > 4) does the reverted change solve the issue your mentioned ? ??? I did not mention any issue. I am saying that your rationale is either not complete or not correct. Specifically, the enable-gpios ARE currently required, so whatever you claim here is not correct till they are required. Make them optional and then your arguments could have sense. Best regards, Krzysztof