From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jisheng Zhang Subject: Re: [PATCH] net: phy: marvell: clear wol event before setting it Date: Fri, 27 Apr 2018 15:23:17 +0800 Message-ID: <20180427152317.11ef32fb@xhacker.debian> References: <20180419160232.519d15be@xhacker.debian> <20180419121801.GC17888@lunn.ch> <4273f766-a017-b336-7d14-a28901d274b9@nvidia.com> <20180426141508.6660a633@xhacker.debian> <20180426155619.2c5d87d1@xhacker.debian> <20180426124007.GC13467@lunn.ch> <7b63b6f5-d93c-f2c8-c448-b81a8323c305@nvidia.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Andrew Lunn , Florian Fainelli , "David S. Miller" , , , Jingju Hou To: Bhadram Varka Return-path: In-Reply-To: <7b63b6f5-d93c-f2c8-c448-b81a8323c305@nvidia.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org On Fri, 27 Apr 2018 09:22:34 +0530 Bhadram Varka wrote: > Hi Andrew/Jisheng, > > On 4/26/2018 6:10 PM, Andrew Lunn wrote: > >> hmm, so you want a "stick" WOL feature, I dunno whether Linux kernel > >> requires WOL should be "stick". > > I see two different cases: > > > > Suspend/resume: The WoL state in the kernel is probably kept across > > such a cycle. If so, you would expect another suspend/resume to also > > work, without needs to reconfigure it. > Trying this scenario (suspend/resume) from my side. In this case WoL > should be enabled in the HW. For Marvell PHY to generate WoL interrupt > we need to clear WoL status. > Above mentioned change required to make this happen. Please share your > thoughts on this. I'm fine with that patch. Maybe you could send out a patch? Thanks