Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp959646rdb; Fri, 22 Dec 2023 09:52:21 -0800 (PST) X-Google-Smtp-Source: AGHT+IHMc/2McKFGuZfdF1Xa6bxaM6VPLBt+WOOJYzRJeXXB1QFvkGwdDP2fdsFozj+HKHKMqiL1 X-Received: by 2002:a17:906:da05:b0:a26:6e93:491b with SMTP id fi5-20020a170906da0500b00a266e93491bmr1097329ejb.35.1703267540855; Fri, 22 Dec 2023 09:52:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703267540; cv=none; d=google.com; s=arc-20160816; b=AHYtJr38G0pCtxOG4kExTmzyUVcfCfeiT4+5uGTkwZymm5IDPP0tqRTOvAn6nS1JDC AnLWYfUd9nk1akZ6j3o+pSgvN2FOEVYuUFwvWuhS8sA0fs1SdXSXXnagQeAW1CstX0fY hfyGG0v6xs/8q5GoljSPQXtEWo9CWoc9Jsxnyxc9hisPkVPO3u0OJtbYqvbaG1SXUfsl SKWdz1bc8WyRuiPysV9MSmy9tCkBARE/qRn+pPt2SPqbwyV9+BSDcj2amLi6++68KQPB lv2fkM2dNlKpT9pC3mzyf/Ag/rV/RnOf5GEtybqXO6dwxN7zhTA0/L7Bvpi78fV7GzAx 3Tfg== ARC-Message-Signature: i=1; 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=UCjV6fjtLNH5x3H55hZxl+1y0FuIxxcKcoHuCuyhtB4=; fh=FZawuENm6zoKSScbnKpCBZQEQu3iRK0UzhUF4y8skSU=; b=KIny+S6F4iPgDH7mH/Rn7DM+FEMMaV3oBWija8Hscxd7/SBXcgW5I3iv6jEnSOURqL XRikh0Jn66kwlscpJSZ35xgVG7ZBDi4b0MyBmYMG1hMHxc1LLi+4WCWlzE4pLKL5zkm9 qpNuaot/dqLWLCdOTfZLQpTRdyePhXeZeKHYhIwhk18Qtl9luIkY+wOJepnB9ENbC0BB axmlbs6iAzwceoRAX6m2y7IVUloxV3yrnpXYvc7b54/DKsgx1oTMCc4Z+E1LUtGfzzz+ /xU9c9ui2NKu2ShMWRb/cDDj+B/r3DhXltCG1lvwOpEOgDEMq5EwmMhBsYzIDwriVKzV T/xw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=D8x1n+VH; spf=pass (google.com: domain of linux-kernel+bounces-9984-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9984-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id f5-20020a170906084500b00a2331f546efsi2031890ejd.1000.2023.12.22.09.52.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Dec 2023 09:52:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-9984-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=D8x1n+VH; spf=pass (google.com: domain of linux-kernel+bounces-9984-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9984-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 595CE1F235AC for ; Fri, 22 Dec 2023 17:52:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F2A582C1BF; Fri, 22 Dec 2023 17:51:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="D8x1n+VH" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-yb1-f178.google.com (mail-yb1-f178.google.com [209.85.219.178]) (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 D8D8E2E637 for ; Fri, 22 Dec 2023 17:51:42 +0000 (UTC) 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-f178.google.com with SMTP id 3f1490d57ef6-dbd71f33cd3so2010970276.3 for ; Fri, 22 Dec 2023 09:51:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1703267502; x=1703872302; 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=UCjV6fjtLNH5x3H55hZxl+1y0FuIxxcKcoHuCuyhtB4=; b=D8x1n+VHawXZg+1hryLya493jDOiMGK1YCkK70aKtRJLKAkoS2ICs76O7gjXnqSEpm ETGnG5aUCSAoUc58vgqwjUDeGFlvVuA4CnWzlKBQ14vbL3tNoRSdMdEiVZnpVMLeVrF0 uZ9TqHamLsX72lv/z9OkC9Yt/LehhrgF3zkEArJ/NMWCRGt+jRMjS7qV2qyH+MNh2UiK qYZ26hpvFlRXYfUdFdRFVab1flrx03kzJXVsguk5CX1RWkLwk/7ifK354pf4mjG4gGLM mTedjxUT8Z1cENP5uvn/seH15pDRciQ1Qr91xYiNka1VaQC1cMl+mBPt3zBbL18H2Pkh oCCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703267502; x=1703872302; 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=UCjV6fjtLNH5x3H55hZxl+1y0FuIxxcKcoHuCuyhtB4=; b=NSy4AJgAwzxZKF8MxsFUD51fkNWaVNkvmEXwBzRvL8/RYu+tjH9RLlbxmZP4td00Mi N4nQL9V4+BaRxrgpcIvzjoaWO7Hb4Bk4R2rYLVkwWnnSCKrSYyixJQXkNxc56qxVL5U3 SowZE08GFcmtXmc7rq1cQvHTLyoeGx9QptBfXyVKWC3BZ89tKN5zAAKPHuXlVMgDRKXy jRKriQLWsH8LhAJLHR+QNixKz69DSItLlf7xt6WqZwJaKQclCwaGdmQT8yDfoeaxYXmX hS6uB3XTGQbSMau6ELWBw9aCsqEOPLUCqp9n8OkGyTPtwYMP4YmdPwqni6wnH5aAsWqh z29A== X-Gm-Message-State: AOJu0YzGNPMQFlfbmflpjZyXRt6ScdUv7VCNHrmuBua/YOc/YGzzC82U DvdrDvoFDIZMcDRPBiAbmERVBhXW5LJaVx/jkdYKTCHt/GrRng== X-Received: by 2002:a05:6902:18d0:b0:dbc:ea09:b545 with SMTP id ck16-20020a05690218d000b00dbcea09b545mr1509915ybb.111.1703267501916; Fri, 22 Dec 2023 09:51:41 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20231221185702.24685-1-brgl@bgdev.pl> In-Reply-To: <20231221185702.24685-1-brgl@bgdev.pl> From: Linus Walleij Date: Fri, 22 Dec 2023 18:51:31 +0100 Message-ID: Subject: Re: [PATCH] gpio: tps65219: don't use CONFIG_DEBUG_GPIO To: Bartosz Golaszewski Cc: Tony Lindgren , Andy Shevchenko , linux-omap@vger.kernel.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Dec 21, 2023 at 7:57=E2=80=AFPM Bartosz Golaszewski = wrote: > From: Bartosz Golaszewski > > CONFIG_DEBUG_GPIO should only be used to enable debug log messages and > for core GPIOLIB debugging. Don't use it to control the execution of > potentially buggy code. Just put it under an always-false #if. > > Signed-off-by: Bartosz Golaszewski Maybe I would have simply deleted the code, but OK. I bet some static analyzers will promptly return complaints about "no #if 0 in the kernel" :/ In this case it's an OK compromise. Acked-by: Linus Walleij Yours, Linus Walleij