From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 216B3B6F62 for ; Wed, 9 Nov 2011 00:42:20 +1100 (EST) Subject: Re: [PATCH 7/7] gianfar: add support for wake-on-packet Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: text/plain; charset=windows-1252 From: Kumar Gala In-Reply-To: <3F607A5180246847A760FD34122A1E052BC9C7@039-SN1MPN1-004.039d.mgd.msft.net> Date: Tue, 8 Nov 2011 07:42:09 -0600 Message-Id: <5D4A38A7-B662-40CC-97AB-9E2A64531776@kernel.crashing.org> References: <1320410403-14639-1-git-send-email-chenhui.zhao@freescale.com> <4EB45515.6060405@freescale.com> <3F607A5180246847A760FD34122A1E052BC9C7@039-SN1MPN1-004.039d.mgd.msft.net> To: Li Yang-R58472 Cc: Wood Scott-B07421 , "netdev@vger.kernel.org" , "linuxppc-dev@lists.ozlabs.org" , Fleming Andy-AFLEMING , Zhao Chenhui-B35336 List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Nov 8, 2011, at 5:20 AM, Li Yang-R58472 wrote: >=20 >=20 >> -----Original Message----- >> From: linuxppc-dev-bounces+leoli=3Dfreescale.com@lists.ozlabs.org >> [mailto:linuxppc-dev-bounces+leoli=3Dfreescale.com@lists.ozlabs.org] = On >> 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- >> AFLEMING >> Subject: Re: [PATCH 7/7] gianfar: add support for wake-on-packet >>=20 >> On 11/04/2011 07:40 AM, Zhao Chenhui wrote: >>> diff --git a/Documentation/devicetree/bindings/net/fsl-tsec-phy.txt >> b/Documentation/devicetree/bindings/net/fsl-tsec-phy.txt >>> 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 >>> waking up via magic packet. >>> + - fsl,wake-on-filer : If present, indicates that the hardware >> supports >>> + waking up via arp request to local ip address or unicast packet = to >>> + local mac address. >>=20 >> Is there any way to determine this at runtime via the device's = registers? >>=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=