Thread (8 messages) 8 messages, 6 authors, 2016-07-15

Re: [PATCH 3/3] RFC: net: smsc911x: add wake-up event interrupt support

From: Tony Lindgren <tony@atomide.com>
Date: 2016-07-11 08:14:57
Also in: linux-omap

* Linus Walleij [off-list ref] [160708 02:10]:
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.
Cool, so far have not found any boards here with that
connected. Should be possible to solder that on at least
omap3-evm at some point though.
+static irqreturn_t smsc911x_pme_irq_thread(int irq, void *dev_id)
+{
+	struct net_device *dev = dev_id;
+	struct smsc911x_data *pdata __maybe_unused = netdev_priv(dev);
+
+	SMSC_TRACE(pdata, pm, "wakeup event");
+	/* This signal is active for 50 ms, wait for it to deassert */
+	usleep_range(50000, 100000);
+	return IRQ_HANDLED;
+}
This probably adds an extra 50 ms latency before we wake up
the smsc911x driver. Maybe we can eventually come up with
some nice solution to that too. Anyways, no objections on
my side for this patch as it provides a nice GPIO wakeirq test
case that can be automated with just ping -c 1 :)

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