[PATCH v9 1/2] regulator: Add driver for max77802 PMIC PMIC regulators
Javier Martinez Canillas
javier.martinez at collabora.co.uk
Fri Aug 22 10:53:19 PDT 2014
Hello Mark,
On 08/22/2014 04:45 PM, Mark Brown wrote:
> On Fri, Aug 22, 2014 at 02:15:46PM +0200, Javier Martinez Canillas wrote:
>
>> Mark, any opinions on how this should be solved will be highly appreciated.
>
> If someone could tell me what "this" is that'd help...
>
Sorry for not being clear on that regard. By "this" I meant the problem
reported by Yuvaraj.
The regulators operating mode is read from the hardware registers on probe
as you suggested but that means that if the regulator is disabled and the
machine rebooted (warm reset) the opmode reported by the hardware is
MAX77802_OPMODE_OFF.
The problem is that one of these regulators is used as the vqmmc-supply
(VCCQ/VDD_IO) so the mmc host controller driver disables it on
MMC_POWER_OFF. Now AFAIK (Yuvaraj can correct me what I got wrong) this
shouldn't be an issue since on card detection, the vqmmc supply should be
enabled again but on Exynos the built-in card detect line is on the same
power rail as vqmmc. That means that disabling the regulator prevents card
insertions to be detected.
This does not happen on the downstream Chrome OS kernel because the
max77802 regulator driver has some ad-hoc DT bindings were you can define
the operating mode to be set on probe. For this particular regulator is
MAX77802_OPMODE_STANDBY.
Yuvaraj solution was to set the operating mode to MAX77802_OPMODE_NORMAL
on probe() which was what I did on a previous version of the driver but
you explained to me that it was not safe to do that.
That's why I'm asking for suggestions.
Thanks a lot and best regards,
Javier
More information about the linux-arm-kernel
mailing list