Article View: linux.kernel.netdev
Article #4309[PATCH net 1/4] net: bcmgenet: stop the PHY when a WoL resume rebuilds the datapath
From: Nicolai Buchwitz
Date: Sat, 17 Oct 2026 11:59
Date: Sat, 17 Oct 2026 11:59
32 lines
6960 bytes
6960 bytes
A WoL suspend leaves the PHY running. If the resume then finds the MAC
was reset it tears the rest down and rebuilds, which ends in phy_start().
That warns and does nothing unless the PHY is PHY_READY or PHY_HALTED.
Stop the PHY with the rest of the teardown, but only while it is still
running. A rebuild that failed can have stopped it already, and
phy_stop() warns about that too.
Fixes: 254f3239dd07 ("net: bcmgenet: revise suspend/resume")
Signed-off-by: Nicolai Buchwitz <nb@tipi-net.de>
---
drivers/net/ethernet/broadcom/genet/bcmgenet.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/net/ethernet/broadcom/genet/bcmgenet.c b/drivers/net/ethernet/broadcom/genet/bcmgenet.c
index e8908916558b1..308716cddc077 100644
--- a/drivers/net/ethernet/broadcom/genet/bcmgenet.c
+++ b/drivers/net/ethernet/broadcom/genet/bcmgenet.c
@@ -4288,6 +4288,9 @@ static int bcmgenet_resume(struct device *d)
bcmgenet_rdma_disable(priv);
bcmgenet_intr_disable(priv);
bcmgenet_fini_dma(priv);
+ /* An earlier rebuild of this datapath may have stopped it */
+ if (phy_is_started(dev->phydev))
+ phy_stop(dev->phydev);
enable_irq(priv->irq1);
}
--
2.53.0
Technical Details
Message-ID:
<20261017-nb-genet-fini-dma-net-v1-1-47e7c57f6834@tipi-net.de>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-347732-linux-kernel-netdev=dewy.ruReferences:
<20261017-nb-genet-fini-dma-net-v1-0-47e7c57f6834@tipi-net.de>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-347732-linux-kernel-netdev=dewy.ru From: nb@tipi-net.de (Nicolai Buchwitz) Newsgroups: linux.kernel.netdev Subject: [PATCH net 1/4] net: bcmgenet: stop the PHY when a WoL resume rebuilds the datapath Date: Sat, 17 Oct 2026 13:59:25 +0200 Organization: Usenet Network Message-ID: <20261017-nb-genet-fini-dma-net-v1-1-47e7c57f6834@tipi-net.de> References: <20261017-nb-genet-fini-dma-net-v1-0-47e7c57f6834@tipi-net.de> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Injection-Info: usenet.network; logging-data="3034104"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:jOYdtFi3fGJOGkR38WbNcshUZlQ= sha256:9yq6qUmh9SKtC7HKgnCIRFSh6qg8oBvKDvd/CLRcUYQ= sha1:bCoJflDzJG4kvRN42LNANieqwIE= sha256:kCNC0iUfxDRsbeLR93mFkyuxSwCEFIUryneQ+2+hD0M= 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 61F681106D4; Sat, 17 Oct 2026 14:59:57 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.049 X-Spam-Status: No, score=-3.049 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.25, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=tipi-net.de 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 OyxIiNQ5ACS8; Sat, 17 Oct 2026 14:59:51 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-347732-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=tipi-net.de X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114]) by mail.dewy.ru (Postfix) with ESMTPS id 79C881106B3; Sat, 17 Oct 2026 14:59:42 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by tor.lore.kernel.org (Postfix) with ESMTP id E1C4F34604; Sat, 17 Oct 2026 11:59:40 +0000 (UTC) X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2DBD5488229; Sat, 17 Oct 2026 11:59:40 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tipi-net.de header.i=@tipi-net.de header.b="yRVtlU8R" X-Received: from mail.tipi-net.de (mail.tipi-net.de [194.13.80.246]) (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 9D3883B4E8C; Sat, 17 Oct 2026 11:59:36 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=194.13.80.246 X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792238380; cv=none; b=XNK8MlICOcUWbEdbjGd1DFCc3KnBoaTlawmndKe+ZDRrkMKDHGTxoHs3Pe1VhKe/S0rNKGqOXE9XoZDCNTfp6bI6NT7ov8ijLyHAOYfE5iB0T0vxZPG82GochKc1T7FpMYaMwDkMrMpMslTQBEwTiwb4VS17zPJU7Xz4pcO0vLc= X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792238380; c=relaxed/simple; bh=CtsMB7FWCtidKPIcmtxMdzGpu62AoNs2Ar4YSgY7vm8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=gBPo0MzPeFUmHsLgQPtUejXD7Cx58V1CZ6EvNbYXp+Aq8O+12F6pk29EE0/4P/LnSMTDJyh0SUe5+ZIyFGPyHzJhxtwY8SGjwC8pYfQMTh/2eE4OMx2K03VpX05XxF6gMcDamO4eRj7oxCRqZiBCPJN5tuFHyGCdb8CKrSBGXGc= X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=tipi-net.de; spf=pass smtp.mailfrom=tipi-net.de; dkim=pass (2048-bit key) header.d=tipi-net.de header.i=@tipi-net.de header.b=yRVtlU8R; arc=none smtp.client-ip=194.13.80.246 X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=tipi-net.de X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=tipi-net.de X-Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 1BCB4A1579; Sat, 17 Oct 2026 13:59:34 +0200 (CEST) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tipi-net.de; s=dkim; t=1792238374; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=b6sFBxn4QFnrimYWFzdabU/AP8VL+VKqrieNhJhjvwY=; b=yRVtlU8R8nNr7amiu3JCMUoFX6309/PlRKhlAgKv5aD0fWUdDtclHlaMdMwIGuc+AcoQBL +NVeZ0uax3IHW1DcZXP/QIs5bk7N7v3VONCAFHOU0NgbNTUGHlw5qDsiHZDG4XRbe3kaWe ai/7upPYLJoZoNWUtoCL+QWUBDDTE7Uegt8BHOqshMj4uBsgNg/fpfRrMQ0z8/dI61mvxm 1g8shibapLwhEf0n7HY3KweGiuj5MbnuX+4Ps1qZ6mWLoGPsOigiNt+k18BhIHu/qpXqrM 2OUk0QphlF5H2UIHAYn9QvHg0mfEEG75ImPIw4DgicSADcJVCUYVOg0Ci1BB2g== 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: <20261017-nb-genet-fini-dma-net-v1-0-47e7c57f6834@tipi-net.de> X-Cc: Florian Fainelli <f.fainelli@gmail.com>, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Nicolai Buchwitz <nb@tipi-net.de> X-Mailer: b4 0.16.0 X-Last-TLS-Session-Version: TLSv1.3