Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp190716lqd; Tue, 23 Apr 2024 21:32:00 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWXsLpBaiWfwM76rH1rnLRrtOest9FFXygXb/XMTd3xEF2X3wgFQOUOBdt0OcnbAktWuI8MvRrXPklEXlQ+Feky7G2Bdapc9lzZY+yKnQ== X-Google-Smtp-Source: AGHT+IHMilsjaRmMagcT3h2sWQRtuYKpMlR27LuLBQCGg86C8z1AellfBEhP1/ZRCnFCTW7z8VxV X-Received: by 2002:a17:903:2486:b0:1e2:a9f2:2abc with SMTP id p6-20020a170903248600b001e2a9f22abcmr1336789plw.23.1713933120219; Tue, 23 Apr 2024 21:32:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713933120; cv=pass; d=google.com; s=arc-20160816; b=0jYFdA73aepuK0e0FAyj7hrwoJ81iphyucLL68XQ5bLqojW04LlSoQwM5Y06yPkIcM fpT5R87QCibNiiUOFk/9JAhAoPFJTnBt4vccvn/CzqlO8xQtrU11IBp4lATYnv54WHar o60tRG2xu6WQL6v9Ir3DOQxdR/Hj97suuUPOiDctdwEPka9dQ7ABUZmy1T97ILM3nZSu 0Tw3Eq5CCiYyvdwES9/XnG22+1iLtG883yTGNHZwRb+29BYZ931gP/M2XjI6Mq7Y6yt+ g6aYoXMrauBwDw4YsYF+iuxTX+XKdHHCBRZpKS3vgAdzzxdaYCArP99lOUDdqX8m/o+I rxyw== 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=ApHvdHtnNfZYj+tanKKAuhkY8ePx1z5sxaA9LujT9l0=; fh=4aKTvLNbft5JN/ktnolRm0kFRHlSHQlUGldHQDd+F3Y=; b=cIZiTUyXvOlxdS6Zjl7AhRZdCX5E8BzXLktEiZKdowOcpg1eXNo5HMA27agXKCBfRg w1f0iqYR06vAel/v9livX3JLYk2/t/bNH8jCmkgcOtNURhXYSySxDk1+vmrwjc2nuqA8 ZNuFLD7xQDH5knPD0/HGfyw3kVL9mJG15CmqP9J2GxE2HgqeeGYnTolt2nItwwCqlbWO nKU+4B8H6gVvfCeWXuULXlC1Ahq0jCvX/UGbPPxcdDXE9oB62BkyjWe4HaB9EGW8yWhk G4ro6HO6rhtg28T8grtVrGMaJ6uXqFmkgrk9cce2y0XglPaIKRmGkv+UBtol6CMUdpjP SwmA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="ca1/vz79"; 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-3932-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-3932-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 h8-20020a170902f54800b001e2a7f5099csi11045662plf.275.2024.04.23.21.31.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Apr 2024 21:32:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-3932-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="ca1/vz79"; 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-3932-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-3932-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 EA930281E7F for ; Wed, 24 Apr 2024 04:31:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 646B014D283; Wed, 24 Apr 2024 04:31:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="ca1/vz79" X-Original-To: linux-bluetooth@vger.kernel.org Received: from mail-ed1-f53.google.com (mail-ed1-f53.google.com [209.85.208.53]) (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 289FA14C5B3 for ; Wed, 24 Apr 2024 04:31:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713933116; cv=none; b=XQO7IF78jemz/wgFD7sHZtXIbfCft73f6F9Cmj2O14dijBh7HpptfnekcSeGmU8GQ1hqjBdWKdxG74Ix9WXKV2fZADojZt8ZxYY6wI1utY0m3F07Hfc0yRw5xPYfsbwZdUJ6yAHTDCh9wzkCk76J7qixirezX25hH/TTAls4TFo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713933116; c=relaxed/simple; bh=ddehf1XkqNfYW8z5o2O15QQu2jQf4WAe2w/ty1Vd4Zg=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=rZQdeRXeXbJ+3eZIrgoQCf6WNy6L0AsPTtlTnnXdS5qwCPa93lxUQcTivt0ZAG4C77HowELvpzof5/IbNP8OOk51Eh8dussJgowqsTNq/HpOrTZr5XSbJ/VfiCO3Mvuqx3VaopoXRdKabOhp/ptACPRiC2IJDFnZiCpmtjsuWLw= 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=ca1/vz79; arc=none smtp.client-ip=209.85.208.53 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-ed1-f53.google.com with SMTP id 4fb4d7f45d1cf-571be483ccaso7586946a12.2 for ; Tue, 23 Apr 2024 21:31:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1713933113; x=1714537913; 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=ApHvdHtnNfZYj+tanKKAuhkY8ePx1z5sxaA9LujT9l0=; b=ca1/vz79HaGp9zGiyMS7hbsHFriin/Z7gR5N79ExaFPSCAdJQnMlhgKda8bAd+U1Zq jPEaj1og6zmse5kjFUb9/1LYCtwnLxZVeoH3bpuC7dhn1vapuBcuHS/PD/qkUHdDWnO3 KK9YakqNWSnXqFf4DEzkExdOh5zs4g/py0hGxDXAzYkksty5L9I1qNMlwrJmLDBCyyyc 192oEEjZuXMme27hljFLoiCyvOT31XOf4LAMiT0e1Kjuu5sE01kYNLD0S3lj9qEru1hN uir1v2k+zNMsxrrN5EE99+eieQOWxJ98HehiEi7UvVkkWReF1z+ZbEl3xjnJ74jaM4bY OzNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713933113; x=1714537913; 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=ApHvdHtnNfZYj+tanKKAuhkY8ePx1z5sxaA9LujT9l0=; b=vENUKw4BdX942d/ROfvRNvErIVFVUqH//lLQr+Y1LO5nlbNh0s5rq7eCa8LqeMQeUu 9UwLu7UhzcqJcxlByq5Kdp/I0oJ3kJpjDMufBA0wdgvrD4Nl1aU/u54FzrpB5/E8lFM2 ZCYGTjrRYZavQLVwuqJ/3c9z2j1QH5NmONHmUsW/8f4DRhnfXr66JYwyQVDYDAeUCmRI JyZocO+TSoIP63nsBqqw2itAeHzHMA9yUPXZLHFVHDB5JebPptgegWb+v39RWn++gKj8 UcrhcMNi7K4+MX6fSD1QIuQ58NIRdF4xs6X0GrygUh1Z58Rjg/E8aHH+YASAZOGAhsni 1jFA== X-Gm-Message-State: AOJu0YyqzMtSqUS9J4YIxmBXns1rx0GBG04Uz2a9XULPY67fbyEtL3XP MYx6mUcKI3bsLWWYjdM5B2v6BiBKkFBST6lm+D8TsCMHJGmAXHG8tWGxq3IuXNM= X-Received: by 2002:a17:906:2543:b0:a55:8f25:14f with SMTP id j3-20020a170906254300b00a558f25014fmr682651ejb.40.1713933112900; Tue, 23 Apr 2024 21:31:52 -0700 (PDT) Received: from [192.168.1.20] ([178.197.223.16]) by smtp.gmail.com with ESMTPSA id og14-20020a1709071dce00b00a55ac4c4550sm3989846ejc.211.2024.04.23.21.31.51 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 23 Apr 2024 21:31:52 -0700 (PDT) Message-ID: <5e363318-c6e4-4874-8026-7940b434d583@linaro.org> Date: Wed, 24 Apr 2024 06:31:50 +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: quic_zijuhu , 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, regressions@lists.linux.dev, kernel@quicinc.com 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> 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/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: <8ae32009-5f5e-49a1-88a1-e330f0614f60@quicinc.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 24/04/2024 06:18, quic_zijuhu wrote: > On 4/24/2024 12:10 PM, Krzysztof Kozlowski wrote: >> On 24/04/2024 06:07, quic_zijuhu wrote: >>> On 4/24/2024 12:06 PM, Krzysztof Kozlowski wrote: >>>> On 24/04/2024 02:46, Zijun Hu wrote: >>>>> Commit 56d074d26c58 ("Bluetooth: hci_qca: don't use IS_ERR_OR_NULL() >>>>> with gpiod_get_optional()") will cause below serious regression issue: >>>>> >>>>> BT can't be enabled any more after below steps: >>>>> cold boot -> enable BT -> disable BT -> BT enable failure >>>>> if property enable-gpios is not configured within DT|ACPI for QCA6390. >>>>> >>>>> The commit wrongly changes flag @power_ctrl_enabled set logic for this >>>>> case as shown by its below code applet and causes this serious issue. >>>>> qcadev->bt_en = devm_gpiod_get_optional(&serdev->dev, "enable", >>>>> GPIOD_OUT_LOW); >>>>> - if (IS_ERR_OR_NULL(qcadev->bt_en)) { >>>>> + if (IS_ERR(qcadev->bt_en)) { >>>>> dev_warn(&serdev->dev, "failed to acquire enable gpio\n"); >>>>> power_ctrl_enabled = false; >>>>> } >>>>> >>>>> Fixed by reverting the mentioned commit for QCA6390. >>>>> >>>>> Fixes: 56d074d26c58 ("Bluetooth: hci_qca: don't use IS_ERR_OR_NULL() with gpiod_get_optional()") >>>>> Reported-by: Wren Turkal >>>>> Link: https://bugzilla.kernel.org/show_bug.cgi?id=218726 >>>>> Link: https://lore.kernel.org/linux-bluetooth/ea20bb9b-6b60-47fc-ae42-5eed918ad7b4@quicinc.com/T/#m73d6a71d2f454bb03588c66f3ef7912274d37c6f >>>>> Signed-off-by: Zijun Hu >>>>> Tested-by: Wren Turkal >>>> >>>> No, Bartosz' patch should go. >>>> >>> what is Bartosz' patch. >> >> Srsly? You were Cc'ed on it. How many upstream patches on upstream >> mailing lists do you receive that you lost track of them? >> > Bartosz' patch have basic serious mistook and logic error and have no > any help for QCA6390, and it is not suitable regarding DTS usage. Really? Why you did not respond with comments then? Considering how imprecise and vague you are in describing real issues, I have doubts in your judgment here as well. Best regards, Krzysztof