Article View: linux.kernel.netdev
Article #2570Re: [PATCH net v2] net: phylink: allow stopping a suspended instance
From: Andrew Lunn
Date: Tue, 13 Oct 2026 01:22
Date: Tue, 13 Oct 2026 01:22
19 lines
6680 bytes
6680 bytes
On Mon, Oct 05, 2026 at 01:09:05PM -0600, James Hilliard wrote:
> After a failed MAC resume, a driver must be able to stop phylink without
> resuming it and reconfiguring the failed MAC. This is needed when recovery
> leaves the interface administratively up but detached until a subsequent
> down/up: ndo_stop() must finish the suspended phylink lifetime even though
> the MAC could not be restored. The missing transition was identified by
> code inspection of the stmmac recovery paths.
I don't particularly like this. It feels like a workaround for a
broken MAC. It would be better to fix the MAC so that resume does not
fail.
As far as i know, this it theoretical, only triggered by fault
injection. If we find a real error situation where the MAC cannot be
resumed, then i will consider it. But until then, i prefer to reject
this patch.
Andrew
Technical Details
Message-ID:
<224296ea-f196-44f3-91d6-1461846c55a5@lunn.ch>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-345309-linux-kernel-netdev=dewy.ruReferences:
<20261005-submit-phylink-suspended-stop-v1-v2-1-8b8e5d53dfc2@gmail.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-345309-linux-kernel-netdev=dewy.ru From: andrew@lunn.ch (Andrew Lunn) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net v2] net: phylink: allow stopping a suspended instance Date: Tue, 13 Oct 2026 03:22:12 +0200 Organization: Usenet Network Message-ID: <224296ea-f196-44f3-91d6-1461846c55a5@lunn.ch> References: <20261005-submit-phylink-suspended-stop-v1-v2-1-8b8e5d53dfc2@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: usenet.network; logging-data="1929524"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:3H0OQjgFXRb+AdW+xwfm4O81VW8= sha256:RAUU2zsYU2XNbrqgYWyrHsWqSwYOVLD5ffRY8AzfXGE= sha1:UYIXon/bzDzNcnplfJ2zK6tt2Xg= sha256:spCgUPfsw1xw2IgkbNkpPzS+mmSlPjWo4jKcbUUYmuA= Content-Disposition: inline List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id B34D210FD2C; Tue, 13 Oct 2026 04:22:44 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -0.751 X-Spam-Status: No, score=-0.751 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (1024-bit key) header.d=lunn.ch X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Ndd-UyUjl-yD; Tue, 13 Oct 2026 04:22:41 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-345309-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=lunn.ch X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id B19D210CD21; Tue, 13 Oct 2026 04:22:31 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by sea.lore.kernel.org (Postfix) with ESMTP id 26F812974F; Tue, 13 Oct 2026 01:22:28 +0000 (UTC) X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 795473F1ADD; Tue, 13 Oct 2026 01:22:26 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="5p742SHy" X-Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 75C283F210A; Tue, 13 Oct 2026 01:22:23 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=156.67.10.101 X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791854546; cv=none; b=KOb9vYsM6msDjXha/3fsogBik5Pa6TYHsXoUPKTR35lfObFWcsJJH5B9H8Vy68f7meIcT7l1FdyBfjTS482Tzkdv/cPgVoM2sIKFID6lpfo4fq03QwUhblDnZaqzkGz/47sHGHlQjUgEgwYGwlFqxBiCsoWnx9eM+Ku4FsplD1Y= X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791854546; c=relaxed/simple; bh=kGYlQpa4tjkITLOnIv2MXqhyGAW8UQJDUESSyoVto14=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=KYJeFAdnhw5P+64RtttD80RPM26RMaxt50HDMZJ05FWJe7pOo6IKFq1JfrkIYE9XwFqMw73OdVlpfv09i2jKW6+x567xR3/IsYeatRZBHR6Q3CVUpq8VjaGDAKy0Bj+Bg38SIO8FZL6kLMOOF+iyGyYGZ6dOBS08xclb6zj2R3w= X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b=5p742SHy; arc=none smtp.client-ip=156.67.10.101 X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch X-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=OnAdMZP1SxFnwaARkjMiMJ27pHDglXB3OQiHuWQfYVI=; b=5p742SHycC4ZVjFPBRgwYwUMO/ /g2OQlF2qi4Q4HrGjOpZ1Sr0wvUevY0Cgoew0PO0izOPkC/JnhUOmePd4I2/JksbmIDiCE7/vg+bG PHw/6pGejKGCHrMlHMkVEmoraK6qf8eaLlch9Fy+LE32lJqmfAy5D2bOuZnlfdtrAbVk=; X-Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from <andrew@lunn.ch>) id 1xGRDY-00AQ5M-9K; Tue, 13 Oct 2026 03:22:12 +0200 X-Cc: netdev@vger.kernel.org, Russell King <linux@armlinux.org.uk>, Heiner Kallweit <hkallweit1@gmail.com>, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@kernel.org>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, "Russell King (Oracle)" <rmk+kernel@armlinux.org.uk>, linux-kernel@vger.kernel.org X-Precedence: bulk X-Mailing-List: netdev@vger.kernel.org X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-In-Reply-To: <20261005-submit-phylink-suspended-stop-v1-v2-1-8b8e5d53dfc2@gmail.com>