Thread (31 messages) flat view 31 messages, 5 authors, 2014-06-26

[PATCH v4 07/14] mfd: Add driver for Maxim 77802 Power Management IC

From: dianders@chromium.org (Doug Anderson)
Date: 2014-06-26 16:13:02
Also in: linux-devicetree, linux-samsung-soc, lkml

Javier,

On Thu, Jun 26, 2014 at 4:13 AM, Javier Martinez Canillas
[off-list ref] wrote:
quoted
quoted
+
+#ifdef CONFIG_PM_SLEEP
+static int max77802_suspend(struct device *dev)
+{
+    struct i2c_client *i2c = container_of(dev, struct i2c_client, dev);
+    struct max77802_dev *max77802 = i2c_get_clientdata(i2c);
+
+    if (device_may_wakeup(dev))
+            enable_irq_wake(max77802->irq);
+
+    disable_irq(max77802->irq);
Can you add short comment why this is needed? I know why but just for
future generations which will wonder: "why do we need to disable the IRQ
while suspending?" :). Especially that this is rather a workaround for
issue in other driver (I2C bus).
Good idea, I'll add a comment here on next version so code archaeologists can
figure out what what's going on here.
Is the disable_irq() needed if you have
<https://patchwork.kernel.org/patch/4421891/>?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help