From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="k73At0T7" Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5EEC719D; Thu, 23 Nov 2023 11:04:35 -0800 (PST) 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=/SDYqZIXsdOyj0vjbWI2ClkLE18Ka/bdOsdj54i7Dpw=; b=k73At0T74i/QGx6XSEriGiSqoX CilR8xNuoSc2MzKB3RIYMR10jhHrPgI7P72TWzf6UC+JcW1g798XIbibFF9pmGYzY4dEp7FAdsllE ruQfBOaBDtPtrqQRf7xn1+mCuZrwuHPbqPo5mxFkSBQ8poR9wzcOtGWJ97qwxsCDI6lg=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1r6Ezp-0011Zk-3s; Thu, 23 Nov 2023 20:04:17 +0100 Date: Thu, 23 Nov 2023 20:04:17 +0100 From: Andrew Lunn To: Javier Carrasco Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner , David Wu , Alexandre Torgue , Jose Abreu , Maxime Coquelin , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com Subject: Re: [PATCH RFC WIP 0/2] net: stmmac: dwmac-rk: add support for PHY wake on LAN Message-ID: References: <20231123-dwmac-rk_phy_wol-v1-0-bf4e718081b9@wolfvision.net> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231123-dwmac-rk_phy_wol-v1-0-bf4e718081b9@wolfvision.net> > Setting the USE_PHY_WOL flag configures the PHY as expected (its driver > writes the MAC address and the interrupt configuration into the PHY > registers) and an interrupt is generated with every magic packet, > but only during normal operation i.e. there is no interrupt generation > in suspend-to-RAM. Do you have a logic analyser connected? Can you see if the PHY is toggling its output pin? We then know if its a PHY problem, or a SoC problem. > A (probably naive) wakeup-source property in the dt node does not help. > So now I am trying to find out why the PHY does not react in suspend and > why its interrupt is ignored in freeze mode, but I might be overlooking > some other important point to consider. What is the clock setup? Sometimes the MAC gives a clock to the PHY. Sometimes the PHY gives a lock to the MAC. If its MAC->PHY, and this clock is getting turned off, that might cause a problem. Andrew