linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] pxa/hx4700: bq24022 regulator needs to be enabled
@ 2011-04-15 14:39 Paul Parsons
  2011-04-19  8:40 ` Dmitry Artamonow
  0 siblings, 1 reply; 8+ messages in thread
From: Paul Parsons @ 2011-04-15 14:39 UTC (permalink / raw)
  To: linux-arm-kernel

Add REGULATOR_CHANGE_STATUS flag to hx4700 bq24022 regulator. Without this flag the bq24022 cannot be enabled and the battery will not charge.

Signed-off-by: Paul Parsons <lost.distance@yahoo.com>
---
--- clean-2.6.38/arch/arm/mach-pxa/hx4700.c	2011-03-15 01:20:32.000000000 +0000
+++ linux-2.6.38/arch/arm/mach-pxa/hx4700.c	2011-04-15 04:39:04.869989025 +0100
@@ -711,7 +711,7 @@ static struct regulator_consumer_supply 
 static struct regulator_init_data bq24022_init_data = {
 	.constraints = {
 		.max_uA         = 500000,
-		.valid_ops_mask = REGULATOR_CHANGE_CURRENT,
+		.valid_ops_mask = REGULATOR_CHANGE_CURRENT|REGULATOR_CHANGE_STATUS,
 	},
 	.num_consumer_supplies  = ARRAY_SIZE(bq24022_consumers),
 	.consumer_supplies      = bq24022_consumers,

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

end of thread, other threads:[~2011-04-20 13:48 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-15 14:39 [PATCH] pxa/hx4700: bq24022 regulator needs to be enabled Paul Parsons
2011-04-19  8:40 ` Dmitry Artamonow
2011-04-19 10:25   ` Eric Miao
2011-04-19 11:32   ` Dmitry Artamonow
2011-04-19 13:03     ` Eric Miao
2011-04-20 13:40       ` Philipp Zabel
2011-04-20 13:41       ` [PATCH] pxa/magician: " Philipp Zabel
2011-04-20 13:48         ` Eric Miao

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).