Re: [PATCH 3/3 v2] net: smsc911x: add wake-up event interrupt support
From: Tony Lindgren <tony@atomide.com>
Date: 2016-08-26 14:40:25
* Linus Walleij [off-list ref] [160824 06:00]:
The SMSC911x have a line out of the chip called "PME", Power Management Event. When connected to an asynchronous interrupt controller this is able to wake the system up from sleep in response to certain network events. This is the first attempt to support this in the Linux driver: the Qualcomm APQ8060 Dragonboard has this line routed to a GPIO line on the primary SoC padring, and as such it can be armed as a wakeup interrupt. The patch is inspired by the wakeup code in the RTC subsystem. The code looks for an additional interrupt - apart from the ordinary device interrupt - and in case that is present, we register an interrupt handler to respons to this, and flag the device and this interrupt as a wakeup. Cc: Sudeep Holla <redacted> Cc: Tony Lindgren <tony@atomide.com> Cc: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: Linus Walleij <redacted> --- ChangeLog v1->v2: - Call pm_wakeup_event() in the wakeup IRQ thread to account for the wakeup event. - Drop the enable/disable_irq_wake() calls from suspend/resume: this is handled from the irq core when you call dev_pm_set_wake_irq() as we do.
Looks OK to me: Acked-by: Tony Lindgren <tony@atomide.com>