Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp549650rdh; Thu, 23 Nov 2023 11:04:49 -0800 (PST) X-Google-Smtp-Source: AGHT+IGwKjvYCHpBXphs3G1UM3FGVYtoPyHjhYx9JEEZ3bbF2S0xYC1WbIr625d2ETo6Vgt6jF+W X-Received: by 2002:a17:902:db02:b0:1cf:59df:23d with SMTP id m2-20020a170902db0200b001cf59df023dmr365074plx.67.1700766289062; Thu, 23 Nov 2023 11:04:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700766289; cv=none; d=google.com; s=arc-20160816; b=gsRCY/dFpUi1Z4h/C5XUTkMk/2oF5YaFbO9BtQbqOMNIgtpqiYyR5+y3kPgplE09Zb pSmBfc2DwuSwI3gaBm735M0bayjSuyGzkGjTekqiNbxC802pUO33/o6oFQRS1Wz8A/7Q b/A7h7XFJYJuVPQGxcz3uEsv3ulW4VpxxkHizIBwYPiGvPp5nF6hfZu5lWWCS9HE8Cno U8LZWSDRCmXKnkqc3ht6pn2cTIH4h1OeTpEHrKiXWqDoU+CbHX9kQq6GqX8T3kMmZH83 iMTI22yb22nwdr4ohgI/JSGcy07kP2DbHkQPFKzPKvMZ2OYeDLkjR9eAgJrhnWeqNA/8 go2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=/SDYqZIXsdOyj0vjbWI2ClkLE18Ka/bdOsdj54i7Dpw=; fh=/jIIxuBHc8O173u8NZFrw7iTDmAyeVtLr8sKSOT5YA8=; b=WVWg2mSwJbsf3C710+yf+qB1IUVMIo6HfPPTiH8QNDMYLsrR28fWvse+0PfEOyWfwj Dxxyhx3iDuDo3QCRilT4HxNNgV0gn8mm7g7USGvZ4jg6FzMIExSp76e4vZQMp0+ZPRVU Lec3dtl8pStAlpCZaszU7MM/KShYV0rIIyRJzKTcXzoWVaVGBDchu4NeFktnFRmaSAGJ qCUs3aO4bTwYbpIxWZT9gmlXK0AB2qJgMp4kCPJct725I7fY1MIu9Jp2FsL9fGKBWvbd irwkS7zrF83kd0mEQMp5xCGj8fEBHWHkHjxqgeTw4WsJPb+AlThrcUwC2A8LKXAFp+Yb BSeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=k73At0T7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id q2-20020a170902dac200b001cc5d28bb2csi209564plx.151.2023.11.23.11.04.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 11:04:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=k73At0T7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 7369A806897B; Thu, 23 Nov 2023 11:04:44 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230072AbjKWTE3 (ORCPT + 99 others); Thu, 23 Nov 2023 14:04:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47158 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229686AbjKWTE2 (ORCPT ); Thu, 23 Nov 2023 14:04:28 -0500 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> 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> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Thu, 23 Nov 2023 11:04:44 -0800 (PST) > 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