Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp652777lqd; Wed, 24 Apr 2024 12:40:55 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWvHn9+/72r2NbviFQruhlffiMND1VspzLvQpOWA28j0lUPtLPEsNgtcbT/O5E68Is9JvLpsXFIur6kKSQ/pZA28oXP1oIVZqKWAMaA4A== X-Google-Smtp-Source: AGHT+IG5fK7EQOplpA3tZNPAiCSn+CNxHt9UeeiABpjKlQQBUmBIH03TFIxLGRtzq3rmDMvhnXPQ X-Received: by 2002:a05:6a00:3a27:b0:6ed:21d5:fbdb with SMTP id fj39-20020a056a003a2700b006ed21d5fbdbmr942371pfb.8.1713987655213; Wed, 24 Apr 2024 12:40:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713987655; cv=pass; d=google.com; s=arc-20160816; b=s0pw/iMzOb5uky0hFSueBRH5mjH2ZJDGMmIxbDDPNohxDL+06rsYchJRK+DiJ/vThA ll4s56Y8jZw75vkAjliplOJ64I67sJzzapPrBE8PEjflzNcSwKb9Gk7RiFdVMbt9EjTm 86PPsToBfrKJSU50j/lkY+zyNLIOaJKYXPFts2QUarrrWlzLXgM1Fp2l3RN8dh+aVlcB bnvOWpJ/P/Truoyrk6sNfEwP5ukZD4Cc9scl7Y47UCBQfUuE09dc/LIV/e3VVahp5dOv Tw3XAvJqWCFv2UaC2+3fnWfRTKPhPx3fyQiClBFpEH4OxFxoxS9v1jf+rAs10wIz4Xey GiSQ== 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=4ugs1aaKuafsico58z5SHN4FhJ6IuclqljAMUUzx77I=; fh=RTOhb1Vhf8QB9Yb8Ofn0UGqEe730XkxlQp0S4xDzUZ8=; b=mb1zV7DZvmcOJXlQ7VNURySaDe9KVSsiLE8S4K0qHTVhNzEzUfXBR38vGbDYwAwuOF o0D2mqKo+5ZhngLLpiwYKjiWrNkXICssD10bHeGjSgmONJLrMLR8kwjiZpAQb4MxS28Y Ed8XsG/ZVcZXHaLqgkcyA0RkAKrdwLeYMiMra+diFUqM9hbOxpzSt3S01WqYTFLmVnva Fdq42tVWiektuDBY4KofXP5LV4G1XryAHxHfCSpWzvaN1ZOHRwY6te9RLv7N9P/hLSTc OEl7jcQWBywv+kJJFDs493yS95gbAhAf3QxWwlSkUaTuoUWmspN19TalpAPiwE3tWbiv cRFw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XqkM9jto; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-bluetooth+bounces-4044-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-4044-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id b2-20020a631b02000000b005c66a3f3f5bsi11388117pgb.745.2024.04.24.12.40.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 12:40:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-4044-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XqkM9jto; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-bluetooth+bounces-4044-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-4044-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 84B4FB272EA for ; Wed, 24 Apr 2024 19:13:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6ED3B5C8FC; Wed, 24 Apr 2024 19:13:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="XqkM9jto" X-Original-To: linux-bluetooth@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 CFF5C5D465 for ; Wed, 24 Apr 2024 19:13:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713985984; cv=none; b=HOfgBXA8D1FPJ/9eQWs5uRUI5nm8kHTniiauFnq03igJrbQAMloV55gJ8YveW66DyRVk0k0ftFgnCQ8PzTU6aaEYFBppXKkl5Elu12sED0BQCUnmqMhFFff6AujVNQxKXGymiRMtSVmbYuYj0iSfsZKhA7g5z+zdeydURJKDJqA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713985984; c=relaxed/simple; bh=ytTXcKoZzh7Kle30H6uTuJU300BKCL4ZW0etsYgF870=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=jn+uqQAWUW0Y7QF6f7w5EY87WRv4ifZQZH7w44r/mmq2aSvSFNv9vGGySsOVnyCgnKEwbecLUNNHPaP2dFVx3OGcdfX3xv0Mgy9tfUdFN7urSvD8SMQN2aIi1d0SPhZSTocXRM3t9GQdeWfayA8KFsE72gbcPwp0nMRHNpzsIIw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=XqkM9jto; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id D90FFC113CD; Wed, 24 Apr 2024 19:13:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713985984; bh=ytTXcKoZzh7Kle30H6uTuJU300BKCL4ZW0etsYgF870=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=XqkM9jtodhb4NbcQCb1/1+T1HM/Aqq46w+2pxVv4UqTFKsJun/pBpJW/j7PjIqtrE Doms9lGyqUG4td3zRc/d5wOlQjNo0e4zmfbCNcCJPLAiJBJfhJbe/b9viRkSoZLnNO 3altY8eZ6XAtvoLFHYbIqpw+f0nNz8LArA6HlLKL2lURF6SALYoh9sDnu5W5IE3EP9 nwuqZX/gfz3glmIx+2wdbfpnBV6mrfRySEuf9PlB1bcdHLe8jjWvnKd/DNQ8D1ZqBJ 00E7rLb7q8Z1ToGA0rgCliQOYsRXeoV+qz15lXUK8Pt1IXJNOCJHbq7foODYSRLacX CG9xVqgmh+Dmg== Message-ID: <49cf0a3d-5f52-41a1-9858-692f48d06b88@kernel.org> Date: Wed, 24 Apr 2024 21:12:59 +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] Bluetooth: qca: Correct property enable-gpios handling logic for WCN6750 and WCN6855 To: quic_zijuhu , Krzysztof Kozlowski , luiz.dentz@gmail.com, luiz.von.dentz@intel.com, marcel@holtmann.org Cc: linux-bluetooth@vger.kernel.org, bartosz.golaszewski@linaro.org, wt@penguintechs.org, kernel@quicinc.com References: <1713947712-4307-1-git-send-email-quic_zijuhu@quicinc.com> <0cba3838-917b-48af-ba8b-2ef60714943a@quicinc.com> From: Krzysztof Kozlowski Content-Language: en-US Autocrypt: addr=krzk@kernel.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/BIfXXfC68nMp9BZoy3So4ZsbOlBmtAPvMYX6U8VwD TNeBxJu5Ex0Izf1NV9CzC3nNaFUYOY8KfN01X5SExAoVTr09ewARAQABzSVLcnp5c3p0b2Yg S296bG93c2tpIDxrcnprQGtlcm5lbC5vcmc+wsGVBBMBCgA/AhsDBgsJCAcDAgYVCAIJCgsE FgIDAQIeAQIXgBYhBJvQfg4MUfjVlne3VBuTQ307QWKbBQJgPO8PBQkUX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ZQNANItt7+ULzdNJuhvTRRdC3g9hmCEuNSr+CLMdnRBY fv0= In-Reply-To: <0cba3838-917b-48af-ba8b-2ef60714943a@quicinc.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 24/04/2024 11:22, quic_zijuhu wrote: > On 4/24/2024 4:44 PM, Krzysztof Kozlowski wrote: >> On 24/04/2024 10:35, Zijun Hu wrote: >>> Commit 56d074d26c58 ("Bluetooth: hci_qca: don't use IS_ERR_OR_NULL() >>> with gpiod_get_optional()") has wrong logic for below case: >>> >>> property enable-gpios is not configured for WCN6750 and WCN6855 >> >> As I said before, bindings say this property is required. I already >> asked you to provide rationale describing hardware and update the >> bindings if they bindings are not correct. >> > 1) > you ever given below reply at below link > https://lore.kernel.org/linux-bluetooth/52394d97-04c3-4f77-aaae-f1e152cd5632@linaro.org/ > > "The pin is required on 6750, 6855 and maybe others. You cannot not have > the GPIO" > > 2) for property enable-gpios, they are required for WCN6750 and WCN6855 > in my opinion, i am a member of BT team. If they are required, then your commit msg is not precise and code looks incorrect. > > 3) only care about the case property enable-gpios is not configured, > the original BT driver design logic indeed matches with binging spec's > requirements before bartosz's wrong change What? There is no such case according to bindings. I told you already two times: Either change bindings or this is not valid. > > 4) please ask dts owner for help if you suspect current bindings spec > has something wrong. it is not my responsibility for providing such > info, that maybe involve CCI. What? What or who is DTS owner? I do not suspect bindings are wrong. You are implying it. Anyway, if making driver correct according to bindings is not your responsibility, then this patch is just bogus. > > 5) gentle reminder, please realize that there are many lunched products > already when you try to change some important logic, i don't suggest > change important logic or setting if there are no actual issue reported. What? Best regards, Krzysztof