From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2EE8EC77B75 for ; Mon, 8 May 2023 19:10:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233157AbjEHTJ7 (ORCPT ); Mon, 8 May 2023 15:09:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229771AbjEHTJ5 (ORCPT ); Mon, 8 May 2023 15:09:57 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CDD2835A8; Mon, 8 May 2023 12:09:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=UX+m9kPc21K8WekKV6ssDCuyIE9JYwlqyANuJxhhXj4=; b=xI/tbD+VbXNoyWiGHc9JVHqhej mN1Tid39+rXkY91yWqXtC85kXx0QowYm/klVBPcBCT+hrBMcDgKjW5fFV23UZ9mLBYxwq0e3x2b0M diS9I8iwPgJAgQ6wgJ7RTpVtQNgQk4TUsnKfpZhpwTqx108Wd6fmSnD/CBV76h2gPmkU=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1pw6Ez-00CDyC-A2; Mon, 08 May 2023 21:09:45 +0200 Date: Mon, 8 May 2023 21:09:45 +0200 From: Andrew Lunn To: Florian Fainelli Cc: netdev@vger.kernel.org, Doug Berger , Broadcom internal kernel review list , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Heiner Kallweit , Russell King , Marek =?iso-8859-1?Q?Beh=FAn?= , Peter Geis , Frank , open list Subject: Re: [PATCH net-next 2/3] net: phy: broadcom: Add support for Wake-on-LAN Message-ID: <5711f834-8fc1-4144-bc12-e12388c2808a@lunn.ch> References: <20230508184309.1628108-1-f.fainelli@gmail.com> <20230508184309.1628108-3-f.fainelli@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230508184309.1628108-3-f.fainelli@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Because the Wake-on-LAN configuration can be set long before the system > is actually put to sleep, we cannot have an interrupt service routine to > clear on read the interrupt status register and ensure that new packet > matches will be detected. Hi Florian I assume the interrupt is active low, not an edge. And it will remain active until it is cleared? So on resume, don't you need to clear it? Otherwise it is already active when entering the next suspend/resume cycle. Andrew