Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1610131
| Path | csiph.com!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Javier Martinez Canillas <javier@osg.samsung.com> |
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v3] regulator: core: Limit propagation of parent voltage count and list |
| Date | Tue, 28 Mar 2017 00:50:01 +0200 |
| Message-ID | <tpLCx-6Cv-1@gated-at.bofh.it> (permalink) |
| References | <tpKwN-5V5-1@gated-at.bofh.it> |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=windows-1252 |
| Content-Transfer-Encoding | 7bit |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 50 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | linux-kernel@vger.kernel.org, Douglas Anderson <dianders@chromium.org>, Brian Norris <briannorris@chromium.org> |
| X-Original-Date | Mon, 27 Mar 2017 18:41:52 -0400 |
| X-Original-Message-ID | <bf7e7d72-608b-9645-302f-34401a8121ee@osg.samsung.com> |
| X-Original-References | <20170327213129.109189-1-mka@chromium.org> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1610131 |
Show key headers only | View raw
Hello Matthias,
On 03/27/2017 05:31 PM, Matthias Kaehlcke wrote:
> Commit 26988efe11b1 ("regulator: core: Allow to get voltage count and
> list from parent") introduces the propagation of the parent voltage
> count and list for regulators that don't provide this information
> themselves. The goal is to support simple switch regulators, however as
> a side effect normal continuous regulators can leak details of their
> supplies and provide consumers with inconsistent information.
>
> Limit the propagation of the voltage count and list to switch
> regulators.
>
Should we add a Fixes: 26988efe11b1 ("regulator: core: Allow to get voltage
count and list from parent") tag?
> Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
> ---
> Changes in v3:
> - Removed unused variable ops from regulator_count_voltages()
> - Updated commit message to use correct format for referencing commits
> (sorry, both stem from using different trees for testing and upstreaming)
>
You should add complete patch history, not only the delta with latest version.
[snip]
>
> + if (!rdev->desc->ops->get_voltage &&
> + !rdev->desc->ops->get_voltage_sel &&
> + !rdev->desc->ops->list_voltage &&
> + !rdev->desc->fixed_uV)
> + rdev->is_switch = true;
> +
Again, I think the check for get_voltage_sel is superfluous since !list_voltage
implies the former, otherwise regulator_register() would had returned -EINVAL.
Patch looks good to me though and I also see no regressions with it so:
Reviewed-by: Javier Martinez Canillas <javier@osg.samsung.com>
Tested-by: Javier Martinez Canillas <javier@osg.samsung.com>
Best regards,
--
Javier Martinez Canillas
Open Source Group
Samsung Research America
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH v3] regulator: core: Limit propagation of parent voltage count and list Matthias Kaehlcke <mka@chromium.org> - 2017-03-27 23:40 +0200 Re: [PATCH v3] regulator: core: Limit propagation of parent voltage count and list Javier Martinez Canillas <javier@osg.samsung.com> - 2017-03-28 00:50 +0200
csiph-web