linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] regulator: Fix regulator_enable deadlock and add uA_load propagation
@ 2011-03-28 15:34 David Collins
  2011-03-28 15:34 ` [PATCH 1/2] regulator: Remove possible deadlock from regulator_enable David Collins
                   ` (2 more replies)
  0 siblings, 3 replies; 20+ messages in thread
From: David Collins @ 2011-03-28 15:34 UTC (permalink / raw)
  To: linux-arm-kernel

Because the uA_load propagation change takes out a lock on a regulator and
then the regulators that it supplies, it will cause deadlock with the current
regulator_enable implementation.  regulator_disable can also deadlock with
regulator_enable, but it requires two threads and precise timing to observe.
Therefore, regulator_enable must be fixed before current propagation can be
used.

David Collins (2):
  regulator: Remove possible deadlock from regulator_enable
  regulator: Propagate uA_load requirements up supply chain

 drivers/regulator/core.c         |  147 +++++++++++++++++++++++++++++++-------
 include/linux/regulator/driver.h |    5 ++
 2 files changed, 125 insertions(+), 27 deletions(-)

-- 
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] 20+ messages in thread

end of thread, other threads:[~2011-03-30  1:00 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-28 15:34 [PATCH 0/2] regulator: Fix regulator_enable deadlock and add uA_load propagation David Collins
2011-03-28 15:34 ` [PATCH 1/2] regulator: Remove possible deadlock from regulator_enable David Collins
2011-03-28 18:11   ` Mark Brown
2011-03-28 18:22     ` David Collins
2011-03-28 15:34 ` [PATCH 2/2] regulator: Propagate uA_load requirements up supply chain David Collins
2011-03-28 18:02   ` Mark Brown
2011-03-28 18:14     ` Russell King - ARM Linux
2011-03-29  7:53       ` Mark Brown
2011-03-29  8:28         ` Russell King - ARM Linux
2011-03-29  8:40           ` Mark Brown
2011-03-28 18:18     ` David Collins
2011-03-28 18:33       ` broonie@gmail.com
2011-03-28 23:52 ` [PATCH v2 0/2] regulator: Fix regulator_enable deadlock and add uA_load propagation David Collins
2011-03-28 23:53   ` [PATCH v2 1/2] regulator: Remove possible deadlock from regulator_enable David Collins
2011-03-28 23:53   ` [PATCH v2 2/2] regulator: Propagate uA_load requirements up supply chain David Collins
2011-03-29  8:44     ` Mark Brown
2011-03-29 16:08       ` David Collins
2011-03-29 21:20         ` Mark Brown
2011-03-30  1:00           ` Mark Brown
2011-03-29 22:40     ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).