Received: by 2002:a05:6520:4d:b0:139:a872:a4c9 with SMTP id i13csp3477532lkm; Tue, 21 Sep 2021 17:07:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxrQLBnwc22X5saJYtLsdnZWzP4SGcHBbSBCPcqhaplOINzwdEMnNBym4qEn2Xsgrl3sNzE X-Received: by 2002:a50:cd87:: with SMTP id p7mr39499605edi.294.1632269225261; Tue, 21 Sep 2021 17:07:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632269225; cv=none; d=google.com; s=arc-20160816; b=tpOynGfqn8ECDo3yiAcjLUqu2J+aBzmsN6Ag6IHKXNiIPuKMh3UpnrILSpcP47L9Qw vrgedfzK4FJpkBvkgZTWIBF/lXDRJR8XGMDyrpOz7NadYrM3vudNiKi1XZZxPd2I2+e/ lPrAiZ60kUYyYmN5toQYQQVWii54TA9jsSKFINGRxb64WzkleuEakKUwLoRES0hytTqB rtkbCqgG6R2Oo8rOpPJ0/RELWVxx9rD/gZIZ13QackxkRPMe+RrP+DYRo03aVygxSwPi pgk3aBDIX6Aw/ex7VvCyN+Zkua/n5RPZGK55rIlUe/lzoB5nZ7IMZh2P8ohBMbU6i/8X ij4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=vYkTorRE9PS3RcwC3uVPbiiHNl7jKhUUQfwffZEeCoE=; b=UYpaBqe3x3iMr5NJ+b/HlUVbjAznzcfYc0JfS73lIPv8urgvk3/SWDz7IosC7nZDsK 8N+93gcQIZeBTTCKgwq7xB3lADoatf6GrCQlcjp8xb9hctA2rBSBS1lT3m/He+Vfwb7s ksvAleFBqf9WRJ04WtqN2BeumRqCx+O738XIcBfYn2yQyOMuOuR5KQOSzmj8bMcv9jol oyp/pdF59P49oWZvyIYVnd3swfdOYA9cYvw2MLDWwPch0aLvaaN2VWc92rh8y5BU1kVR aqoai0C5KPFkRWEtTbewHhVfsqRmyE8JsKSLKtqnxI2UWbDvJUKYwuFEEIXcCzk/Sb3d gUXg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g10si716323edj.368.2021.09.21.17.06.29; Tue, 21 Sep 2021 17:07:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235380AbhIUVaI (ORCPT + 99 others); Tue, 21 Sep 2021 17:30:08 -0400 Received: from jabberwock.ucw.cz ([46.255.230.98]:45534 "EHLO jabberwock.ucw.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235066AbhIUVaH (ORCPT ); Tue, 21 Sep 2021 17:30:07 -0400 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id 7162F1C0B76; Tue, 21 Sep 2021 23:28:37 +0200 (CEST) Date: Tue, 21 Sep 2021 23:28:37 +0200 From: Pavel Machek To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Joakim Zhang , "Russell King (Oracle)" , "David S. Miller" , Sasha Levin Subject: Re: [PATCH 5.10 079/122] net: phylink: add suspend/resume support Message-ID: <20210921212837.GA29170@duo.ucw.cz> References: <20210920163915.757887582@linuxfoundation.org> <20210920163918.373775935@linuxfoundation.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="PNTmBPCT7hxwcZjr" Content-Disposition: inline In-Reply-To: <20210920163918.373775935@linuxfoundation.org> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --PNTmBPCT7hxwcZjr Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > Joakim Zhang reports that Wake-on-Lan with the stmmac ethernet driver bro= ke > when moving the incorrect handling of mac link state out of mac_config(). > This reason this breaks is because the stmmac's WoL is handled by the MAC > rather than the PHY, and phylink doesn't cater for that scenario. >=20 > This patch adds the necessary phylink code to handle suspend/resume events > according to whether the MAC still needs a valid link or not. This is the > barest minimum for this support. This adds functions that end up being unused in 5.10. AFAICT we do not need this in 5.10. Best regards, Pavel > +++ b/include/linux/phylink.h > @@ -446,6 +446,9 @@ void phylink_mac_change(struct phylink *, bool up); > void phylink_start(struct phylink *); > void phylink_stop(struct phylink *); > =20 > +void phylink_suspend(struct phylink *pl, bool mac_wol); > +void phylink_resume(struct phylink *pl); > + > void phylink_ethtool_get_wol(struct phylink *, struct ethtool_wolinfo *); > int phylink_ethtool_set_wol(struct phylink *, struct ethtool_wolinfo *); --=20 DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany --PNTmBPCT7hxwcZjr Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRPfPO7r0eAhk010v0w5/Bqldv68gUCYUpOhQAKCRAw5/Bqldv6 8locAJ9DhHBYbh7xMHQhEo+x6kC4HRvZhQCfdY/0GTWDdKSunFC/EFTxWKmc/uw= =c5Bh -----END PGP SIGNATURE----- --PNTmBPCT7hxwcZjr--