Article View: linux.kernel.netdev
Article #1547[PATCH net-next v19 05/13] ax88179_178a: Add EEE configuration support for AX88179A MACs
From: Birger Koblitz
Date: Sat, 10 Oct 2026 04:54
Date: Sat, 10 Oct 2026 04:54
47 lines
8560 bytes
8560 bytes
The AX88179A uses a simple HW configuration for EEE
via a single EEE configuration register without LPI timer support
Add support for setting this EEE enable/disable register in implementations
of mac_enable_tx_lpi/mac_disable_tx_lpi.
Signed-off-by: Birger Koblitz <mail@birger-koblitz.de>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
---
drivers/net/usb/ax88179a_devices.c | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/drivers/net/usb/ax88179a_devices.c b/drivers/net/usb/ax88179a_devices.c
index 1aa8479422517bff6758c884c5e47258c5d3ed3a..62619fd68c408f453e48c94020bce2254da9a1f9 100644
--- a/drivers/net/usb/ax88179a_devices.c
+++ b/drivers/net/usb/ax88179a_devices.c
@@ -395,10 +395,27 @@ static void ax88179a_mac_link_up(struct phylink_config *config,
AX_MAC_RX_PATH_READY | AX_MAC_TX_PATH_READY);
}
+static void ax88179a_mac_disable_tx_lpi(struct phylink_config *config)
+{
+ struct usbnet *dev = netdev_priv(to_net_dev(config->dev));
+
+ ax88179_write_cmd(dev, AX_GPHY_CTL, AX_GPHY_EEE_CTRL, false, 0, NULL);
+}
+
+static int ax88179a_mac_enable_tx_lpi(struct phylink_config *config, u32 timer, bool tx_clk_stop)
+{
+ struct usbnet *dev = netdev_priv(to_net_dev(config->dev));
+
+ /* AX88179A does not provide LPI timer registers */
+ return ax88179_write_cmd(dev, AX_GPHY_CTL, AX_GPHY_EEE_CTRL, true, 0, NULL);
+}
+
static const struct phylink_mac_ops ax88179a_phylink_mac_ops = {
.mac_config = ax88179a_mac_config,
.mac_link_down = ax88179a_mac_link_down,
.mac_link_up = ax88179a_mac_link_up,
+ .mac_disable_tx_lpi = ax88179a_mac_disable_tx_lpi,
+ .mac_enable_tx_lpi = ax88179a_mac_enable_tx_lpi,
};
static int ax88179a_phylink_setup(struct usbnet *dev)
--
2.47.3
Technical Details
Message-ID:
<20261010-ax88179a-v19-5-7475173cfb56@birger-koblitz.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-344038-linux-kernel-netdev=dewy.ruReferences:
<20261010-ax88179a-v19-0-7475173cfb56@birger-koblitz.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-344038-linux-kernel-netdev=dewy.ru From: mail@birger-koblitz.de (Birger Koblitz) Newsgroups: linux.kernel.netdev Subject: [PATCH net-next v19 05/13] ax88179_178a: Add EEE configuration support for AX88179A MACs Date: Sat, 10 Oct 2026 06:54:27 +0200 Organization: Usenet Network Message-ID: <20261010-ax88179a-v19-5-7475173cfb56@birger-koblitz.de> References: <20261010-ax88179a-v19-0-7475173cfb56@birger-koblitz.de> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Injection-Info: usenet.network; logging-data="1258743"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:RwaKaLOAofHNGf8DldrnX8M0suw= sha256:xYlABKUKSUdrhkQifxSy+NCkH4Nm2ac1sNBPX9DaEnI= sha1:q4LAIyS1pgmJYXlFLCiVDQQOMkM= sha256:B+Anw6Bzpk2Qx//GT8DtionahIkJ0CoaK6gaKq8slvE= 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 E47EA10F83C; Sat, 10 Oct 2026 07:56:50 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -0.85 X-Spam-Status: No, score=-0.85 tagged_above=-9999 required=6.31 tests=[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, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=birger-koblitz.de header.b=ASFMek9m; dkim=pass (2048-bit key) header.d=birger-koblitz.de header.b=UuJGWS/4 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 OcmxhbvK06WD; Sat, 10 Oct 2026 07:56:40 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-344038-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=birger-koblitz.de X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id 3871110F587; Sat, 10 Oct 2026 07:56:37 +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 B0A3E611E1; Sat, 10 Oct 2026 04:54:45 +0000 (UTC) X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 64958368D45; Sat, 10 Oct 2026 04:54:45 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=birger-koblitz.de header.i=@birger-koblitz.de header.b="ASFMek9m"; dkim=pass (2048-bit key) header.d=birger-koblitz.de header.i=@birger-koblitz.de header.b="UuJGWS/4" X-Received: from bkemail.birger-koblitz.de (bkemail.birger-koblitz.de [23.88.97.239]) (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 10ACA35C6B1; Sat, 10 Oct 2026 04:54:44 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=23.88.97.239 X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791608085; cv=none; b=h+yjLuBj9PS78djZtMmCwLLIKJ9BPSdW69ha4exbQAru8XX+X6HaRQSCZFYwlCv9QYcxXU7KJyabcX7cqmj09KwTijjS2UeNW59x7g0/88v85nQ/6sesgBUwxgyitFZZLIiftxtTq/KEzxshI9RgNhTTnr6Or8XEq5vWp8VgwDo= X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791608085; c=relaxed/simple; bh=t6c76qrcB5Xzyp5vYgM4qQyIE9cJhW/WseYa5dwzUCw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=QY+YXKeXrW5nW261VklsHxYau2qfnKR/QTjZ+OOzV4S++fXpcVSJ5BF/NpuyR74Bb7Lee+xGBBBz7cH/1GY3UI4z07SHFdqNGks/zpJyVh/FE9EBmmJIogmYMKIW5u1r76PIZvhqNrRNCJ0mpU93652y05R+7c+GMNYqv8dePWo= X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=birger-koblitz.de; spf=pass smtp.mailfrom=birger-koblitz.de; dkim=pass (2048-bit key) header.d=birger-koblitz.de header.i=@birger-koblitz.de header.b=ASFMek9m; dkim=pass (2048-bit key) header.d=birger-koblitz.de header.i=@birger-koblitz.de header.b=UuJGWS/4; arc=none smtp.client-ip=23.88.97.239 X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=birger-koblitz.de X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=birger-koblitz.de X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=birger-koblitz.de; s=default; t=1791608082; bh=t6c76qrcB5Xzyp5vYgM4qQyIE9cJhW/WseYa5dwzUCw=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=ASFMek9mktsLym/fKPM+vDps322sFief/j70Letsk2NrN0nRcHSwW9nuySuVmkDxm VYmN/WeG6VMqDAd9ssA8WS+ATt4RSQGxE4FOEPj8ZSsfGU6mxWlRMaUZYphp/psXVV D3lB/cMo7/9tZKXiGTOjZIT3ETA2RNvQlEIgukD5gBOKcGDdgKbkLhEBzu69omwm0K oZ3HyuBA2KaW94ox6ujKpICJK+cwzhKrPzS8/hSIP4ZmaL07JRTowe89x1X0LS0hPo 9sIA28R57532zqGbedwMmHZB258eRKLZ7hhfvvU8i2HEefjr3+Xijm8ksYvJeAd8S0 hRwGnNAHVDBKw== X-Received: by bkemail.birger-koblitz.de (Postfix, from userid 109) id 8D8E047582; Sat, 10 Oct 2026 04:54:42 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=birger-koblitz.de; s=default; t=1791608070; bh=t6c76qrcB5Xzyp5vYgM4qQyIE9cJhW/WseYa5dwzUCw=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=UuJGWS/4rRgHKIecrMo+lbNDJ4CLm2YxKn6rXof96Uh4bUPNdkyCpg8GGblOT2BlH XVhuNpEkllKM8DNKtWc4wnXpmYZpEV50j/TCMSm/2zVf7kJPtN1WHUsQ+qeu0OOJ6H HsiJSJ4hdXwk/IIq+3eyL9UgIaWcViPyZl+7WE3OFypIqzsyl5u1Ldufbc6v6xu/4Z LVuJM6XT2NYy0Dxef8bWHMakJjYl5k0qzq2Pr0mNrb7LzY2Qn2ZACvsfpXRexsUMMc X7iUJL8OGZpZ5SyiBH1syAuKI8XyscTYGqPaPpczQ/u78h+LYJWHcE7CunIowNa880 Lgf/bDistW/5Q== X-Received: from AMDDesktop.lan (unknown [IPv6:2a00:6020:47a3:e800:271c:c6c5:9fde:77cb]) by bkemail.birger-koblitz.de (Postfix) with ESMTPSA id 7585A4754C; Sat, 10 Oct 2026 04:54:30 +0000 (UTC) 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: <20261010-ax88179a-v19-0-7475173cfb56@birger-koblitz.de> X-Cc: linux-usb@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, loongarch@lists.linux.dev, Jianhui Xu <neuromoments@gmail.com>, Birger Koblitz <mail@birger-koblitz.de> X-Mailer: b4 0.14.2