Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp190190lqd; Tue, 23 Apr 2024 21:30:18 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUgOHyuNLAuDYb6Jn+2WCPVDDvDgfHm+WabqpXxoa540nYltrPhRygpMiiu9FMtq9r0ErR0FfG/gzCnQClY1YChNcTc2GPj1Mohh8QHAg== X-Google-Smtp-Source: AGHT+IGL+M/W1Hkbn3g/uZcXM3f+u3wkrUWGdOW4aMCISDrViC360v1nUE34FwPqZ27NrVoTrSfn X-Received: by 2002:a4a:c1:0:b0:5a1:d2ad:ee36 with SMTP id 184-20020a4a00c1000000b005a1d2adee36mr1187068ooh.7.1713933018370; Tue, 23 Apr 2024 21:30:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713933018; cv=pass; d=google.com; s=arc-20160816; b=W6R506E1mxEQxagqJ0ZS2Dgq/KhG9j3hStvFWwmy4CzDUggIpHz3jwTFhQFHZ9AIY7 OPA0tMGnfxnZfJmxhw5MZ865WTQDGWQ1OVzUfFzJDxHWkbg0+7a7/veUx91JsoG2F8FL EmBBsm/VZuXGz80wKdr37YWERBigF6tZN3GC4w1+/EPcXL/Gc/FIhJ/pUd3DXPeXazNq ht4Imjf4xGW6cxrQcDGQyschCCDYQcpygvzhAI8VtjT43xaw9Qx9NMd+1wzLqkNM5NiT ZWyXCFjNYp1DAx9pUubfcVSx3MVbGScTMddOHI86Kf1qDUAs1gBdPupZntzc120rjVVQ aFEw== 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=VkZG+dfRKVCvk6n/gOBR17YOs/782cF+tijroUdXw/U=; fh=zGiLCPkA7f/8XaS0/AXBIBzSGRSkU9FPZfEuwCrq/hs=; b=F4+z7aKZUImRgll+CyR+YJOd8nK/Zv5ryGHFOUwN2eCrfc/4IYgqPDMKS5LlzktaUc ApQy8b/pWOVONZ06fvSsOG7nYOvni916pMMq51qiXErQP3n3f1nvNFlBgD9Cvt32Ap75 49cXoxkx/Ih+AqI17g4eWFkEJS9eHEb/vq59MQXhGRp+5Nb650TVEqKmeTK38btM7cpR FPpkrAGxLLDP20lWy2FklnaU7fNu3V9qg9G5uDzfvRTDKQVNRXlYirGfMSkeyP/Gk4SM cT4cDYWXCvh2c6o7EcU+FqshoxP5wCjIy1HHesD2WZ0GuYzEQa7sgK0a5z5IimXCwYpS vUCQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Wbu1ONcB; 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-3931-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-3931-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 c29-20020a634e1d000000b005f3c5cf7277si10390815pgb.508.2024.04.23.21.30.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Apr 2024 21:30:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-3931-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=Wbu1ONcB; 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-3931-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-3931-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 F1807281DDC for ; Wed, 24 Apr 2024 04:30:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4966414264F; Wed, 24 Apr 2024 04:30:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Wbu1ONcB" X-Original-To: linux-bluetooth@vger.kernel.org Received: from mail-ej1-f41.google.com (mail-ej1-f41.google.com [209.85.218.41]) (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 5679C1428FA for ; Wed, 24 Apr 2024 04:30:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713933009; cv=none; b=Apg2RiUnkcRw7k1cDu6KB3caPCSRtEMlWFzDnVGo5vwabQ9McXenUcJOnuUliM4sZPzSqjDxsugzJwHFhkqvaXITiabIqqgtbGla4BSj0/qWkS37SFh80zrEf2Jguf79CKAwF9SQstfYhD0HvBLFMsvHUocWeJ1M91q06qmlZAQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713933009; c=relaxed/simple; bh=ZNoNas49XTGU/GGPh3qbUdUAyM+kgFEb0iaYJHdmUCQ=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=PnLsjwSnleU9kS+03hbGijqywcy9pUfYvkf6bQu0LMsqP/qHtoeTJelQQgYXkpdzeyuBFLeH5Nn0NzOY/Ps2/64FlQaSLRbqf0Fco6pv99pt7RPr+WAcSTZSw3uwGivHgfa0FQqH07QOjVYUpcg6eo/Yo3YqfB9RhabDiS4wpz0= 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=Wbu1ONcB; arc=none smtp.client-ip=209.85.218.41 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-f41.google.com with SMTP id a640c23a62f3a-a55b93f5540so349161766b.1 for ; Tue, 23 Apr 2024 21:30:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1713933006; x=1714537806; 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=VkZG+dfRKVCvk6n/gOBR17YOs/782cF+tijroUdXw/U=; b=Wbu1ONcBPES22y/pJ2xav6GGc0vKpS254dmHGt4icpgjfCLZZrlFsAG5XYmDVN3N8P WEyJjvhKtQrxLMdCOcLn11EZORmmRWGBT12cLb5ZeU2/iPjVHlRLHsSbtiXfkLea09WS nPKZoOPo33YNsicZbO0JuUdFLKHciCJ6Srnt3bCSDIiXJAy9A02OztcreutzLbIe51D1 uuOANTna7Vwhix4vnNt7c1xxa91ZHnSuJdhPUh4dyyGBdbw3cGEbj8rTU8iPMqGCkSHM p9aGmDAPAmGU/+Us1Ry1d1wG4jv80Bg1O7e8GLhM9w21U9Oc96yBh8pc5rqvqyvo1Xf5 yjRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713933006; x=1714537806; 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=VkZG+dfRKVCvk6n/gOBR17YOs/782cF+tijroUdXw/U=; b=BTZfrlRMJy3LSGx1vXxfCl5O3JI65z+9HPpk7RwNzy+Y7sMkoH0oXWF3181w9Wm+ho ITug6rRXgLEjXts2qBrtRnMvQjGOre4Rq9TRZQBz5baWRbbFhxPF4ODZFZh6kanMS66L A1xX+46dNQ8Gs7sDOOz+MC2cYCYVymz+OtkS91afG4wsyXa9LbvJAHC6BxSQ8qZZBCW1 qMPcr6AAWQpQ6ucRORjnH2ZiOHxccdBKMHp24l4TE2F5XEOwAAd5OAGPzjlKw39pHP/b QrSKYP1ie5xLpJhTDXtijShVOzR2tEXaC7a2UDQoy0kfOmO2HS6FaKmpu4isDOqas1rs fDcg== X-Gm-Message-State: AOJu0YzX6Kx/NN28lnnBl8Mc6Hde39cyvQDNKRDSJD9493z0n8O1ccDX pR2EbxdTTNcn0Eq8WKN7Vvw3jDVX7IC96YLgjx1br86nXOGLsrv+RMojahCpJ5o= X-Received: by 2002:a17:907:9711:b0:a58:9748:6d6e with SMTP id jg17-20020a170907971100b00a5897486d6emr101730ejc.6.1713933005622; Tue, 23 Apr 2024 21:30:05 -0700 (PDT) Received: from [192.168.1.20] ([178.197.223.16]) by smtp.gmail.com with ESMTPSA id r25-20020a170906351900b00a55b5c365dfsm3337258eja.199.2024.04.23.21.30.04 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 23 Apr 2024 21:30:05 -0700 (PDT) Message-ID: Date: Wed, 24 Apr 2024 06:30:03 +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 v7 1/2] Bluetooth: qca: Fix BT enable failure for QCA6390 To: Zijun Hu , 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, gregkh@linuxfoundation.org, stable@vge.kernel.org References: <1713932807-19619-1-git-send-email-quic_zijuhu@quicinc.com> <1713932807-19619-2-git-send-email-quic_zijuhu@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/BIfXXfC68nMp9BZoy3So4ZsbOlBmtAPvMYX6U8VwD TNeBxJu5Ex0Izf1NV9CzC3nNaFUYOY8KfN01X5SExAoVTr09ew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Zw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <1713932807-19619-2-git-send-email-quic_zijuhu@quicinc.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 24/04/2024 06:26, 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()") > Cc: stable@vge.kernel.org > 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 > --- > Changes: > V6 -> V7: Add stable tag Stop sending multiple pathchsets per day. I already asked you to first finish discussion and then send new version. You again start sending something while previous discussion is going. Best regards, Krzysztof