From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B6D67C352A1 for ; Wed, 7 Dec 2022 18:58:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229546AbiLGS6B (ORCPT ); Wed, 7 Dec 2022 13:58:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58698 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229529AbiLGS57 (ORCPT ); Wed, 7 Dec 2022 13:57:59 -0500 Received: from wout4-smtp.messagingengine.com (wout4-smtp.messagingengine.com [64.147.123.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E3BA71A839 for ; Wed, 7 Dec 2022 10:57:57 -0800 (PST) Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.west.internal (Postfix) with ESMTP id 6840E32006F2; Wed, 7 Dec 2022 13:57:53 -0500 (EST) Received: from imap51 ([10.202.2.101]) by compute6.internal (MEProxy); Wed, 07 Dec 2022 13:57:54 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm1; t=1670439472; x=1670525872; bh=IYyFVXq4uP LEhfNx5cFnxsu3093usNvyCS91OgsAon4=; b=SMIN2njeTfwiE019ekb1g6bijV NKHv0vYTHXtMT+UINLaSRtX1NpXVxCIDBRcnMDpbRrbF8A46/sxNlk1nX7wVZR0W BHYJZf8dO/czk+33+Zjmn5IPtmqT2VhUFWLtFd0a52CXZqHz3w6C8kvHrHLFVKUi MAwWNNzoIe049XNoDE4HPMlfu0UAblDb+N2krIotQQpGWCuZG1wRwtYZYNrMOqTx WETqRdVZ2o49/wPGdDkBg/1h+pPGVBCuz/ATjDB98H+HxB1EJvrZUZMBJ5fK1zZB js2iQyL839A2tE7ExtJyv37uOSTB1DIO8T2isSL5o6sHbk9wd4LlKLzBSriQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1670439472; x=1670525872; bh=IYyFVXq4uPLEhfNx5cFnxsu3093u sNvyCS91OgsAon4=; b=DBSZj6QcexkjNBaxNJTyJo3URZLeUZT5VkAy78Vn/oCZ Sqo1TTvs9gTDN2lK+xZalLMzu9bZrZw+/sDCxBfHUKD5OTJEe8u/yv6ieWntDSIT m7TMEfg3SrokXNCVuoE+40+0oOYxjTbJISEpO3EO2hBYdzi9F0+OJ48TNQnGgCSV CczUKFxwW7aAZyBrTFxYFyEsnvm1EYHEBb+z+s9Z7NaRWj5igfgHnFlWVLGN7R1Y p1sxVYCr+Kuaq2rX8b8mFm5Dcsv6o6JmzMC1hpYVVnD+N0h/k5Qm0kqRICT9qs/N 4g1e+QdSDZ+B0rHduklu4CY7+51tihP8/BnY/y65jQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrudekgdduudelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtsehttdertderredtnecuhfhrohhmpedftehr nhguuceuvghrghhmrghnnhdfuceorghrnhgusegrrhhnuggsrdguvgeqnecuggftrfgrth htvghrnhepffehueegteeihfegtefhjefgtdeugfegjeelheejueethfefgeeghfektdek teffnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprg hrnhgusegrrhhnuggsrdguvg X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 7394AB60086; Wed, 7 Dec 2022 13:57:52 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.7.0-alpha0-1115-g8b801eadce-fm-20221102.001-g8b801ead Mime-Version: 1.0 Message-Id: In-Reply-To: <41a5931e-3543-6a3d-ca85-2dd8ad581f2e@infradead.org> References: <1499156564-29458-1-git-send-email-peda@axentia.se> <053d7bf2-9bf3-a71c-5713-7cce19413c37@infradead.org> <41a5931e-3543-6a3d-ca85-2dd8ad581f2e@infradead.org> Date: Wed, 07 Dec 2022 19:57:31 +0100 From: "Arnd Bergmann" To: "Randy Dunlap" , "Peter Rosin" , "Linus Torvalds" Cc: "Greg Kroah-Hartman" , "Andrew Morton" , "Linux Kernel Mailing List" Subject: Re: [PATCH v2] mux: remove the Kconfig question for the subsystem Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 7, 2022, at 18:19, Randy Dunlap wrote: > On 12/7/22 00:41, Arnd Bergmann wrote: >> For the other subsystems I mentioned, there are occasionally >> problems with missing 'select' that tend to be a pain to find, >> compared to subsystems consistently using 'depends on', which >> show up as link failures in randconfig builds. > > I find that various drivers mixing the use of "select" and > "depends on" is problematic. Agreed. Even just mixing 'select' with user-visible symbols is very confusing. The two sensible ways are either using user-visible options with 'depends on' or hidden options with 'select'. > However, there was no answer for the original question: > How does a user enable the 4 Kconfig symbols in drivers/mux/Kconfig > if some other random driver has not selected MULTIPLEXER? There is no need to enable any of them in this case, because the mux drivers are not usable by themselves. > I.e.: > > config MUX_ADG792A > tristate "Analog Devices ADG792A/ADG792G Multiplexers" > > config MUX_ADGS1408 > tristate "Analog Devices ADGS1408/ADGS1409 Multiplexers" > > config MUX_GPIO > tristate "GPIO-controlled Multiplexer" > > config MUX_MMIO > tristate "MMIO/Regmap register bitfield-controlled Multiplexer" > > OK, MUX_MMIO is selected from some other drivers, but if that is not done, > how can the first 3 be enabled by a user? They cannot, that is the entire point of hiding the subsystem when it is not used. Arnd