Thread (6 messages) 6 messages, 3 authors, 2016-05-13

Re: [PATCH] Input - ntrig_spi: add new driver for the Surface 3

From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Date: 2016-05-12 19:56:43
Also in: lkml

On Thu, May 12, 2016 at 09:51:22PM +0200, Benjamin Tissoires wrote:
On May 12 2016 or thereabouts, Dmitry Torokhov wrote:
quoted
On Thu, May 12, 2016 at 05:07:54PM +0200, Benjamin Tissoires wrote:
quoted
+static int __maybe_unused ntrig_spi_suspend(struct device *dev)
+{
+	struct spi_device *spi = to_spi_device(dev);
+	struct ntrig *data = spi_get_drvdata(spi);
+
+	ntrig_spi_free_irq(data);
Why?
To disable the IRQ and be sure we won't wake up the device...
It might just work without though.
Or you can do disable_irq(). Do you want it to be wakeup source by
chance? Then you need to wire it up some more.

Thanks.

-- 
Dmitry
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help