Skip to contentSkip to conversation

mtd: OneNAND: OMAP2/3: prevent regulator sleeping while OneNAND is in use

PATCH New Adrian Hunter 1 participant 1 message Feb 19, 2010

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 3/7 mtd: OneNAND: OMAP2/3: prevent regulator sleeping while OneNAND is in use

Prevent OneNAND's voltage regulator from going to sleep while OneNAND is in use, by explicitly enabling and disabling the regulator as appropriate.

---
 arch/arm/plat-omap/include/plat/onenand.h |    1 +
 drivers/mtd/onenand/omap2.c               |   41 ++++++++++++++++++++++++++++-
 2 files changed, 41 insertions(+), 1 deletions(-)
arch/arm/plat-omap/include/plat/onenand.h +1 -0
index 72f433d..affe87e 100644
@@ -23,6 +23,7 @@ struct omap_onenand_platform_data {
 	int                     (*onenand_setup)(void __iomem *, int freq);
 	int			dma_channel;
 	u8			flags;
+	u8			regulator_can_sleep;
 };
 
 #define ONENAND_MAX_PARTITIONS 8
drivers/mtd/onenand/omap2.c +40 -1

78 lines not on this page · raw message

Signature · 1 line
1.7.0.4