Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2223472pxp; Mon, 21 Mar 2022 14:16:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJysitg6v3y5IhF6MR/KX5QgzcA6PKFNUOzkICNz9OdErVe15YQln3U+lXXmj0WnwsPF9H/D X-Received: by 2002:a17:90b:314b:b0:1c7:3023:c218 with SMTP id ip11-20020a17090b314b00b001c73023c218mr1103508pjb.167.1647897360130; Mon, 21 Mar 2022 14:16:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647897360; cv=none; d=google.com; s=arc-20160816; b=M4NXCl2IRuBu/HV1v5tdIVI6IogHHVHTSt3arpA2xMTI0vnIHj9XH394V1KHw9x7C2 tf+N76av5lL176YpdO+9TFaLvR6cmv9oEai6gpDqSeyVN+J6dmauh6MEO5yR5zHOoFAT b57WJSGyOp8J7xwFGoaOKlOszI1HKn4mXLzeuXfhL+/UBrcXeNHYc+57JjaTiud+C0IC FvFNHyq3ia/eK+UQm0AwwNjCjxRDspJNen2IfM0Vk0V2FrgKaLVhh45vSVudnv7H03wJ JqXp9ygZH16t2MSNKO9rHZR0e9Mlw1Uz9v2fRjVpY45MdY5lpB5LfBVQyCDMiwV/uIKT KKgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=brnXMh1CbWOf98YxRTTsbDywHUHYCG+alkGn638zm4M=; b=vMikPhaoC7xBbxAN7znMWR+VnzvlAsxdtvwHhLSPcC76xqHPNtd6yLGBk3PDNMa7NC SjVA0fYScBSueld6wLX8IC5aLHkZ4vP6ut4T4CG21RO7glD5zNjlgJqsrTRva5Eax/u3 4biKlOiqdGlrIFnZV16XgiRT3p0iMGCqh04mr17JyDto1DxxecZm0Vs3mzBkvgYZdF4U 8SmoRrXAB94QJlIn8Bole74ZpzovEztjsk8yfgxSs+1KPYQ3WrvAG+orrDGZPZuf1e+L NL+P7BQJKSwT4f2/A1fiPpd70PPE/XY75Octi/eGa0l1NtJ3kjBo2yGsAcphwNTNflSZ x5Mg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BlvyFCPL; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id r5-20020a6560c5000000b003816043ee60si13190134pgv.85.2022.03.21.14.15.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Mar 2022 14:16:00 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BlvyFCPL; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6AEAC6E4EA; Mon, 21 Mar 2022 14:03:39 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345432AbiCUIts (ORCPT + 99 others); Mon, 21 Mar 2022 04:49:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42634 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345416AbiCUItp (ORCPT ); Mon, 21 Mar 2022 04:49:45 -0400 Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 21A6336322 for ; Mon, 21 Mar 2022 01:48:18 -0700 (PDT) Received: by mail-wm1-x331.google.com with SMTP id r64so8049418wmr.4 for ; Mon, 21 Mar 2022 01:48:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=brnXMh1CbWOf98YxRTTsbDywHUHYCG+alkGn638zm4M=; b=BlvyFCPLzsBlbqrGCBKMzUMgqnN4kBv+EO9dx8QQtssv6ckryQh3ESbB0tYPRif6dL PQn/As6uwDdRoWY21u8wppLgTnZykIXKGSFnDgt5Po/mkiunB+qy9MsDY0yTY/uKF3WB sAs24txOAa24hCWmiTH5GQ5e/6zgUSgXaQ/s5vHQCnF7ZqYuBFE8jlJ271X3Ifp3kSbk oRviKWNDfWLbKPJgE5HwmEtlVjLHpSWY8BjQzOumsFJdcizDE0EhG6WrDquo1l55Bjhb 01MutrJ5hAhUt8Zx0TeSLGebmKBFqikFDcqdcQ5V9/MzSWjEheVNeNdpOQPPiqstNcwj MpQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=brnXMh1CbWOf98YxRTTsbDywHUHYCG+alkGn638zm4M=; b=2WlCKx7xfJH9cCHsSshEMH6097eeL2fRacMD8fTiam7rkYv4p7aRGEWxquQgDUnJoa h8XayvqwhNMVYe8IBcfGiiLeJWQmhq0PHnzef54pOErZoWka8OwnG9NeogBziueVH0/x oqAn4VH5CNdFH5pjHtgbgjGqFFM0lUBrgmBWuNIeiVSLmHdNd8iM8SRcXHSKIZCjiuZ1 tdnnpJkBDrdcOAvgL14DFGYFLf1r/d8MkcUZcK3jjxpCMd4twzokSVokjaYagaWJvEOy XWXPR/pG7H+iM9mBsd1eR3v2019TtkzNLzSZT5bwLD4d1H662gVUO91WY6BSZfIlV8V8 4CiQ== X-Gm-Message-State: AOAM531vydYsqM8lcrqKalgmL0wRb1clbC2AauAxiVCg9438tUQrOOsv A3ulsE8DK98XDqAOHBn4aKun2w== X-Received: by 2002:a7b:c14d:0:b0:38c:801a:a8b3 with SMTP id z13-20020a7bc14d000000b0038c801aa8b3mr15884385wmi.40.1647852496516; Mon, 21 Mar 2022 01:48:16 -0700 (PDT) Received: from google.com (cpc155339-bagu17-2-0-cust87.1-3.cable.virginm.net. [86.27.177.88]) by smtp.gmail.com with ESMTPSA id y6-20020a05600015c600b00203fa70b4ebsm8691375wry.53.2022.03.21.01.48.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Mar 2022 01:48:15 -0700 (PDT) Date: Mon, 21 Mar 2022 08:48:13 +0000 From: Lee Jones To: Alistair Francis Cc: Guenter Roeck , Geert Uytterhoeven , Alistair Francis , Mark Brown , Rob Herring , Sascha Hauer , Liam Girdwood , 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 Subject: Re: [PATCH v18 2/8] mfd: simple-mfd-i2c: Add a Kconfig name Message-ID: References: <20220124121009.108649-1-alistair@alistair23.me> <20220124121009.108649-3-alistair@alistair23.me> <7792b3b6-e196-c3c7-5875-9eb4da488a95@roeck-us.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,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 Mon, 21 Mar 2022, Alistair Francis wrote: > 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? Making the symbol selectable-only is fine with me also. Please send a subsequent patch. -- Lee Jones [李琼斯] Principal Technical Lead - Developer Services Linaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | Blog