Re: [PATCH] mfd: tps6586x: add api to power off tps6586x

From: Mark Brown
Date: Tue Aug 23 2011 - 11:41:12 EST


On Mon, Aug 22, 2011 at 01:06:02PM +0800, Haojian Zhuang wrote:

> Maybe we can add a LDO mapping in regulator driver. Since power-off
> function is always
> customized in board file. We can disable this regulator while
> power_off() is called. So even
> multiple PMICs is installed in one system, we only handle the real one
> to shutdown the
> whole system.

Some (ST?) platform had an issue like that. What they did IIRC is
define a regulator consumer driver which is hooked up as normal then had
that driver implemented a power_off() which used regulator_disable() to do
the honours. Perhaps this could be made more generic somehow? Though
it may have been part of their cpufreq driver or something - I can't
remember the detail right now.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/