Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp184691lqd; Tue, 23 Apr 2024 21:10:19 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWaR79Nw+PcN2zcu19psJS5Nq3KGDGGw2AMoTi+/shEeDcJAZn2+wpW5B4RHFLqnhdBeG5bUUnayEegVaDepqaYejVdLbfENhAAAWJj9w== X-Google-Smtp-Source: AGHT+IE8fRUgmSss2iKv5UUPjR/cNXFrmMpQd0zaWpumoAjJMOWQLY6jxJIkuBlLIjhglRlRxD5e X-Received: by 2002:a0c:d80f:0:b0:69b:66b9:8d79 with SMTP id h15-20020a0cd80f000000b0069b66b98d79mr1253269qvj.15.1713931819340; Tue, 23 Apr 2024 21:10:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713931819; cv=pass; d=google.com; s=arc-20160816; b=Gqb4Roq/CU4IhpQkrvAseaVUCvHKMKUQqkwplKsCc3PWnqXYobQRrErtSKOK8DNIV/ C8Y8uzyGpkP0xQiy9mV1Re1TK2gUNHugIoVm33gvLMLVoNcqfMWwWdDe2sCXleWEhnAQ iu6YGuhQmD+bM3+XvHW4eGv3IVXYVH+BqjEiA2Kk9bEJ5zfDwzIUZEeQvfDClqRO/Ij2 Qm+/SzmDTbHqed5jUF/gY40B5rnHrarDr63dPqeD6cuPVKyk8UsGlt7GA1aEoE3EfIf4 liZ+gBW/mnODivAYUuDiaIPiBJtPed5qiIZ2353EUGoTOji4hpOdTEBLpvIUaAkdNVDJ nfig== 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=Y6xml2FXGnImdmU4NErN3WJ5kJgBbG/s+B+H+8dqXT0=; fh=4aKTvLNbft5JN/ktnolRm0kFRHlSHQlUGldHQDd+F3Y=; b=DBzQdGlEdpqbDWnAq+4k61QGBSMk8Cn6KihKcxRM6LrslhwTragoE1/+BN78R34uQP x8puGN33u2WWQrHUPfD1Cv0Ph6boTjACc8zqRPiSWJOTxgza8+/FoTpF7z1hxR5/qe1y h2E9auwfbDYw7J0DZWscgq6+95eXQlt8RtqzDPA+aKZBGdnA19Ew4BbmM64ocTMsm2tv KfZwF4epRgqu8vMFtI0cNCytZvOChBkAVFh0VMjKPHkOF0AWdcJOhLjXutj0fCWOKaDC 05TeqJe9r2PbPfNru1Xfn9/M8tqz2W/RHmrhZcPMvtfDhuK2VkCLUmopaEmI9lyU1tNr /r9w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jvJPDrsP; 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-3926-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-3926-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id pe12-20020a056214494c00b006a05aedc976si9036801qvb.121.2024.04.23.21.10.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Apr 2024 21:10:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-3926-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jvJPDrsP; 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-3926-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-3926-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 0B59A1C2244C for ; Wed, 24 Apr 2024 04:10:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7358613C8F3; Wed, 24 Apr 2024 04:10:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="jvJPDrsP" X-Original-To: linux-bluetooth@vger.kernel.org Received: from mail-ej1-f46.google.com (mail-ej1-f46.google.com [209.85.218.46]) (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 4A9FB84D1F for ; Wed, 24 Apr 2024 04:10:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713931812; cv=none; b=OK30PptPgF7E4MfpKf1KiOazaV8OhcOdtrhqwHwBsVQ2vXjAOVuZcrs1srR6sTHSY3uL57RQa1Y6tUHRgvf0PKUAgvEWfZlVvS72HbxOiD5UHtTmt8MpJfygDwMgPcTNl0N0Z7QUNW5vRiwa5yH6ePwy3ZiXrXpf2x0yTd92VAU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713931812; c=relaxed/simple; bh=5CTEDUKhuty+xSK64fcrORKB66CUbX0rNW3/tOCKzD4=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=Ngc4YgMuCj5CCBVaSJOsvGOw+H3bcUKT22lAEtS21VWxSkBJLceYTpcIZwyN0XpuqTpqJzwKC7lW0Tfu/6sijhGxOuPnhn6fmES6IkQzfRx/e3PSpyFBppDWuGYgvlm9Yq1R06F3TSiUKzvYFaYu2ZmAxgomw2Ta5DI9/F1Rrco= 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=jvJPDrsP; arc=none smtp.client-ip=209.85.218.46 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-f46.google.com with SMTP id a640c23a62f3a-a56d7d457a1so301255066b.1 for ; Tue, 23 Apr 2024 21:10:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1713931809; x=1714536609; 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=Y6xml2FXGnImdmU4NErN3WJ5kJgBbG/s+B+H+8dqXT0=; b=jvJPDrsPurMeH/gwr0XW+xEhsZTUAQcUVJ+aKC0hx0DxEzt1CAySdZcSmF4Gf86uUu k2vOyCNblx1eerMAR+mMD6DEKkarBpq3+evU4NY3D9vJF5BycRLY6oiXfPUCOgHRBgAd BMpKUIg8R8th5a/YKxVsU8vSPNUV79kRJQIpxAChXnO4OT++aUiGFKx75HB36vDAxdsq tKIEWxa7PyqT/iGTjzN9OjlzjO45ARhkif8kfuy+qkyrWIm30HoyXDPlm5D3qs/DRtIb ryhrhXTqRefzht1jWB01uy6TqR7AgyHtcncTOW9JAtI2PbfOn/0jjGpMc0o/VSnhwAmg hnKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713931809; x=1714536609; 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=Y6xml2FXGnImdmU4NErN3WJ5kJgBbG/s+B+H+8dqXT0=; b=HWv/uZ38i/ii9i9vrI/uBVGWOrmgHsvXcCf7WLdQYVGej+rrnlyOabpxcDGdBJVROM Coff6pIe+EPh3cKDq3RpjwT9uiCErXyRdPFdiIRad+kGFEyPAtNU0dZGx3zoePE88Zpl jahBqDyfZL8C2JiP7Mze2BsuzVqcZG+J0PNHdZ5XIlxs8Xb9VpznaHoh7ty1CfwpJahP HC8sQAf/zf9gyMsdkcqC1JMZ9MGV1/iuFzalYXihBYhmguSN5nHldvDxeKpzUA9beEF9 Z+VAjmzS+E/RyimJc3cNvPCrpokz6XajnFB91CKWs9G3+lG6M20l2dQKnYpqNPOC2oTc dLyg== X-Gm-Message-State: AOJu0YxDTpJuYjIk1VEa86TY9sviUQC0T/l7Uomcfaks8jifd1z4fo9O oU7TwczgaQsSTege7+yXO2DQTYwModR3NzsuwCN4UTInQX8y4NWAvqkkuucY7b0= X-Received: by 2002:a17:906:4a10:b0:a58:9707:6857 with SMTP id w16-20020a1709064a1000b00a5897076857mr43702eju.12.1713931809560; Tue, 23 Apr 2024 21:10:09 -0700 (PDT) Received: from [192.168.1.20] ([178.197.223.16]) by smtp.gmail.com with ESMTPSA id bu6-20020a170906a14600b00a57c75871d8sm2367499ejb.106.2024.04.23.21.10.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 23 Apr 2024 21:10:09 -0700 (PDT) Message-ID: Date: Wed, 24 Apr 2024 06:10:07 +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> 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/BIfXXfC68nMp9BZoy3So4ZsbOlBmtAPvMYX6U8VwD TNeBxJu5Ex0Izf1NV9CzC3nNa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HtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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? Best regards, Krzysztof