Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1412132
| From | Mark Brown <broonie@kernel.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [RFC PATCH v1 1/3] regulator: helpers: consider constriants in list_voltage_linear_range |
| Date | 2016-06-02 13:10 +0200 |
| Message-ID | <rFyFI-5bR-29@gated-at.bofh.it> (permalink) |
| References | <rFy2Z-4Jw-9@gated-at.bofh.it> <rFy2Z-4Jw-15@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
[Multipart message — attachments visible in raw view] - view raw
On Thu, Jun 02, 2016 at 11:23:14AM +0100, Srinivas Kandagatla wrote: > Regulator drivers can have linear range which is according to the > regualtor hardware spec, however the board level device tree files > can restrict this range by adding constriants. > These constriants are not considered in the exsiting code, which > gives false supported voltage range to the consumers. ... > For now I have added this support for regulator_list_voltage_linear_range() > If it makes sense we can extend this to other list voltage helpers too. Why are you making this change? The obvious problem here is that drivers should not be looking at constraints - it would be silly to duplicate constraint enforcing code in individual drivers and would lead to inconsistent performance of constraints. This is why we do this in the core, in _regulator_list_voltage(), which means that if this change has any effect there's something else going on that needs to be investigated.
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[RFC PATCH v1 1/3] regulator: helpers: consider constriants in list_voltage_linear_range Srinivas Kandagatla <srinivas.kandagatla@linaro.org> - 2016-06-02 12:30 +0200
Re: [RFC PATCH v1 1/3] regulator: helpers: consider constriants in list_voltage_linear_range Mark Brown <broonie@kernel.org> - 2016-06-02 13:10 +0200
Re: [RFC PATCH v1 1/3] regulator: helpers: consider constriants in list_voltage_linear_range Srinivas Kandagatla <srinivas.kandagatla@linaro.org> - 2016-06-02 14:00 +0200
csiph-web