public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* regulator voltage aggregation
@ 2010-08-17 18:06 Bobby Crabtree
  2010-08-17 18:15 ` Mark Brown
  2010-08-17 18:28 ` Alan Cox
  0 siblings, 2 replies; 8+ messages in thread
From: Bobby Crabtree @ 2010-08-17 18:06 UTC (permalink / raw)
  To: broonie, lrg; +Cc: linux-kernel, linux-arm-msm

I'm looking to upstream a new feature in which the regulator core
aggregates voltage requests from multiple consumers and applies the best
fitting voltage (e.g. max voltage) to a shared supply. The core would
recompute the best fitting voltage when a consumer requests a voltage
change or requests to enable/disable the regulator (similar logic to
DRMS).

The reason we need this feature is for power savings. It would allow two
or more consumers to "vote" on a voltage that's lower than the normal
operating voltage.

I've got a couple implementations in mind.

1. Introduce a new API:

int regulator_set_optimum_voltage(struct regulator *regulator,
                int min_uV, int max_uV);

2. Add a flag to the regulation_constraints structure and reuse the
existing regulator_set_voltage API.

struct regulation_constraints {
        ...
        unsigned aggregate_uV:1;
        ...
};

Does this sound like a reasonable feature? And if so, are there any
preferences as to how the feature is implemented and exposed?

Bobby Crabtree

Sent by an employee of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2010-08-17 21:03 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-17 18:06 regulator voltage aggregation Bobby Crabtree
2010-08-17 18:15 ` Mark Brown
2010-08-17 19:33   ` Bobby Crabtree
2010-08-17 19:50     ` Mark Brown
2010-08-17 20:44       ` Bobby Crabtree
2010-08-17 21:03         ` Mark Brown
2010-08-17 18:28 ` Alan Cox
2010-08-17 18:22   ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox