From mboxrd@z Thu Jan 1 00:00:00 1970 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 6B71D34DB59; Mon, 23 Feb 2026 08:55:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=194.13.80.246 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771836928; cv=none; b=X76zZgMnLcdmzuXdmQ8FveUZFp2Z7q0x+SLHVvSoPp3eQcnlPuZoPuxKXAbpq4hw88aDiJxq8vPBXUR2d8R6oCcFGbtrIPtbOKkHbiAIuqj6tJCj2Sfqt7u+ZLnVWlV/qBOoZX/Owf1Gctugi4cRTMvZELlZa+2O+s2ObFJXl9w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771836928; c=relaxed/simple; bh=ZzEDcJRcTp7f+irbi5h36BguC6lX6oTQyXuhoXgjY+w=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=gU6nBbI80T7o2Km2RhkPPpclg2R8wfqKmiIwW3krv9nt1GkcSjxfC+2G+OM2ZKlzj/BwRjE82aDviHI2Tc66UlPBAJJ0k3KAZmG2c897v+jCtBd5P4hM9f6vVFNjGgh54E2T2dSx/3L/P2uh/JKv2R3TdZzvFQsEkm5cpqE70p8= 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=Wl/algA3; arc=none smtp.client-ip=194.13.80.246 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=tipi-net.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=tipi-net.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tipi-net.de header.i=@tipi-net.de header.b="Wl/algA3" Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id BB49FA02E5; Mon, 23 Feb 2026 09:55:12 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tipi-net.de; s=dkim; t=1771836916; h=from:subject:date:message-id:to:cc:mime-version: content-transfer-encoding; bh=pCJoFEal8tJ3i46WcikENP1f/excTslKdDBJyw5ZBpo=; b=Wl/algA3DmZsyYgxW9Fk/S1gZda8/tDarXqxtrwIlJNKNWR8eYCswubEgYSuUL4j48RCpC bMihuOjQvrFFMPK//qOiFyOb/P9mvR0Va5w1Vx1iuPpFjjnXeQ/tYqV8yp45vnJmNKDEMv /4ylYlKBexeeEJEhgC2JlWXwcue5idj5O7vc9B7Vwn/UQT5I37Rvie6ugUzxExmrWfZfwO WuOcL7aXRUjbLj6idsR1nEShHge5ogiMXHp6DztDTZghymrHDoxC3Bltv9MH8GJZaYGdo/ W2Ouu5IDg8zm5aETQCK0HhTB6QUWokjNiUJS1zrmuzrDfYl3hdNNkMvwumO79A== From: Nicolai Buchwitz To: netdev@vger.kernel.org Cc: Nicolai Buchwitz , Russel King , Bryan Whitehead , UNGLinuxDriver@microchip.com, Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Russell King , linux-kernel@vger.kernel.org Subject: [PATCH net-next] net: microchip: lan743x: add ethtool nway_reset support Date: Mon, 23 Feb 2026 09:54:42 +0100 Message-Id: <20260223085442.42852-1-nb@tipi-net.de> X-Mailer: git-send-email 2.39.5 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Last-TLS-Session-Version: TLSv1.3 Wire phylink_ethtool_nway_reset() as the .nway_reset ethtool operation, allowing userspace to restart PHY autonegotiation via 'ethtool -r'. Signed-off-by: Nicolai Buchwitz Reviewed-by: Russel King (Oracle) --- drivers/net/ethernet/microchip/lan743x_ethtool.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/net/ethernet/microchip/lan743x_ethtool.c b/drivers/net/ethernet/microchip/lan743x_ethtool.c index 8a3c1ecc7866..9195419ecee0 100644 --- a/drivers/net/ethernet/microchip/lan743x_ethtool.c +++ b/drivers/net/ethernet/microchip/lan743x_ethtool.c @@ -1079,6 +1079,13 @@ static int lan743x_ethtool_set_eee(struct net_device *netdev, return phylink_ethtool_set_eee(adapter->phylink, eee); } +static int lan743x_ethtool_nway_reset(struct net_device *netdev) +{ + struct lan743x_adapter *adapter = netdev_priv(netdev); + + return phylink_ethtool_nway_reset(adapter->phylink); +} + static int lan743x_ethtool_set_link_ksettings(struct net_device *netdev, const struct ethtool_link_ksettings *cmd) @@ -1369,6 +1376,7 @@ const struct ethtool_ops lan743x_ethtool_ops = { .set_rxfh = lan743x_ethtool_set_rxfh, .get_rxfh_fields = lan743x_ethtool_get_rxfh_fields, .get_ts_info = lan743x_ethtool_get_ts_info, + .nway_reset = lan743x_ethtool_nway_reset, .get_eee = lan743x_ethtool_get_eee, .set_eee = lan743x_ethtool_set_eee, .get_link_ksettings = lan743x_ethtool_get_link_ksettings, -- 2.39.5