Thread (6 messages) flat view 6 messages, 4 authors, 2011-11-08

Re: [PATCH 7/7] gianfar: add support for wake-on-packet

From: Kumar Gala <hidden>
Date: 2011-11-08 13:42:20
Also in: netdev

On Nov 8, 2011, at 5:20 AM, Li Yang-R58472 wrote:
=20
=20
quoted
-----Original Message-----
From: linuxppc-dev-bounces+leoli=3Dfreescale.com@lists.ozlabs.org
[mailto:linuxppc-dev-bounces+leoli=3Dfreescale.com@lists.ozlabs.org] =
On
quoted
Behalf Of Scott Wood
Sent: Saturday, November 05, 2011 5:12 AM
To: Zhao Chenhui-B35336
Cc: netdev@vger.kernel.org; linuxppc-dev@lists.ozlabs.org; Fleming =
Andy-
quoted
AFLEMING
Subject: Re: [PATCH 7/7] gianfar: add support for wake-on-packet
=20
On 11/04/2011 07:40 AM, Zhao Chenhui wrote:
quoted
diff --git a/Documentation/devicetree/bindings/net/fsl-tsec-phy.txt
b/Documentation/devicetree/bindings/net/fsl-tsec-phy.txt
quoted
index 2c6be03..543e36c 100644
--- a/Documentation/devicetree/bindings/net/fsl-tsec-phy.txt
+++ b/Documentation/devicetree/bindings/net/fsl-tsec-phy.txt
@@ -56,6 +56,9 @@ Properties:
    hardware.
  - fsl,magic-packet : If present, indicates that the hardware =
supports
quoted
quoted
    waking up via magic packet.
+  - fsl,wake-on-filer : If present, indicates that the hardware
supports
quoted
+    waking up via arp request to local ip address or unicast packet =
to
quoted
quoted
+    local mac address.
=20
Is there any way to determine this at runtime via the device's =
registers?
quoted
=20
I think TSEC_ID2[TSEC_CFG] can be used.  The manual describes it
awkwardly, but it looks like 0x20 is the bit for the filer.
=20
That bit only defines the filer feature but not wakeup on it.  Another =
solution is to get the capability from the fsl_pmc driver, but will make =
the driver a lot more complex.

I don't believe there is a way to know this from the controller itself.  =
We have to use device tree for it.

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