Received: by 2002:a05:6520:4d:b0:139:a872:a4c9 with SMTP id i13csp3480499lkm; Tue, 21 Sep 2021 17:11:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxfcJs1JeaUNekjeSJiI/msq6otCWA34+1wauTJGot9RUoxZGvA2qYH97I40zhNQNZq0KRO X-Received: by 2002:aa7:c1d7:: with SMTP id d23mr38096492edp.228.1632269500111; Tue, 21 Sep 2021 17:11:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632269500; cv=none; d=google.com; s=arc-20160816; b=CRcINSIt9r5wEUoV8ndr64vJktOrq/GnlkOict6KG5wsMFwHSLamsoOGbfGbVv5+VM dPGyRpIlMlYtEOmsO261lF/cOiw2WgSWMR6MRSzImbFJxjVuCH4mcexwx97ldARN6I/f gHqMMQ+kaKYameVMzHiF/VgVSBZ56zZyW+sPfzot7YVNcCDGlNpR7UfhYFBTCiU8VtvV W9y4IkjxxisA7B2AuMiHjBP97gWTiUD9O6NPC1LvVQPYBIHS9o7miv9EdcksBOA2uxnX a5P17+NnZ+bCTZW6aWyS4j3O1kFOKpI/GDFuLjHahXdXCMERlH3AgxfCiOnr+ljjHtU+ jxIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=FU6MY8NmNybF1VNxHGRHG+itNOVLUqsfTUSxIQnDAr4=; b=j1DwkzYKavypBXmBBt/1rgTfGmFdiPo1GnfiZxH4eLPWgxzh6AxiPDSorOO5dizIYe nmXh2iVYnh9i897uvqZ7OR+pInIGEkJW/MY1ADt98PyymOBVDuqEjsyHrMuQ0srqRAcx YQmle6249XX7Jw14PcBdxZnHOpvdmgizy0KlHgVI4enimYrsVvS1oLNSGPodqsGXhV9+ Uy7czta/AMhZUaBdMVWYsFS3NM6zeGFlUYYWkL6nT22UaItRWW3pP6wA5BDnU6W9PniP v2uI4OtP+WGeg3bc+rTyO7CX3SbHsQiCUNaYsxnXXDvVghjOekQ5Mj0udUHzbwhfpdXu znKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=UwPAWmgF; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 13si671822ejg.193.2021.09.21.17.10.46; Tue, 21 Sep 2021 17:11:40 -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; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=UwPAWmgF; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235846AbhIUWE0 (ORCPT + 99 others); Tue, 21 Sep 2021 18:04:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57430 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234138AbhIUWEZ (ORCPT ); Tue, 21 Sep 2021 18:04:25 -0400 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [IPv6:2001:4d48:ad52:32c8:5054:ff:fe00:142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5AEAEC061574; Tue, 21 Sep 2021 15:02:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=FU6MY8NmNybF1VNxHGRHG+itNOVLUqsfTUSxIQnDAr4=; b=UwPAWmgFstTetbHhj4I61Tc2DJ YDFbU4oW+MDi34a7Nt5wKwhbJQHFMCpFXx2V808JPTjLmNsp962/CeQ1oVxJMGlPjXLNwmmZDx4bx 9mLPMdXqUswgRC2BMNJg+hTOnMs7j6/WxBftgGHyHdzIbmbL/k7xw4s4vgMuQ8Z7i6W1B8xHRKoJU Br8+JBsKiuAq7+Y3j7GQxRFRjzHF97PIhWcLMpLmqqCCzdHGh9GqAAUsCMaJrCLuMttp01iV4rOGs LhIzz09XH0JW3FnJsqncaxeSOr8EaIocyWXiM2kFLp9MrYcS+XtQrk76ap4wLKBQWIPmpdYtUH3u7 x69taE0g==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:54722) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1mSnqn-00038s-UG; Tue, 21 Sep 2021 23:02:53 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1mSnqm-0003eY-RF; Tue, 21 Sep 2021 23:02:52 +0100 Date: Tue, 21 Sep 2021 23:02:52 +0100 From: "Russell King (Oracle)" To: Pavel Machek Cc: Greg Kroah-Hartman , linux-kernel@vger.kernel.org, stable@vger.kernel.org, Joakim Zhang , "David S. Miller" , Sasha Levin Subject: Re: [PATCH 5.10 079/122] net: phylink: add suspend/resume support Message-ID: References: <20210920163915.757887582@linuxfoundation.org> <20210920163918.373775935@linuxfoundation.org> <20210921212837.GA29170@duo.ucw.cz> <20210921214528.GA30221@duo.ucw.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210921214528.GA30221@duo.ucw.cz> Sender: Russell King (Oracle) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 21, 2021 at 11:45:28PM +0200, Pavel Machek wrote: > Hi! > > > > > Joakim Zhang reports that Wake-on-Lan with the stmmac ethernet driver broke > > > > 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. > > > > > > > > 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. > > > > It needs to be backported to any kernel that also has > > "net: stmmac: fix MAC not working when system resume back with WoL active" > > backported to. From what I can tell, the fixes line in that commit > > refers to a commit (46f69ded988d) in v5.7-rc1. > > > > If "net: stmmac: fix MAC not working when system resume back with WoL > > active" is not being backported to 5.10, then there is no need to > > backport this patch. > > Agreed. > > > As I'm not being copied on the stmmac commit, I've no idea which kernels > > this patch should be backported to. > > AFAICT "net: stmmac: fix MAC not working when..." is not queued for > 5.10.68-rc1 or 5.14.7-rc1. Okay, this is madness. What is going on with stable's patch selection? The logic seems completely reversed. "net: phylink: Update SFP selected interface on advertising changes" does not have a Fixes tag, and is not a fix in itself, yet has been picked up by the stable team. It lays the necessary work for its counter-part patch, which is... "net: stmmac: fix system hang caused by eee_ctrl_timer during suspend/resume" _has_ a Fixes tag, but has *not* been picked up by the stable team. It seems there's something very wrong process-wise here. Why would a patch _without_ a Fixes line and isn't a fix in itself be picked out for stable backport when patches with a Fixes line are ignored? Not unless the stable plan is to apply "net: phylink: Update SFP selected interface on advertising changes" and then sometime later apply "net: stmmac: fix system hang caused by eee_ctrl_timer during suspend/resume". No idea. It all seems very weird and the process seems broken to me. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!