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 X-Spam-Level: X-Spam-Status: No, score=-5.4 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7B7ABC33CB1 for ; Wed, 15 Jan 2020 08:29:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4319F24681 for ; Wed, 15 Jan 2020 08:29:23 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="pxINdBip" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728885AbgAOI3W (ORCPT ); Wed, 15 Jan 2020 03:29:22 -0500 Received: from mail-wr1-f67.google.com ([209.85.221.67]:46055 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729263AbgAOI3V (ORCPT ); Wed, 15 Jan 2020 03:29:21 -0500 Received: by mail-wr1-f67.google.com with SMTP id j42so14772823wrj.12 for ; Wed, 15 Jan 2020 00:29:20 -0800 (PST) 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 :user-agent; bh=3GK5Djc6Es4Lf2bms5LobhRrB6cfPeA6TPSSmCtuW7o=; b=pxINdBipIObKzAeju8UwLEZAh1c5Lz1AFYRX/gAiXp8HUgwfqjdIyb/QJQy8cq+DGJ G1TfipKXPwr+RZM/eigUSHh5njYxyxJZKjJKCrRroT1Rn0/X8060NszcvuJnUWQ3pKq9 i9lA5p3Q1AUb8ZoVC/koPJs1YWYGrmRXX7YlokbI2szyEJ84euHOPRCiCyQGQEUfLhKF lN/1qkVsQZSmhhBxica9csSceRRk4mUwyx3bsn93E4AuWl8gLuDD8fxO0lc5XB8QUORb 94ecpjrpXdaL3osYQWCL5R3SF0gGpKlUlb6qqYB9ywtCqBxyDGWk1lOqGWUu/kpCRtiy Gn6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=3GK5Djc6Es4Lf2bms5LobhRrB6cfPeA6TPSSmCtuW7o=; b=FXZSWocbhyEpN5RWFjwZdf08QVm7l+WYVBeA/gaCnQXq+14lj9i3cLlF4nkbqLYDxJ XAq9WvS5kKfl0umoFocE49nFpOMd4b8LLe3LuZTzJt2RqX1KFG6F2Tth1ZXRTU90jMz4 K++cN8V6KFaq6stfL7hDAy8/JoZlvY8HqZej4gt6udcrRkpMWm77DFDyECQ2+dCvGFVJ 03hAIrWTwokeji4JSTk+JDFJBzq+9PzyI2Fr5/dJTb3u8mAvuVZWgG9I3s2iogY+H72J FELpVt8ajoglruTj3In+U12CI4WFIFHnkyJ4k/ew4oyAw7zPl0sMP/tC3kAwHjrrpni7 IFmA== X-Gm-Message-State: APjAAAWTrRghBcVGIKc5uXRWSixzBr8incvcrVAzzpvmrfekw3bsLzMs UQGErGYIs0v1jkNxg6tQjZ5gIQ== X-Google-Smtp-Source: APXvYqxg5fYMbpzJkbMnE9bwu+VJEIcsdrHoYIUzhPAxEC31+lysJdWQxte1D3bkl5SWo9KJvHl4Nw== X-Received: by 2002:adf:dd51:: with SMTP id u17mr29019061wrm.290.1579076959924; Wed, 15 Jan 2020 00:29:19 -0800 (PST) Received: from dell ([2.27.35.221]) by smtp.gmail.com with ESMTPSA id b16sm24408442wrj.23.2020.01.15.00.29.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Jan 2020 00:29:18 -0800 (PST) Date: Wed, 15 Jan 2020 08:29:37 +0000 From: Lee Jones To: "Vaittinen, Matti" Cc: "dmurphy@ti.com" , "linux-leds@vger.kernel.org" , "linux-rtc@vger.kernel.org" , "linux-gpio@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "alexandre.belloni@bootlin.com" , "mazziesaccount@gmail.com" , "mturquette@baylibre.com" , "lgirdwood@gmail.com" , "devicetree@vger.kernel.org" , "linus.walleij@linaro.org" , "a.zummo@towertech.it" , "mark.rutland@arm.com" , "robh+dt@kernel.org" , "bgolaszewski@baylibre.com" , "linux-clk@vger.kernel.org" , "sboyd@kernel.org" , "pavel@ucw.cz" , "jacek.anaszewski@gmail.com" , "broonie@kernel.org" Subject: Re: [PATCH v8 08/12] regulator: bd718x7: Split driver to common and bd718x7 specific parts Message-ID: <20200115082937.GD325@dell> References: <20200107124124.GI14821@dell> <32f8fa4201ae99df64e7a39c6a69be2bef179f7b.camel@fi.rohmeurope.com> <20200113105301.GF5414@dell> <20200113121109.GG5414@dell> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200113121109.GG5414@dell> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org On Mon, 13 Jan 2020, Lee Jones wrote: > On Mon, 13 Jan 2020, Vaittinen, Matti wrote: > > On Mon, 2020-01-13 at 10:53 +0000, Lee Jones wrote: > > > On Wed, 08 Jan 2020, Vaittinen, Matti wrote: > > > > On Tue, 2020-01-07 at 12:41 +0000, Lee Jones wrote: > > > > > On Mon, 30 Dec 2019, Matti Vaittinen wrote: > > > > > > > > > > > Few ROHM PMICs allow setting the voltage states for different > > > > > > system states > > > > > > like RUN, IDLE, SUSPEND and LPSR. States are then changed via > > > > > > SoC > > > > > > specific > > > > > > mechanisms. bd718x7 driver implemented device-tree parsing > > > > > > functions for > > > > > > these state specific voltages. The parsing functions can be re- > > > > > > used > > > > > > by > > > > > > other ROHM chip drivers like bd71828. Split the generic > > > > > > functions > > > > > > from > > > > > > bd718x7-regulator.c to rohm-regulator.c and export them for > > > > > > other > > > > > > modules > > > > > > to use. > > > > > > > > > > > > Signed-off-by: Matti Vaittinen < > > > > > > matti.vaittinen@fi.rohmeurope.com> > > > > > > Acked-by: Mark Brown > > > > > > --- > > > > > > [...] > > > > > > > > > +#if IS_ENABLED(CONFIG_REGULATOR_ROHM) > > > > > > +int rohm_regulator_set_dvs_levels(const struct rohm_dvs_config > > > > > > *dvs, > > > > > > + struct device_node *np, > > > > > > + const struct regulator_desc > > > > > > *desc, > > > > > > + struct regmap *regmap); > > > > > > > > > > Does these really need to live in the parent's header file? > > > > > > > > I don't know what would be a better place? > > > > > > You don't have a regulator header file? > > > > > > It seems over-kill to create one for this, so leave it as is. > > > > > > > > What other call-sites are there? > > > > > > > > After this series the bd718x7-regulator.c and bd71828-regulator.c > > > > are > > > > the in-tree drivers using these. rohm-regulator.c is implementing > > > > them. > > > > And I hope we see yet another driver landing in later this year. > > > > > > > > Anyways, I will investigate if I can switch this to some common > > > > (not > > > > rohm specific) DT bindings at some point (I've scheduled this study > > > > to > > > > March) - If I can then they should live in regulator core headers. > > > > > > > > But changing the existing properties should again be own set of > > > > patches > > > > and I'd prefer doing that work independently of this series and not > > > > delaying the BD71828 due to not-yet-evaluated bd718x7 property > > > > changes. > > > > > > That's fine. > > > > Glad to hear :) By the way, I already sent the v9 ;) > > It's in my queue. Although you didn't submit the whole set to me, so I only have a few of the patches. Why did you choose to do that this time? -- Lee Jones [李琼斯] Linaro Services Technical Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog