Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1364761
| From | Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] regulator: twl: Enable regulators over the powerbus as well |
| Date | 2016-03-25 17:20 +0100 |
| Message-ID | <rgCCR-4l1-3@gated-at.bofh.it> (permalink) |
| References | <rfWDD-83n-3@gated-at.bofh.it> <rgxWz-Rf-67@gated-at.bofh.it> <rgBx8-3pJ-1@gated-at.bofh.it> <rgCjx-3QV-27@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 25.03.2016 17:54, Mark Brown wrote: > On Fri, Mar 25, 2016 at 04:02:59PM +0100, Sebastian Reichel wrote: >> On Fri, Mar 25, 2016 at 11:17:57AM +0000, Mark Brown wrote: >>> On Wed, Mar 23, 2016 at 09:22:36PM +0200, Ivaylo Dimitrov wrote: > >>>> Assigning a device group to a regulator does not change its state. To >>>> change the state of a regulator a message over the powerbus is required. >>>> Also, the check for the current state of a regulator should not count on >>>> a device group being assigned, but on the current resource state. > >>> How did this driver ever work then? It sounds like there must be >>> something else going on here. In short - it does not work, the voltages and regulator states are left on the mercy of the reset defaults and the bootloader. > >> From my understanding of the twl4030 TRM assigning a device group >> means "<device group> wants this regulator enabled". It does not >> change the regulator mode (sleep vs normal or in regulator-framework >> terms: REGULATOR_STATUS_NORMAL vs REGULATOR_STATUS_STANDBY). > >> It usually works, since the default state is normal. If the system >> is rebooted from a non-mainline kernel, which left the regulator in >> sleep/standby, nothing in the kernel switches it to normal. > This is exactly what happens > I really can't tell how anyone could get from the changelog to what > you're saying about modes. The explanation needs to be *much* clearer. > > Part of the confusion is that if you're trying to do something to do > with the mode support that really needs to use the mode APIs, enabling > or disabling the regulator should not silently change the mode. > Ok, so you say that regulator framework should call twl4030reg_set_mode(), but it doesn't. If that is the case, then the bug is in the regulator framework, a similar one to what you've fixed in "regulator: core: Always flag voltage constraints as appliable".
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH] regulator: twl: Enable regulators over the powerbus as well Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com> - 2016-03-23 20:30 +0100
Re: [PATCH] regulator: twl: Enable regulators over the powerbus as well Mark Brown <broonie@kernel.org> - 2016-03-25 12:20 +0100
Re: [PATCH] regulator: twl: Enable regulators over the powerbus as well Sebastian Reichel <sre@kernel.org> - 2016-03-25 16:10 +0100
Re: [PATCH] regulator: twl: Enable regulators over the powerbus as well Mark Brown <broonie@kernel.org> - 2016-03-25 17:00 +0100
Re: [PATCH] regulator: twl: Enable regulators over the powerbus as well Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com> - 2016-03-25 17:20 +0100
Re: [PATCH] regulator: twl: Enable regulators over the powerbus as well Mark Brown <broonie@kernel.org> - 2016-03-25 17:30 +0100
Re: [PATCH] regulator: twl: Enable regulators over the powerbus as well Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com> - 2016-03-25 18:00 +0100
Re: [PATCH] regulator: twl: Enable regulators over the powerbus as well Mark Brown <broonie@kernel.org> - 2016-03-25 18:10 +0100
Re: [PATCH] regulator: twl: Enable regulators over the powerbus as well Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com> - 2016-03-25 18:30 +0100
Re: [PATCH] regulator: twl: Enable regulators over the powerbus as well Mark Brown <broonie@kernel.org> - 2016-03-25 19:30 +0100
Re: [PATCH] regulator: twl: Enable regulators over the powerbus as well Sebastian Reichel <sre@kernel.org> - 2016-03-25 21:20 +0100
Re: [PATCH] regulator: twl: Enable regulators over the powerbus as well Mark Brown <broonie@kernel.org> - 2016-03-25 23:30 +0100
Re: [PATCH] regulator: twl: Enable regulators over the powerbus as well Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com> - 2016-03-26 07:20 +0100
Re: [PATCH] regulator: twl: Enable regulators over the powerbus as well Sebastian Reichel <sre@kernel.org> - 2016-03-25 17:50 +0100
Re: [PATCH] regulator: twl: Enable regulators over the powerbus as well Mark Brown <broonie@kernel.org> - 2016-03-25 18:30 +0100
csiph-web