Received: by 2002:a05:7412:7c14:b0:fa:6e18:a558 with SMTP id ii20csp469978rdb; Mon, 22 Jan 2024 09:38:23 -0800 (PST) X-Google-Smtp-Source: AGHT+IFLkU7W3nykxGfkwWAXR9+LET3hgXFXgIP8rrV/SwjhA3GcxZv78o+On3gj5cnOlPUp8t0b X-Received: by 2002:aca:1805:0:b0:3bd:3225:4be3 with SMTP id h5-20020aca1805000000b003bd32254be3mr4815239oih.71.1705945103129; Mon, 22 Jan 2024 09:38:23 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705945103; cv=pass; d=google.com; s=arc-20160816; b=JvSyhl8nk1TRTsLLrhlBkkhiO2SbuLfbrdd6ePK1ekKCuKhpmPmIi9q9l5d9vH7X+q rAfByqbymoGcn7JKcgJ3NdxUmul96nQVYr+Z5/9ZrcQoMxYRVbDljw8Avo0rNxUX+dyR mPqJEa//Hz4edO0EZNsF+7T6XqTiytLye0JkuZcvzkQUCreaoyjDVyKHvvHfuoxqYDUF FDBtuYeRnOnO1KXTWM+Ce+pNMc5Mj75o2ZdDlS/rYeQl3lBGuXQntBUO1Ugtt/GcIPt/ 4HMPLT8z7ZQHZhq9xE9mc1JpFkD04BNOrDp9cigg6r9ojKy5uM5jz2V10CpwqD1e5bq/ IBKw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=U2u02dHyzXh8Z7GhixGdPG0+iHyMzaUZy8vA0Gln640=; fh=wLNDIKLUXy3LdP6/Dufl35YYrvLlI1Uly1gGxHzDebY=; b=SlnVGcAc8xFGkl4eYBaTUAbQYi/3ZgiMO6FAyxa5QngHONP0SmsJzTDGUW2oMnp+Gu cVsJfXMdf/TInz6+F9pzNHLvzAsogD52cuKq8FX9A9ZJL/Pjz4zFp/xns5nZ4N1jaSPm FzSQPZx6ey8MY34h5HBmd4EkAGY9BNxZZRpEfVFlhxEbQoN3/eFrgPzfFHlmtTnxHOPO YQMaYSZPrePjEsD8IgykLKWI9mpY2RygjCiya7F1PC/XkGm9X/14q9cQf0PynqAVIgXk k2wt9stAgyv9cd3caYgUGEzdFE4ouiYYmhO76OBBFiau+w1FYApVsIdh3PVSrkHqunqz bFWQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=wKiw9W9B; 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-kernel+bounces-33724-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33724-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. [147.75.199.223]) by mx.google.com with ESMTPS id e22-20020a05620a209600b00781795e5a7fsi5635410qka.718.2024.01.22.09.38.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 09:38:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-33724-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=@linaro.org header.s=google header.b=wKiw9W9B; 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-kernel+bounces-33724-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33724-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 9481A1C27E8A for ; Mon, 22 Jan 2024 17:38:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AD42F5A7AD; Mon, 22 Jan 2024 16:50:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="wKiw9W9B" Received: from mail-wr1-f42.google.com (mail-wr1-f42.google.com [209.85.221.42]) (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 500955A79A for ; Mon, 22 Jan 2024 16:50:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705942216; cv=none; b=txbE5j819J0CTB6iRdzhJtA6A00mONjzl2wjn4RuzAlIx4sIKBobzHCV048TK1GGtrzNtmlvynOEZrYK7LE6tNoTLwR4qN7T7I68Ni+pn+akgHIarcZfVUqoBhKl/0XRUvTJ/OIH5ZU/FCzCtxG3+wCX4ZwYGNimaS8lZtnvp+o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705942216; c=relaxed/simple; bh=0ruM/gNibJeJfXSYwhoWuQgAeyRU3c7XqXfVEhgtTGE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Mxc9pVun6yhMoz37Sa8B64aD63TAEcOpfUFe0MVlTiG4XMv3f43CxaOUoTEYN/MG4z1aTGpaYL0gQ9cg13QLTH+Rhmn5KhSu1dI5MIG9Bc1D1wG+TCPShWAe+0edE/1/PoR2Ku+XBpoeEPje+TcE1vtcyq3I/nmNp2k6uwjwCnQ= 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=wKiw9W9B; arc=none smtp.client-ip=209.85.221.42 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-wr1-f42.google.com with SMTP id ffacd0b85a97d-3367a304091so3754591f8f.3 for ; Mon, 22 Jan 2024 08:50:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1705942213; x=1706547013; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=U2u02dHyzXh8Z7GhixGdPG0+iHyMzaUZy8vA0Gln640=; b=wKiw9W9B+puVyaMaPiGE8nyIDzniCMcSewRBP5z/d00eWzqCz4fprSuzR0Bj4Iw3q+ 4Cn8EjXyJUi1OYdqQE8IfBkKF1GuISf9LS9IRpZnETdjt2NvmPu1GxSCbsFCeGGhtUew XXQqzuqcyDyZy4jja6A8GTVHmevgSmNs9ruLS33mGFpCjdk5DHoPGEpFz1DrYwrLayUC wnp5I1LYEN07hr42G2LtMUGNkPwKLhm27Sm/6DxC1tFkiNasyj++oTABjdsVtef6n5VZ 5dIUtpYXmwDuCdFG0HiebbiVg8gkuilRLhQo5b9hWGadBRdCjJcsya0E5YuqyaNahjTK fG2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705942213; x=1706547013; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=U2u02dHyzXh8Z7GhixGdPG0+iHyMzaUZy8vA0Gln640=; b=tBA6cmUrDHE1tGeHbv+jmuPbHz8Lco1ef+D1zi9qg5cnZV40SfzG8Pd1osS304KOKR e25ecsudotxRrqTp13lcFNg/t62zMyZMg0MARVOejtv1BRhHNDO1cgEPCmU/R2V7PSHi kaA88e5mwEMyYvZq09kGL5Zg8FveanPWBbMWxobS1kZKeXE5xYR3xBBSV9aia3N0E2kx 6dxsPpH2YUPknmIX/JWgPTFMkfzh6dTcQMQiUuHWm1Dp8kOJ+GC+d3kqrG6wkdj2S5kX dX3PogA76m7kPww9jgBdKZYWSPR0+qMnsWGblR8UByx6us89SG4xGSSCxoWtBMX34kxS FTTw== X-Gm-Message-State: AOJu0YwWFmPKetEi2Cg3duLhQfXO8OIGOqxVBPVjQ2ULIRDYnQnx2zW4 vhQcgqTrseqtATUiuZo8loI8i5Sben2tovw47Kk9NcLyW+y5ZqOCoaoRtuDMboQ= X-Received: by 2002:a05:600c:310e:b0:40e:5186:7ed1 with SMTP id g14-20020a05600c310e00b0040e51867ed1mr1744941wmo.25.1705942213558; Mon, 22 Jan 2024 08:50:13 -0800 (PST) Received: from aspen.lan (aztw-34-b2-v4wan-166919-cust780.vm26.cable.virginm.net. [82.37.195.13]) by smtp.gmail.com with ESMTPSA id g7-20020a7bc4c7000000b0040d5c58c41dsm38655169wmk.24.2024.01.22.08.50.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 08:50:13 -0800 (PST) Date: Mon, 22 Jan 2024 16:50:11 +0000 From: Daniel Thompson To: Duje =?utf-8?Q?Mihanovi=C4=87?= Cc: Lee Jones , Jingoo Han , Pavel Machek , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Helge Deller , Linus Walleij , Karel Balej , ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fbdev@vger.kernel.org Subject: Re: [PATCH v3 1/3] leds: ktd2692: move ExpressWire code to library Message-ID: <20240122165011.GA8815@aspen.lan> References: <20240120-ktd2801-v3-0-fe2cbafffb21@skole.hr> <20240120-ktd2801-v3-1-fe2cbafffb21@skole.hr> <20240122101926.GA8596@aspen.lan> <5907190.MhkbZ0Pkbq@radijator> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <5907190.MhkbZ0Pkbq@radijator> On Mon, Jan 22, 2024 at 05:24:51PM +0100, Duje Mihanović wrote: > On Monday, January 22, 2024 11:19:26 AM CET Daniel Thompson wrote: > > On Sat, Jan 20, 2024 at 10:26:43PM +0100, Duje Mihanović wrote: > > > diff --git a/drivers/leds/Kconfig b/drivers/leds/Kconfig > > > index 6292fddcc55c..d29b6823e7d1 100644 > > > --- a/drivers/leds/Kconfig > > > +++ b/drivers/leds/Kconfig > > > @@ -181,6 +181,9 @@ config LEDS_EL15203000 > > > > > > To compile this driver as a module, choose M here: the module > > > will be called leds-el15203000. > > > > > > +config LEDS_EXPRESSWIRE > > > + bool > > > + > > > > Shouldn't there be a "select GPIOLIB" here? It seems odd to make the > > clients responsible for the dependencies. > > > > BTW there seems to be very little consistency across the kernel between > > "depends on GPIOLIB" and "select GPIOLIB".. but select is marginally > > more popular (283 vs. 219 in the kernel I checked). > > I believe a "select" would be more appropriate here unless these backlights > should be hidden if GPIOLIB is disabled. The catch with "select" is that there > seems to be no way to throw in the "|| COMPILE_TEST" other GPIO-based > backlights have and I'm not sure what to do about that. I think the "|| COMPILE_TEST" might just be a copy 'n paste'ism (in fact I may even have been guilty off propagating it in reviews when checking for inconsistencies). AFAICT nothing will inhibit setting GPIOLIB so allyes- and allmodconfig builds will always end up with GPIOLIB enabled. If we are happy to select it then I think that is enough! Daniel.