From: Andrew Lunn Subject: Re: [PATCH] net: phy: marvell: clear wol event before setting it Date: Thu, 26 Apr 2018 14:40:07 +0200 Message-ID: <20180426124007.GC13467@lunn.ch> References: <20180419160232.519d15be@xhacker.debian> <20180419121801.GC17888@lunn.ch> <4273f766-a017-b336-7d14-a28901d274b9@nvidia.com> <20180426141508.6660a633@xhacker.debian> <20180426155619.2c5d87d1@xhacker.debian> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Bhadram Varka , Florian Fainelli , "David S. Miller" , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Jingju Hou To: Jisheng Zhang Return-path: Content-Disposition: inline In-Reply-To: <20180426155619.2c5d87d1@xhacker.debian> Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org > 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. Boot from powered off: If the interrupt just enables the power supply, it is possible to wake up after a shutdown. There is no state kept, so WoL will be disabled in the kernel. So WoL should also be disabled in the hardware. Andrew