Messages in this thread | | | Date | Tue, 16 Oct 2012 14:35:00 +0900 | From | Mark Brown <> | Subject | Re: [PATCH 1/2] regulator: core: Check before enabling regulator while setting constraints. |
| |
On Tue, Oct 16, 2012 at 10:54:19AM +0530, Yadwinder Singh Brar wrote: > This patch adds check, whether regulator is already enabled before enabling it > while setting machine constraints. Since some PMICs have same register bits > for setting opmode and enabling/disabling the regulator, so it will overwrite > the settings (if any)done by set_mode/set_suspend_mode callbacks when it > enables regulator without checking previous status.
This sounds like a bug in the driver, these ops are supposed to be repeatable at will. The driver needs to remember the mode setting when doing enable or disable, and setting the mode should not change the enable status.
| |