summaryrefslogtreecommitdiff
path: root/drivers/mfd/max77663-core.c
diff options
context:
space:
mode:
authorJin Park <jinyoungp@nvidia.com>2011-09-05 15:19:21 +0900
committerDan Willemsen <dwillemsen@nvidia.com>2013-09-14 01:05:51 -0700
commit534102633fbad89b63166d53f46ba358f8c74a95 (patch)
tree8b12162d3a49dd5fe1a88766651014a207647eac /drivers/mfd/max77663-core.c
parentac759ab9ff67d54bfc9427f1038ee74cfcbcf54a (diff)
mfd: max77663: Set irq as wake interrupt
The irq need to set as wake interrupt to wake from sleep when interrupt receiving from MAX77663 PMU. Bug 868996 Signed-off-by: Jin Park <jinyoungp@nvidia.com> Reviewed-on: http://git-master/r/50694 (cherry picked from commit 4bbdf8764bbc262215ab33996e3a91473e7a7e68) Change-Id: I1489e9a4ea501ac668e040a73ad20fa1fd6544fb Reviewed-on: http://git-master/r/54634 Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Rebase-Id: Rba7e15fbb7f58e304aee22d7d39fdbea8e552095
Diffstat (limited to 'drivers/mfd/max77663-core.c')
-rw-r--r--drivers/mfd/max77663-core.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/mfd/max77663-core.c b/drivers/mfd/max77663-core.c
index a17369be71e6..f9da6244e69a 100644
--- a/drivers/mfd/max77663-core.c
+++ b/drivers/mfd/max77663-core.c
@@ -942,6 +942,9 @@ static int max77663_irq_init(struct max77663_chip *chip)
return ret;
}
+ device_init_wakeup(chip->dev, 1);
+ enable_irq_wake(chip->i2c_power->irq);
+
chip->cache_irq_top_mask &= ~IRQ_TOP_GLBL_MASK;
max77663_write(chip->dev, MAX77663_REG_IRQ_TOP_MASK,
&chip->cache_irq_top_mask, 1, 0);