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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9799EC624B4 for ; Thu, 23 Nov 2023 19:04:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=J77nmFbffVRdF3mPtI3SFny/KNzWzvKCYIq5ZeUp6dM=; b=2FZTK4wFF47Xub tm/VuaX54fPKHb5jwvSJq2v7cf4/qDifO3SdnhLZgfRKG7GPX0piAJ5gGQ6ljjwcc8I7Mqg7KrR/l K8VIGo3qXiYjzzdK/fNs1F7+2RhShyPybQF8ZBTKPpwWTrYPuKIdonn7lbj+KoIRg9a5sLtMaaXNh 364hNgVLZg051niZEJ2P2di5zKhZnSywFm1ruiCUXe3l/m+pMHrD0LGbhizyrHK3wtgDsOcSjDOtz na6kGq/PQ9A7NcQS3ppj7G3vRUcGSIZOdAr7561dUYmgT6AlNpP2s+tONlZ8oFk6fXfwXCZ68+fiV MpWcqDtthGWCc0mEnpnA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r6F07-005Z7b-1D; Thu, 23 Nov 2023 19:04:35 +0000 Received: from vps0.lunn.ch ([156.67.10.101]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r6F04-005Z7E-2z; Thu, 23 Nov 2023 19:04:34 +0000 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> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20231123-dwmac-rk_phy_wol-v1-0-bf4e718081b9@wolfvision.net> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231123_110432_983922_D835169A X-CRM114-Status: GOOD ( 14.29 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org > 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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel