Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2239333pxp; Mon, 21 Mar 2022 14:40:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzo75hmwf+XdFVIWdxmJM0CUx6qOUV45AKYFgsPiFjVhvTRtxBzwuYW2Ef7xHHA96Z6Eng4 X-Received: by 2002:a63:d316:0:b0:380:85b6:d595 with SMTP id b22-20020a63d316000000b0038085b6d595mr19729428pgg.0.1647898859541; Mon, 21 Mar 2022 14:40:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647898859; cv=none; d=google.com; s=arc-20160816; b=eim46qCH92/WAQYeOY8oj/Y8z5j73ui3eofBq2eoBM/vinv5La4+RRigqSl2FZ1Aqo vp7RjBgwLy1gYAlJn8y4ffIoIoad3JpNkCAxmqPufTNwmm1UUAa7epUiUzV3SDD8M94p etD8rrzrV+Hu/Zv/JmoTTHhYih3bTOEoUrwfAoNo21eJVYeOTHS8IuG/kf3e6Qc1FhPX UeGqLIi8pNN0ZJc7kfqDVnX/JWetTs+B2Bs3RXKAEtzSR1G9NzTkAfsqIgi2vB9SQm7t /cNfyBdUdBIXTrTy+Pan8D0O+B3yB2OIAjGb2jOvUrX6rl1mUa/c0uMB+hNexfWKRPRW U/Jg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=3CXgUQrDFjyBhF3xGf+VPGqW6vyWt/wdzgEUomBEfM8=; b=HX2GjeDZkHhFXtKQLNim2pslgc8WA+hSpWA660qPyIvho8JwbNnXJwVc4UstvCtJjQ Txlp6LH41KlaZ5eqpX9DR968X/LmAntKiDKa0EEEfU1M2QPau9Uwz5CoTEqjZzOF/LW1 uGJ33yU+7DnePXMQw+AzSEw/gfisDWEjI4TPjVQOfx0ZpRkv3+XY0GxR92bjOsM83uU7 r8TmeazP93DcCuWUZwafGCiNy/QBsOi8z4/PO2fZzgiDciNvuZWWxOyGF8KicbIWI5dQ oAaKMVN6JN49toF8A/iq35BdJi6gi8KIj8SFXvPLRyfg440QE+JrV1N+8pHEG1GimwD7 BKtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=VhQiC6oq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id v9-20020a17090a634900b001c6f6602dcasi389632pjs.73.2022.03.21.14.40.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Mar 2022 14:40:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=VhQiC6oq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1614725ECB2; Mon, 21 Mar 2022 14:14:10 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345013AbiCUHqt (ORCPT + 99 others); Mon, 21 Mar 2022 03:46:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50346 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344992AbiCUHqq (ORCPT ); Mon, 21 Mar 2022 03:46:46 -0400 Received: from mail-il1-x12d.google.com (mail-il1-x12d.google.com [IPv6:2607:f8b0:4864:20::12d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4FB4C57B05; Mon, 21 Mar 2022 00:45:21 -0700 (PDT) Received: by mail-il1-x12d.google.com with SMTP id d3so9811601ilr.10; Mon, 21 Mar 2022 00:45:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=3CXgUQrDFjyBhF3xGf+VPGqW6vyWt/wdzgEUomBEfM8=; b=VhQiC6oqXDI2JPYyP/HiL1T9aohH7SjGGRMN0g1eBIEdtI5cPbw8Do1w8SgoITsroY 0BT8+UBmO0mWqtSON0ZWDXkgg+eM/bskEzxadexSLP5z3XjNya1RvSbiLizdCjZUPqgH 9ituta0NQWToQek5RRavQer4iwqyRZw10j9L/7ZwPIUzSTIF1RzkRz8IaGPhG+TFf2iF UtuK6x/b7uZR1ScgvzxdcJXr2e+ytY+Nx7CDV82KDfgM/EmyreGk7Vrckn1dAhMVPF6B 23ZWmOcT3ZmaT+OqPEjiJPApG8M4WXtaMzLwxmgDOrzJu29DZ5QIMbqRK7L9A/t0UbBF Gzsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=3CXgUQrDFjyBhF3xGf+VPGqW6vyWt/wdzgEUomBEfM8=; b=xqZUZySmXQOL3DlNTJcmZWFST2OU2ou3VTVhoFQYP1LYcQ+SaOv0wYaHlIm75imgDd A50kmZK4ySuiAC8jH7pWq3sIZHOJ4bwDez55qpICphPdvAkkr4u8n0Tu24wz4JDsVzrL qfftfdJb/XY5Ux9/bB/PJTW9DiMw6PMo0DPnaZ7GIsYymgQdsx4RGPsgHQsxfCx7hOfj K8LVby8yNHT6g1LXRfGQNcC1sURgsucO+Ryq5xIXvio7ZhHj4vvzlpZLlr7b/OS4MDvA Jtf1JFCvH+DLjKfcxtoulqylvb4dxDBpq8OCJefKn/E5cEy102EP22UgLcptN8ChGCxn pQWA== X-Gm-Message-State: AOAM531VTypidW8r+aMx418tbnGUM1lvRBF4TUJCJ5lVu/+bgCVHdala pJ6AeI1KKOvo/1fw+ZbTaxiNBSiYtFSljZLKysc= X-Received: by 2002:a92:6012:0:b0:2bd:fb5f:d627 with SMTP id u18-20020a926012000000b002bdfb5fd627mr9211249ilb.86.1647848720745; Mon, 21 Mar 2022 00:45:20 -0700 (PDT) MIME-Version: 1.0 References: <20220124121009.108649-1-alistair@alistair23.me> <20220124121009.108649-3-alistair@alistair23.me> <7792b3b6-e196-c3c7-5875-9eb4da488a95@roeck-us.net> In-Reply-To: <7792b3b6-e196-c3c7-5875-9eb4da488a95@roeck-us.net> From: Alistair Francis Date: Mon, 21 Mar 2022 17:45:00 +1000 Message-ID: Subject: Re: [PATCH v18 2/8] mfd: simple-mfd-i2c: Add a Kconfig name To: Guenter Roeck Cc: Geert Uytterhoeven , Alistair Francis , Mark Brown , Rob Herring , Sascha Hauer , Liam Girdwood , Lee Jones , Linux PM list , linux-hwmon@vger.kernel.org, "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , NXP Linux Team , Zhang Rui , Amit Kucheria , Linux ARM , Andreas Kemnade , Sascha Hauer , Linux Kernel Mailing List , Shawn Guo Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Mar 20, 2022 at 12:48 AM Guenter Roeck wrote: > > On 3/19/22 02:28, Geert Uytterhoeven wrote: > > Hi Alistair, > > > > On Sat, Mar 19, 2022 at 3:36 AM Alistair Francis wrote: > >> On Tue, Mar 8, 2022 at 8:53 PM Geert Uytterhoeven wrote: > >>> Thanks for your patch, which is now commit bae5a4acef67db88 > >>> ("mfd: simple-mfd-i2c: Add a Kconfig name") in mfd/for-mfd-next. > >>> > >>> On Mon, Jan 24, 2022 at 1:24 PM Alistair Francis wrote: > >>>> Add a Kconfig name to the "Simple Multi-Functional Device support (I2C)" > >>>> device so that it can be enabled via menuconfig. > >>> > >>> Which still does not explain why this would be needed... > >>> > >>>> Signed-off-by: Alistair Francis > >>>> Acked-for-MFD-by: Lee Jones > >>> > >>>> --- a/drivers/mfd/Kconfig > >>>> +++ b/drivers/mfd/Kconfig > >>>> @@ -1188,7 +1188,7 @@ config MFD_SI476X_CORE > >>>> module will be called si476x-core. > >>>> > >>>> config MFD_SIMPLE_MFD_I2C > >>>> - tristate > >>>> + tristate "Simple Multi-Functional Device support (I2C)" > >>>> depends on I2C > >>>> select MFD_CORE > >>>> select REGMAP_I2C > >>> > >>> The help text states: > >>> > >>> | This driver creates a single register map with the intention for it > >>> | to be shared by all sub-devices. > >>> > >>> Yes, that's what MFD does? > >>> > >>> | Once the register map has been successfully initialised, any > >>> | sub-devices represented by child nodes in Device Tree will be > >>> | subsequently registered. > >>> > >>> OK...? > >>> > >>> Still, no clue about what this driver really does, and why and when > >>> it would be needed. > >>> > >>> There is one driver symbol that selects MFD_SIMPLE_MFD_I2C. > >>> There are no driver symbols that depend on this symbol. > >>> > >>> If you have a driver in the pipeline that can make use of this, > >>> can't it just select MFD_SIMPLE_MFD_I2C, so the symbol itself can > >>> stay invisible? > >> > >> My patch "mfd: simple-mfd-i2c: Enable support for the silergy,sy7636a" > >> allows using this driver for the silergy,sy7636a MFD. So it's nice to > >> be able to enable and disable it as required. > > > > So after that patch, enabling MFD_SIMPLE_MFD_I2C will enable > > support for an ever-growing random bunch of devices, none of which > > is described in the help text? > > To me, ghat doesn't look like the way to go forward... > > > > I am probably missing something. Why not something like the following ? > > config MFD_SY7636A > tristate "Silergy SY7636A voltage regulator" > depends on I2C > select MFD_SIMPLE_MFD_I2C > help > Enable support for Silergy SY7636A voltage regulator. > > To enable support for building sub-devices as modules, > choose M here. > > > This would be quite similar to MFD_SL28CPLD which essentially does > the same (and, unless I am missing something, doesn't have its own > driver either). Sub-devices would then depend on MFD_SY7636A. That's fine with me. As you said this patch is already in the mfd/for-mfd-next tree, should I resend the series? Alistair > > Guenter > > > Gr{oetje,eeting}s, > > > > Geert > > > > -- > > Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org > > > > In personal conversations with technical people, I call myself a hacker. But > > when I'm talking to journalists I just say "programmer" or something like that. > > -- Linus Torvalds >