]> git.baikalelectronics.ru Git - kernel.git/commit
stmmac: support wake up irq from external sources (v3)
authorDeepak Sikri <deepak.sikri@st.com>
Thu, 1 Sep 2011 21:51:37 +0000 (21:51 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 15 Sep 2011 19:40:01 +0000 (15:40 -0400)
commitb483e6e0a6108c2d3beb1b125fd99807dc7572d7
treef7f97b57388edf50fa65958b0186b612b60f9ab7
parent8c9263b5a5d25ac227f63dd350370fdf270b78c3
stmmac: support wake up irq from external sources (v3)

On some platforms e.g. SPEAr the wake up irq differs from the
GMAC interrupt source.
With this patch an external wake up irq can be passed through the
platform code and named as "eth_wake_irq".

In case the wake up interrupt is not passed from the platform
so the driver will continue to use the mac irq (ndev->irq)

Signed-off-by: Deepak Sikri <deepak.sikri@st.com>
Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac.h
drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c