Thread (8 messages) 8 messages, 3 authors, 2015-07-20

[PATCH 1/2] input: touchscreen: pixcir_i2c_ts: Add support for optional wakeup interrupt

From: tony@atomide.com (Tony Lindgren)
Date: 2015-07-20 09:48:11
Also in: linux-devicetree, linux-input, linux-omap, lkml

* Dmitry Torokhov [off-list ref] [150719 23:36]:
On Sun, Jul 19, 2015 at 11:05:07PM -0700, Tony Lindgren wrote:
quoted
* Vignesh R [off-list ref] [150719 21:51]:
quoted
On 7/18/2015 3:21 AM, Dmitry Torokhov wrote:
quoted
I wonder if driver core should be responsible for clearing wake irq and
also for clearing wakeup flag.
AFAICU, wakeup flag is deleted when struct device is deleted, hence,
device_init_wakeup() call may not be required in .remove(). But,
dev_pm_clear_wake_irq() can be moved to driver core.
Currently the lifecycle of struct wakeup_source is not necessarily
the same as the lifecycle struct device. I believe net and usb drivers
at least allocate it dynamically.
I am not sure if I follow. I was wondering if we should clear the wakeup
IRQ setting on the driver unbinding. It does not mean that we'd be
deleting wakeup_source, just that we'll clear wakeup irq setting from
it.
Yes you're right we can do that. I was mostly commenting on why we
currently can't automate things further with devm.

Regards,

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