Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp2651885rdb; Mon, 12 Feb 2024 11:35:18 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWWmLGls5iNjYzImd3zsLOVcCVUNJZ2CCYJ1bzbeGoi709+A7XeNt2c+/sozTigGoN6jV7XNK5mJjjuv7mkpWNdOcxutZdcfSFAbjxZ4A== X-Google-Smtp-Source: AGHT+IFY5E81WaADtPRQsiVCZH3oKhi89oxu9/xcNWqufJ8AfrZvIlqUPUs9QFjEC/z6PdeJdxPW X-Received: by 2002:a17:90a:3488:b0:295:fe86:ad25 with SMTP id p8-20020a17090a348800b00295fe86ad25mr5550400pjb.36.1707766518702; Mon, 12 Feb 2024 11:35:18 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707766518; cv=pass; d=google.com; s=arc-20160816; b=HoPmbtkEBBjVvuFl1yDrRf90qL1ydFaiwI8vCWmmnHIY9HxrunXn2WbeovEY3BiLKP Z/dTpam5XS1Xp13s6SAT52161VuHdakinTYFnWfLs9ZGWrukx1Q72JlsX1xTbfU76NHp caCIkoq8F13gJJ1hjpa9AEeBGEeechKsOCU2LoRkxTcc9ed19yIFjw9qVn7/9srb9m+G ynK0O9eHFzEpRbkS0lORAoxMfTZCWHO1E2+TkOqGDL6fXN6KDiMCiRpI6t/OPqUPJL24 VUKT9m8XUud2UWEq5Vz87sdUgqqoXAS++DOomTPAhaAZt+hAt+XP5ck0grXSYIQYDyf9 Ak3Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:subject:cc:to:from:date:references :in-reply-to:message-id:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:user-agent:feedback-id:dkim-signature :dkim-signature; bh=owswN7XU/Fn0mSvnFsqZqiicnFod/NS5cnjRqcaw1U8=; fh=cHKbr1V7oHfg6m0mn+jHjQ3kxsr5XHFhDpQubxbxbis=; b=T6ixwrM+0RADKdxYgZx+iGb8v+uhXqX2lgDYAs80XXpX7UNBedARiYQ7KXobcPWcul ttcSdGbhzheMopFSRQQW9ZzUaUZCvHBvJK58HvfQAwOfCE+Il/3bY1rwaCf4NPMTeiYg N9MPqF+yekm9wKnWzpFFSSiMOhzrTPdF7ytDLF4ZKiwwwiZ2R8yKrOsAURCoxhynqYJV zQneg+Xph9vn5oO41u3o9CBqEjyYa6JKgYq+Qa4mssiytFNcq1HBYsdplKA4jLUzCgPg jSekS88Oc/4UeJWGWkZvFKxqROvbFYNfBsyCCavgKV/eS4a3Pw32XmNdiwCYX6ByjQM+ dTIw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm3 header.b=nW+VyRJJ; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=yZVCs8cW; arc=pass (i=1 spf=pass spfdomain=arndb.de dkim=pass dkdomain=arndb.de dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=arndb.de); spf=pass (google.com: domain of linux-kernel+bounces-62266-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-62266-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arndb.de X-Forwarded-Encrypted: i=2; AJvYcCUMOEc7mr63PJIdXGCmalL6MkU/Qptr45NXKESz8fRh0YAIQBw//zZI2TYe3OYiSVePLSi7QEvJtELJ3ltP1tpNYQYYeH6/LocvHVCHgA== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id ot4-20020a17090b3b4400b00296e23005efsi727684pjb.20.2024.02.12.11.35.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 11:35:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-62266-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@arndb.de header.s=fm3 header.b=nW+VyRJJ; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=yZVCs8cW; arc=pass (i=1 spf=pass spfdomain=arndb.de dkim=pass dkdomain=arndb.de dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=arndb.de); spf=pass (google.com: domain of linux-kernel+bounces-62266-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-62266-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arndb.de 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id F2C94B2558B for ; Mon, 12 Feb 2024 19:15:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2500A47A62; Mon, 12 Feb 2024 19:14:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b="nW+VyRJJ"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="yZVCs8cW" Received: from fout8-smtp.messagingengine.com (fout8-smtp.messagingengine.com [103.168.172.151]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 58D86405F8; Mon, 12 Feb 2024 19:14:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=103.168.172.151 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707765284; cv=none; b=B0NPh9RfFfMuhmP5pJuTveY0Ubg5H8k4NbqF3y7RIiZEO8nZCofcqpor/JflM1hkyPzbGusrZe9UGgrnTOnahLHtsMMYL7ymZpJjA2qwbsfPIB/ChI5mUWtzBnfnG2o3A8UfJ9otDzyjyBTLZC9C+tzPW3T54vhjylQac0kIHw8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707765284; c=relaxed/simple; bh=VObJ2rct3pw2cbR6hCgheYS2cpTkK2Z4nveT/kYaBF4=; h=MIME-Version:Message-Id:In-Reply-To:References:Date:From:To:Cc: Subject:Content-Type; b=W2NDX+A+cJS0KpCoyIBqTu64TXvXG8H3SDcps0ugPzGrEG/9fp+z0sqEFaPg4whq49R4hKuWdhKJs2vFwVqgguiHRTrXPJyM3VDLc+vmtu2+3XFDsWzqZoT0IYqhWkiiHs/afrtowaVNB4LZ8ueb25lCqKmkMcJmkch62oCkJ1w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arndb.de; spf=pass smtp.mailfrom=arndb.de; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b=nW+VyRJJ; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=yZVCs8cW; arc=none smtp.client-ip=103.168.172.151 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arndb.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arndb.de Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailfout.nyi.internal (Postfix) with ESMTP id 2452513800A5; Mon, 12 Feb 2024 14:14:41 -0500 (EST) Received: from imap51 ([10.202.2.101]) by compute5.internal (MEProxy); Mon, 12 Feb 2024 14:14:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1707765281; x=1707851681; bh=owswN7XU/Fn0mSvnFsqZqiicnFod/NS5cnjRqcaw1U8=; b= nW+VyRJJFFU1Zxtj1eZWKi+KMs2BVX3Z8BA+KwbAyA812Sh6+PcWLAItYIb98btw NY8oHmLn/UzMfA/xzunxmaq8Huh7a230fwMqh+x6rJAmkYm8QrtrrtLK87GirL8u xVArA6xM1ORyPi/gjCkwOsaN214DgGWT1cfJ5Xu7lGEQbz+0FmYEEkpQFjdJ2w7A 6EqXM0zJZwz8xQWyLu9GH3/zMvCdx8W5Ggdvw73T06RtPCpomopN8a0qp91yRFCN dOKfwHOAlkMAa6rzIdnLYueGHL0i8Y8wZZc186AkZ6NrXaDOy2KIiIqj6xq8pGld mehi1NWe3zCevzCya2whlQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1707765281; x= 1707851681; bh=owswN7XU/Fn0mSvnFsqZqiicnFod/NS5cnjRqcaw1U8=; b=y ZVCs8cWJMmS/foQOdJrpUc7TbWBIaLeICwQTavWekPIalfjX48b8dBEW539Mc93C VS8xq+ReDnciLn6eXns6WzMZtZIFeLpjLuYU5/dJLvxccnFTU6a71zYheZTiWbiB xsA6Umg20/zfbV2ejxiHbJivyLYFyVTOlA7q8cE1d2Q+eZU9gqI4IjcUWmivaj6g 9p5Xw5BgnDcMDX1dukXtNVKYvrdK+lBxbpF/pM5Iw41vU2J6u0gDL7xMsIyk8Wf1 is0fBYmKuGG/QDCdjz9g/mbFci94I3vnNHMG0610usIiQ6XsVg3CFGawxTDjNKcd Dp7ixXkFLDA2rSqCpMKEA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrudefgdduvdduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtgfesthhqredtreerjeenucfhrhhomhepfdet rhhnugcuuegvrhhgmhgrnhhnfdcuoegrrhhnugesrghrnhgusgdruggvqeenucggtffrrg htthgvrhhnpeegfeejhedvledvffeijeeijeeivddvhfeliedvleevheejleetgedukedt gfejveenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe grrhhnugesrghrnhgusgdruggv X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 5A778B6008D; Mon, 12 Feb 2024 14:14:40 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-144-ge5821d614e-fm-20240125.002-ge5821d61 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <2cacd8dc-6150-4aa2-af9e-830a202fb0a8@app.fastmail.com> In-Reply-To: <4869921.GXAFRqVoOG@radijator> References: <20240212111819.936815-1-arnd@kernel.org> <20240212124428.GB4593@aspen.lan> <4869921.GXAFRqVoOG@radijator> Date: Mon, 12 Feb 2024 20:14:20 +0100 From: "Arnd Bergmann" To: =?UTF-8?Q?Duje_Mihanovi=C4=87?= , "Arnd Bergmann" , "Daniel Thompson" Cc: "Lee Jones" , "Jingoo Han" , "Helge Deller" , "Linus Walleij" , "Flavio Suligoi" , "Hans de Goede" , "Jianhua Lu" , "Matthew Wilcox" , dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] backlight: ktd2801: fix LED dependency Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable On Mon, Feb 12, 2024, at 15:31, Duje Mihanovi=C4=87 wrote: > On Monday, February 12, 2024 1:44:28 PM CET Daniel Thompson wrote: >> On Mon, Feb 12, 2024 at 12:18:12PM +0100, Arnd Bergmann wrote: > I believe this would be the best thing to do here. Making LEDS_EXPRESS= WIRE=20 > user selectable doesn't make much sense to me as the library is rather= low- > level (a quick grep turns up BTREE as an example of something similar)= and IMO=20 > the GPIOLIB dependency should be handled by LEDS_EXPRESSWIRE as it's t= he one=20 > actually using the GPIO interface (except maybe for KTD2692 as it has = some=20 > extra GPIOs not present in the other one and thus handles them itself). Agree, let's do it this way. Maybe the leds-expresswire.c file should not be in drivers/leds either, but it's already there and I can't think of a better place for it.so just adapting Kconfig should be enough. Please add the corresponding Makefile change as well though: --- a/drivers/Makefile +++ b/drivers/Makefile @@ -135,7 +135,7 @@ obj-$(CONFIG_CPU_IDLE) +=3D cpuidle/ obj-y +=3D mmc/ obj-y +=3D ufs/ obj-$(CONFIG_MEMSTICK) +=3D memstick/ -obj-$(CONFIG_NEW_LEDS) +=3D leds/ +obj-y +=3D leds/ obj-$(CONFIG_INFINIBAND) +=3D infiniband/ obj-y +=3D firmware/ obj-$(CONFIG_CRYPTO) +=3D crypto/ Without this, the expresswire library module won't get built unless NEW_LEDS is enabled. Arnd