Received: by 2002:ab2:1c04:0:b0:1f7:53ba:1ebe with SMTP id f4csp127349lqg; Fri, 26 Apr 2024 10:30:33 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX1tf6M8ffChTzKEdz0q6a1XLIXvG5vV49pGL4Uj4sbZtPJn3Qv0pG9Y9cqjYcKnfsxUoA9RhjJw5W8Ntc+JSWhS/ZesAJdkWDBTnrznw== X-Google-Smtp-Source: AGHT+IFA29ZKIhMKQDc748brRn/eBKbCO+bw2qcyY+5nyYXHvmXS67YoFMKxv7gfbXJf0v7WRnCS X-Received: by 2002:a05:6a20:1008:b0:1a7:5184:8d14 with SMTP id gs8-20020a056a20100800b001a751848d14mr3472865pzc.46.1714152632858; Fri, 26 Apr 2024 10:30:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714152632; cv=pass; d=google.com; s=arc-20160816; b=H1i1bxSdqKnTrFBRvvxrC+PHKRP9Z9FAbehchs+dGka5ZRlVjCvKYbJewdcRnr23/k UGSxyR+NYbgqlAGLoYqsagiCZm/hDz+iE3FkxnLb1AkR6uB5trAeAiLwVdEk/x/fgZkg DSs93qFVPZ5c+Q6Cmer6sHM8L1ghEWvLcwgfZOfDqytumu2A1HCZFiXj03Spt7040HsL WQAsbWFDUCgzKvojEHCWzAaq8YkcWQ5JFfeXwpxs2zMsahI6nsb2PLlFCFNwCaSu/K6A x8xGReDV9dFMuG7nn1cTFVkIbDRogJXDkpbZLJufQzN/oC/wX8Lahqu4dvEDr3IBvq03 EcJQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=4UJceFXtAj6qD9Iyu1pCp/3Owr12F1F0llf1/MqSjXo=; fh=YDHVBVIy+cTMYmmBdqrKQgayDUABzUvKazNIX+yR2jo=; b=LKoBtrf0cRciOBxiOFvsidTUuhyf3uHvbyc47evNJk6bp2li0B02v3jsDahsJmXhtp OM969xTwy39S5F1AbKYD0IWPhJoeHt+BgR18ISEYJ26gX1KDu/at+3EllFTQ5OfBgoQp FdiCGwUHipqnILmlehV32SpgHOV23LaiUGnB0r+acgJGMbLWRlsEt21PDAfeZ2ETHA6T aWXoqbDXkVICJQ+dZCNJWJal0au0EudlB9YRO/NspVtMsVOvOfwdFEQAc+RBWA0qDYwR 5lfMrIFEnEo7Rs2ROQQ6XkQ3kqazqF0OYVJFkeoC2RbtYqNvjULi2MrPQcmYjxZpid8L surg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CX2YRQHZ; 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-4125-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-4125-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. [139.178.88.99]) by mx.google.com with ESMTPS id f22-20020a63f756000000b005d6d6f8cbddsi15168847pgk.360.2024.04.26.10.30.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Apr 2024 10:30:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-4125-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CX2YRQHZ; 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-4125-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-4125-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 5D6F3287D0F for ; Fri, 26 Apr 2024 17:29:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0C46617107F; Fri, 26 Apr 2024 17:23:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="CX2YRQHZ" X-Original-To: linux-bluetooth@vger.kernel.org Received: from mail-yb1-f176.google.com (mail-yb1-f176.google.com [209.85.219.176]) (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 7937F180A82 for ; Fri, 26 Apr 2024 17:23:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714152202; cv=none; b=Jf4DwYFtL9N9HnG5/0iuFFapgRtGULqcWEgP9T1y3pIU58F2e4OIKuW4I3d0yQ9B4kuAeH/nAJFoyXD2mOtksBYvRengqmG0ZPtAnrQyIItAjhggIT5es3tiVKFp9WR29Lz3+fva6AeLHEzRbHVziDXauylwQlOXUUiVOSlqMD0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714152202; c=relaxed/simple; bh=TbAqAZMa48AEaJa5lPdAp3ni2GqN7/ZGJWpLUJXyUQ4=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=T7MOjZmTuuZ9WP7yGvkwzF9o9CH6gqBnvWqOsc81bc/KUjds3WdZblWFSPcQJesKDq8l4xeM/GpjZ26SocJ2dGFA3mog8eF+bJLs8M/ZvYdrK5mGJmji5EzndY5SKYf70Ec+ksU9IWhnZY2CBDDbO6mXNjBUSKMTaV8sF/daWws= 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=CX2YRQHZ; arc=none smtp.client-ip=209.85.219.176 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-yb1-f176.google.com with SMTP id 3f1490d57ef6-de46da8ced2so2713713276.0 for ; Fri, 26 Apr 2024 10:23:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1714152199; x=1714756999; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=4UJceFXtAj6qD9Iyu1pCp/3Owr12F1F0llf1/MqSjXo=; b=CX2YRQHZ0XnZ0z6mL4+jRpPpju8zmhm6gWj9wVptAfmANvhZHZg2Wvs+FuFGedK88b HAYyS4busKpDaLfqHFTST4GPkzDGSdNv0t9vYv4xKiJXHHvbVfRqi9EhgqtnCSQDP0ZE pKHJ3vteVcbVjdjuvCq+tcrfHjxLBi/l6J+ijtk9QSLn0aZ/rZzZ36gc0+0NkYUDITf/ pYKtKjC9m6532FLREOlMmCbWqyRvoLnug8KF6CTYDuQTCO4ruwRIbU6SW7bdh9vCOtXK KYxYDS3OCgMmdfi4F13r28MQWxm4tWXZG9vB2xddRZJfVY2/1Z4fFAhDjy2RqIpClWtZ IXgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714152199; x=1714756999; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=4UJceFXtAj6qD9Iyu1pCp/3Owr12F1F0llf1/MqSjXo=; b=SYXSHSal4FeT25jv6BgK/XODHuBUUI0zWO+y0ht/oiF6CmmCvPbgsaK+g7xdUrxsku s8TUSaAgob/8mzbeR6V2UPLbPy7N/lyUqNeOLr3LZ8NGKPNl1lOjL3U5/3FU1BNwzItd rGhXN9s75n31Vr+qulpq94dGPm19fcXMoJBHXzt/No7oto2DeKLFUpvUomK8qC1c111R 4yMN4SQUHZ2cRmk1UsmuK9obt87QvTZ9P8zAVf06XYaMpJ8DdBgMFgDk3CasspRtqYRQ I01an5+7WtmRbQTew4ZDtjTRpJp0tWU/l5MG1qX87N3ha1NzhSJGPJ84anHx1fW7UWx5 7d5Q== X-Forwarded-Encrypted: i=1; AJvYcCXBZ9R2zciBbDk93JUBUnTESQjhPhCM8787XYoyyqbncrDMkbXaOPiFJUZBTZpimyPl9/UJc0oVDfuLmZ9d4blRCavtrX4lUNq7yoUEP3WZ X-Gm-Message-State: AOJu0YxQTUv0ZT0eEcQmO1agywcWfuUbM6PfOuVRsieWsU2iRuFlLJA6 zumwqtophC+la1Ry5GEKCtvlC+YqvF4OK287RQ0PmOBsXWczL68gqNX0z7LmbIeFqQyQqu40i74 1Hh5uWFMG7MFkOb9FgjgHr9BX+EZFD7xXwzbnaA== X-Received: by 2002:a05:6902:4cb:b0:dc6:6307:d188 with SMTP id v11-20020a05690204cb00b00dc66307d188mr3324902ybs.25.1714152199442; Fri, 26 Apr 2024 10:23:19 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240424122932.79120-1-brgl@bgdev.pl> <171397322792.12898.8815870206676100532.git-patchwork-notify@kernel.org> In-Reply-To: From: Bartosz Golaszewski Date: Fri, 26 Apr 2024 19:23:08 +0200 Message-ID: Subject: Re: [PATCH v2] Bluetooth: qca: set power_ctrl_enabled on NULL returned by gpiod_get_optional() To: Luiz Augusto von Dentz Cc: Bartosz Golaszewski , marcel@holtmann.org, krzysztof.kozlowski@linaro.org, linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org, wt@penguintechs.org, quic_zijuhu@quicinc.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, 26 Apr 2024 at 17:09, Luiz Augusto von Dentz wrote: > > Hi Bartosz, > > On Fri, Apr 26, 2024 at 10:37=E2=80=AFAM Bartosz Golaszewski wrote: > > > > On Wed, 24 Apr 2024 17:40:27 +0200, patchwork-bot+bluetooth@kernel.org = said: > > > Hello: > > > > > > This patch was applied to bluetooth/bluetooth-next.git (master) > > > by Luiz Augusto von Dentz : > > > > > > On Wed, 24 Apr 2024 14:29:32 +0200 you wrote: > > >> From: Bartosz Golaszewski > > >> > > >> Any return value from gpiod_get_optional() other than a pointer to a > > >> GPIO descriptor or a NULL-pointer is an error and the driver should > > >> abort probing. That being said: commit 56d074d26c58 ("Bluetooth: hci= _qca: > > >> don't use IS_ERR_OR_NULL() with gpiod_get_optional()") no longer set= s > > >> power_ctrl_enabled on NULL-pointer returned by > > >> devm_gpiod_get_optional(). Restore this behavior but bail-out on err= ors. > > >> While at it: also bail-out on error returned when trying to get the > > >> "swctrl" GPIO. > > >> > > >> [...] > > > > > > Here is the summary with links: > > > - [v2] Bluetooth: qca: set power_ctrl_enabled on NULL returned by g= piod_get_optional() > > > https://git.kernel.org/bluetooth/bluetooth-next/c/48a9e64a533b > > > > > > You are awesome, thank you! > > > -- > > > Deet-doot-dot, I am a bot. > > > https://korg.docs.kernel.org/patchwork/pwbot.html > > > > > > > > > > > > > Luiz, > > > > I think patchwork borked when picking up this one, here's what the comm= it > > trailer looks like in next: > > > > Reported-by: Wren Turkal > > Reported-by: Zijun Hu > > Closes: https://lore.kernel.org/linux-bluetooth/1713449192-25926-2-= git-send-email-quic_zijuhu@quicinc.com/ > > Fixes: 56d074d26c58 ("Bluetooth: hci_qca: don't use > > IS_ERR_OR_NULL() with gpiod_get_optional()") > > Reviewed-by: Krzysztof Kozlowski > > Signed-off-by: Bartosz Golaszewski > > Tested-by: Wren Turkal" > > Reported-by: Wren Turkal > > Reported-by: Zijun Hu > > Reviewed-by: Krzysztof Kozlowski > > Reviewed-by: Krzysztof Kozlowski > > Signed-off-by: Luiz Augusto von Dentz > > > > Reported-by and Reviewed-by tags are duplicated. One of the RB tags is = missing > > a space. > > Oh crap, should probably not trust patchwork would pick up the tags > properly, that said the pull-request was already merged, not sure if > we can do something about it now? > Nope, if it's gone upstream then it's too late. BTW As a fresh b4 convert I highly recommend it for managing patches. :) Bart > -- > Luiz Augusto von Dentz