Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2507817lqt; Mon, 22 Apr 2024 12:43:00 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWFZ10Vfu1KFtBGe0TFYK4FVfKdBZ7R5QUY3cZTzV/QExB4MGG877ajHQwIBgEPKishzecUkdkq0godkpty1ODA8yWlC3Kz+kArvLVf0A== X-Google-Smtp-Source: AGHT+IE/GoVZ/itaFeJdWzELUwypnoN68XCY4cxCjPc1qfMUp9MT/1xZvn0/i3rxBNgedQh3kc9h X-Received: by 2002:a2e:22c1:0:b0:2dd:da86:ee38 with SMTP id i184-20020a2e22c1000000b002ddda86ee38mr1303042lji.8.1713814980267; Mon, 22 Apr 2024 12:43:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713814980; cv=pass; d=google.com; s=arc-20160816; b=MOqXaWkQdoULlQwlK7KgvvAqpWyG94dsce5noiKoEAv1WFos37CP7hGA4G0LFxnLcK IOS3Ol8VlpKsmQpGI9AIXAIr0KeJTqR3Uf+PxvfdFihYoB2rKMozZkJAH/DagECftRHu kJ179nhy9doYGGa2JFV+rcZ5w/qqNxBFLKabPmQ3WxFCYpub8mJBdgY6mS9E70F3mJvJ uICXGSAXTuAVlqMM6OdBxqiLHiivPR424hxwBrpUnUmZ97RYrDKta3WVekHvMTuCNOGH z8v3d2KyuEXq2rZt0tjQ2JA5KsA3OctXQPKWfyhSgo8GcdV2F49MvuJw0ZdlEXgzCq3T 3PRA== 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=gVZqzkENJUFiVkaeR4QB9Du/IK22USYMjTBhaTheglc=; fh=sP+PyXfGoTjolRsEgEKF6KWVd1vfQYbh3e0jn1MKnVk=; b=BFaYh8V4wwL10YB7MnIJyhpRDhprTW+OQL5bR0ZOmZLuLuzUaBrFNv7/iyoBK1YyMB eEPNMnL/sK+HKzMu9ShNakpFxXvbTxobR5915lVHPsN6oz+gL3rCCF7Q7tjQK3JaPCiB ItqgaUVr1flr1V7SHKciqqId5HvRjo3gxYhcIktgKHuTBakdPV43o75MlEJpbrtj+zru BwfAGD8TP2CIG4oWLqg/yKT4JHqdjU6BOPvIMo0/qvd0kQ2HtDuAVrfrEllkGjSps5PO TWje3Zdk8dBDsd5/1Si7/X8HuVt/WOp36hiIzFbTamxHvetx7fiwddJUYXeb/2msNAhK SNqA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HFO2Ppps; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-153928-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-153928-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id n7-20020a056402514700b0056739aba263si6269599edd.440.2024.04.22.12.43.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Apr 2024 12:43:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-153928-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=@kernel.org header.s=k20201202 header.b=HFO2Ppps; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-153928-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-153928-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 am.mirrors.kernel.org (Postfix) with ESMTPS id 011A51F2266C for ; Mon, 22 Apr 2024 19:43:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0F1FC155352; Mon, 22 Apr 2024 19:42:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="HFO2Ppps" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 24C2F15533B; Mon, 22 Apr 2024 19:42:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713814971; cv=none; b=uOGXwXNV8WjZZePLzD4I+XcLUTyxbsEkCIxZP8WdC9OXT0fMNDQZFNUY21tBM1eMiSKM/uUCDjATiKxJNs1g/6Brc6uTovKNoYVZPR3cbNM1RR4eNGg7LE1fEPIOtwt7ttgjdswsyg7EUP6ijvx8oY/W60+GXF+eHC8a/ZoLmEg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713814971; c=relaxed/simple; bh=X5NGLyhlmkWiEztUhkG/dYmbEnrBjLWsUuPd6etmt3g=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=GZNIAt+Ac1KKYdL+MD7QBCBsmejJc9ZcBpu0JuAE5jIf+1BpC61zcsmmQYjlFOndY7XIN7Ww0SFHxmgMvYt5Wsvk9UgS7Rv9uHWfrrdzmwnDaegcWxmaMXJ6J87UtP0Yc/3Ujn2LOAyGfwWRtXrpzbjN7+bnB0NEDlz/aQD8Gi0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=HFO2Ppps; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id A770AC113CC; Mon, 22 Apr 2024 19:42:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713814970; bh=X5NGLyhlmkWiEztUhkG/dYmbEnrBjLWsUuPd6etmt3g=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=HFO2Ppps/oZr9UBPkLMNSFWLF8JT0mQUjb6KEmKTavUYAzUBfRay7wviM9/lYJ1ox VGD9BugBnxpekoWlFpo267NnDA//Jp5Q03vIdUlgWRdD5s8i+dVQ9wvKVAa/kA+Lf7 rcg23e19F5+xrsUNWPs6AGzRt2dud8+yPRn9eWr+QBAVHGly6fogMw1Dyv/kknlIiX p9k2P5UGa39I2lZ1fXX16QOFEj+llvJVWZp/i64mCSjL875AMlg1avpPvOhxsKBeCj 8wfk/8dB14dU5dPWZ/HfY//p4xmc1x/tuJsCKA8Vq8GFKQwH/ROYrfcbP1V7YQH6F9 UWocTlyMx3Vfg== Received: by mail-lf1-f46.google.com with SMTP id 2adb3069b0e04-518a3e0d2ecso7204500e87.3; Mon, 22 Apr 2024 12:42:50 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCWAQNQ7y5T3lz9L/YRm5AWQoC5SfuYnyLnC+bff5XFGwuxLyX5EW4413M7bbYFrSdPlH/8hYbb9722d95gxQ++IMw6rQtmqbijH2dWHi/vu0Rh3buyDfBwrWWlwEiq703BTeQRofDBQX+Hlyx33oGT7Qp2TH27bdIGGPbRtQySvj3hvHkMm27PnKclprWI= X-Gm-Message-State: AOJu0YzON+bKAQ8zAl58vXnkOXWcncY0UiKhbx6H7K6dmZXYmgMSYRji hjossPd6MQdju+mCOORn70SE25f7R0bVdUUr9jdSVmpLUkgS/wWXGGVR3If1vOmDRBf9Ajir5Yz sfjVEVoeOIiaoY2X+HJRWmEXCZi0= X-Received: by 2002:ac2:46f6:0:b0:513:d5ec:afb with SMTP id q22-20020ac246f6000000b00513d5ec0afbmr8808090lfo.40.1713814969390; Mon, 22 Apr 2024 12:42:49 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <87il09ty4u.fsf@intel.com> <875xw9ttl6.fsf@intel.com> In-Reply-To: From: Masahiro Yamada Date: Tue, 23 Apr 2024 04:42:12 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 00/11] drm: Restore helper usability To: Arnd Bergmann Cc: Geert Uytterhoeven , Jani Nikula , Geert Uytterhoeven , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Dave Airlie , Daniel Vetter , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Linux-Renesas , linux-kbuild Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Apr 23, 2024 at 3:24=E2=80=AFAM Arnd Bergmann wrote= : > > On Mon, Apr 22, 2024, at 18:58, Geert Uytterhoeven wrote: > > On Mon, Apr 22, 2024 at 3:55=E2=80=AFPM Arnd Bergmann w= rote: > >> On Mon, Apr 22, 2024, at 15:28, Jani Nikula wrote: > >> Whereas this one is broken: > >> > >> config FEATURE_A > >> tristate "user visible if I2C is enabled" > >> depends on I2C > >> > >> config HELPER_B > >> tristate # hidden > >> select FEATURE_A > >> > >> config DRIVER > >> tristate "This driver is broken if I2C is disabled" > >> select HELPER_B > > > > So the DRIVER section should gain a "depends on I2C" statement. > > That is of course the common workaround, but my point was > that nothing should ever 'select I2C' or any of the other > subsystems that are user visible. > > > Yamada-san: would it be difficult to modify Kconfig to ignore symbols > > like DRIVER that select other symbols with unmet dependencies? > > Currently it already warns about that. > > > > Handling this implicitly (instead of the current explict "depends > > on") would have the disadvantage though: a user who is not aware of > > the implicit dependency may wonder why DRIVER is invisible in his > > config interface. > > I think hiding this would make it much harder to get anything > right. The symbols in question are almost all ones that should > be enabled in normal configs, and the 'make menuconfig' help > doesn't make it too hard to figure things out normally, we just > have to find a way to avoid regressions when converting things > to 'depends on' that used an incorrect 'select'. > > Arnd I am confused because you repeatedly discussed the missing I2C dependency. Are you talking about DRM drivers, or is it just "an example" in general? DRM selects I2C. https://github.com/torvalds/linux/blob/v6.9-rc4/drivers/gpu/drm/Kconfig#L16 If you make sure individual DRM drivers depend on DRM, none of them can be enabled without I2C. Currently, this is not guaranteed just because DRM folks do not know how to use the "menuconfig" syntax. The "menuconfig" makes sense only when it is followed by "if". diff --git a/drivers/gpu/drm/Kconfig b/drivers/gpu/drm/Kconfig index 5a0c476361c3..6984b3fea271 100644 --- a/drivers/gpu/drm/Kconfig +++ b/drivers/gpu/drm/Kconfig @@ -29,6 +29,8 @@ menuconfig DRM details. You should also select and configure AGP (/dev/agpgart) support if it is available for your platform. +if DRM + config DRM_MIPI_DBI tristate depends on DRM @@ -414,3 +416,5 @@ config DRM_LIB_RANDOM config DRM_PRIVACY_SCREEN bool default n + +endif -- Best Regards Masahiro Yamada