Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp25898rdb; Thu, 21 Dec 2023 01:31:22 -0800 (PST) X-Google-Smtp-Source: AGHT+IG/P6ffguSixxBpTO6U9g+nN6XPSCMUjudwXpXKGv1o9LSV88cnR4UPG32ttNHCsuyI0LRf X-Received: by 2002:ad4:574f:0:b0:67f:705f:bddc with SMTP id q15-20020ad4574f000000b0067f705fbddcmr2985321qvx.123.1703151082660; Thu, 21 Dec 2023 01:31:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703151082; cv=none; d=google.com; s=arc-20160816; b=iHrT75+hfHUY/zovs7iuiKAElJxUjSYib6iYHxDmMPmxcf5W9Y2fU+x7+FfusJa1Bn jnxh1WadJFPvBq0Xt4ljC3kVRYFVmsE0lcX4cWLk2dNuZ6WMzYvtpetfW7whLqpqdj4x 45u0y56lwX/wawSeGfxKZSQTlAjWJiaVekZJmJg/qN5MNvmnGJpQY4UFcDOV0bNTyxuv haKf7YMdCV0g5DdFBUQyTTK5tjRYauUvo5W/E2Dfe7mYLY2kcyxqZUn4E2THD1jUz7ds gC+bSLA5+U1GvcBHi29o7P+DEjwjoFEP5rYwlg74qmUgRkb6OYJGueKwDxQUwUGCPcBZ 755g== 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=gk+0buIHnn5B1pDfrVBgAlFPQ+p7oDkf5Qf9+5+b3Xs=; fh=sv81ABL2sr7c7amww2e8YruQ/5JC/dgEi5QoFH/az/E=; b=hDJiFzr3ppL5qPZKS+3BPMVfoGH+UbsxbmAEswSzI7ponYbWAXs2YskXAqJgyTxVUq yW9b7GJ64h1z8hHqQ0e/BA1/h1LUO4ywuLK1yuqHEbdfBpqYWH/pystcyLhY0gVRigZ4 1zMw2BdG5ceAvrweTqMS/OBaiJ12S04WPR4pQm2Fo2TYT8n34PmFQh8iU8fkSvR/1q2I R7xddgqzt6yb6wCDlmjwfUXQJBUhk5dRftnx4IhYtYxD7GO0VmvTLKEWoyd3INxI/vL1 P+1Ie7I2tUKum8xr50XzHIXINhU9wdtnVQovZHmJZ576Qu9MOzMAGgU7sj9CN2UIMZoS V57g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=xVuVli6c; spf=pass (google.com: domain of linux-kernel+bounces-8119-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8119-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id n16-20020a0ce490000000b0067f14fd093fsi1768338qvl.538.2023.12.21.01.31.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 01:31:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-8119-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=xVuVli6c; spf=pass (google.com: domain of linux-kernel+bounces-8119-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8119-linux.lists.archive=gmail.com@vger.kernel.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 6A1311C237EB for ; Thu, 21 Dec 2023 09:31:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C19D14CB5B; Thu, 21 Dec 2023 09:26:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bgdev-pl.20230601.gappssmtp.com header.i=@bgdev-pl.20230601.gappssmtp.com header.b="xVuVli6c" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-vs1-f50.google.com (mail-vs1-f50.google.com [209.85.217.50]) (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 A68FA4CDF4 for ; Thu, 21 Dec 2023 09:26:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=bgdev.pl Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=bgdev.pl Received: by mail-vs1-f50.google.com with SMTP id ada2fe7eead31-466cf6fab0aso53844137.2 for ; Thu, 21 Dec 2023 01:26:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1703150774; x=1703755574; 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=gk+0buIHnn5B1pDfrVBgAlFPQ+p7oDkf5Qf9+5+b3Xs=; b=xVuVli6cVwjdD59LyTzVCoC1pYuQ6CL+1o+SD7udSoJvwfAShNtw1p5u22AGkhZRN1 Bryhz/hpW7q9BMNccSRummkrSxKaPPMvmsuFqamCzJBgE3+SLAbd57P6eF9iPXRXq4we NNLIN2cGVwFx452zs2xzMST/Dxt+cdSS3Ns4fyopeSQpLb8ZOpBsoYoZnGUswWwZpq71 k2Nw9LQ/46AWgULMPFhhUtiNefOBa6dwGphWGMVLdPg5ldZaALHVYWwJTQDEIrSQwPcd v3lFAYzOdnyKTxg9ZN7um2iec0TQlqHvtFlsbaMAFijzjZuPZJjyz28uvjR8mQfnFdpS wsSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703150774; x=1703755574; 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=gk+0buIHnn5B1pDfrVBgAlFPQ+p7oDkf5Qf9+5+b3Xs=; b=kjt7Q+u/1uE8B4A820VmRQM1506adNemfl5qZXD7hDa/q2gyAib4FLxFX2H8gj69/Q xhyg+bQg56108/MfsCqXReU9TGMELg3svAQrHeNg2AQ68E5lI8QQ3hPBDEPVxwqJX1zN tqQ9+HauoIa7wF0saNsugcyl4SKMDtK/szz1meRtcLeAIiYj80v5BquoEQF1nVWN3/HS EkeE67pogolptt0GNzMPmiPm9K5xCxPYmfo4ax5Tat2WdmCr9aJCUFS7VyF+0b4qncL1 R8RW6Z0j4CLKZNVb0PnwcwJRH/Y13WO7wlx4OYRYhJQL3ePZs+a2H1kHet0Qs4wNkP75 V4HQ== X-Gm-Message-State: AOJu0Yw0g0VXBgWe6iLDV4eBokvRlHVf4aw1dgZyevX5Mgt5KmXtqDTF 9p2zPVlzBXr7ScKMNonEItYCiCz89UhHLf/OOOBgqA== X-Received: by 2002:a05:6102:3712:b0:466:8743:5ed5 with SMTP id s18-20020a056102371200b0046687435ed5mr802212vst.53.1703150774506; Thu, 21 Dec 2023 01:26:14 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20231219201102.41639-1-brgl@bgdev.pl> In-Reply-To: From: Bartosz Golaszewski Date: Thu, 21 Dec 2023 10:26:03 +0100 Message-ID: Subject: Re: [RFC PATCH] gpiolib: remove extra_checks To: Linus Walleij Cc: Andy Shevchenko , Kent Gibson , 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 Wed, Dec 20, 2023 at 4:28=E2=80=AFPM Linus Walleij wrote: > > On Wed, Dec 20, 2023 at 3:03=E2=80=AFPM Andy Shevchenko > wrote: > > On Tue, Dec 19, 2023 at 09:11:02PM +0100, Bartosz Golaszewski wrote: > > > From: Bartosz Golaszewski > > > > > > extra_checks is only used in a few places. It also depends on > > > > > a non-standard DEBUG define one needs to add to the source file. > > > > Huh?! > > > > What then CONFIG_DEBUG_GPIO is about? > > Yeah that is some helper DBrownell added because like me he could > never figure out how to pass -DDEBUG to a single file on the command > line and besides gpiolib is several files. I added the same to pinctrl > to get core debug messages. > > I guess Bartosz means extra_checks is =3D=3D a non-standard DEBUG > define. > > Yours, > Linus Walleij I think this patch is still correct. Defining DEBUG makes sense to enable dev_dbg() messages. CONFIG_DEBUG_GPIO is used by one driver to enable code that can lead to undefined behavior (should it maybe be #if 0?). So the Makefile bit and the Kconfig option can stay but I'd love to see extra_checks gone. Bart