[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20130809102757.GT6427@sirena.org.uk>
Date: Fri, 9 Aug 2013 11:27:57 +0100
From: Mark Brown <broonie@...nel.org>
To: Alexander Shiyan <shc_work@...l.ru>
Cc: Guenter Roeck <linux@...ck-us.net>, Wei Ni <wni@...dia.com>,
swarren@...dotorg.org, linux-kernel@...r.kernel.org,
lm-sensors@...sensors.org, khali@...ux-fr.org,
MLongnecker@...dia.com, linux-tegra@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org
Subject: Re: Proposal: I2C device power (Was: hwmon: (lm90) Add power control)
On Fri, Aug 09, 2013 at 09:57:00AM +0400, Alexander Shiyan wrote:
> Instead of adding the support of regulators in each device, let's think about
> whether it is possible to create a global regulator for any device on the I2C bus.
> I see it like this:
> We add an extra field in the i2c_board_info structure "power_name" and handle
> it in the i2c_device_{probe/remove} functions.
This would need to be an array of supplies, relatively few devices need
only a single power supply. This is also not something that should be
handled in I2C, power is not something that's uniquely needed by devices
on an I2C bus.
> The question remains how to maintain such regulator in the PM functions,
> but we can discuss it.
Well, there's some basic stuff for this for clocks already - a similar
pattern should work. You need to use runtime PM to hook in the power
management and it's not going to work for everything (especially things
that can be wake sources) but there's some value in trying to factor out
the basic use case.
Download attachment "signature.asc" of type "application/pgp-signature" (837 bytes)
Powered by blists - more mailing lists