Article View: linux.kernel.netdev
Article #1548[PATCH net-next v19 06/13] ax88179_178a: Add EEE configuration support for AX88179A PHYs
From: Birger Koblitz
Date: Sat, 10 Oct 2026 04:54
Date: Sat, 10 Oct 2026 04:54
59 lines
9061 bytes
9061 bytes
Configure phylink to work with the PHYs in the AX88179A controllers
and provide ethtool get/set eee operations calling into phylink.
Signed-off-by: Birger Koblitz <mail@birger-koblitz.de>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Nicolai Buchwitz <nb@tipi-net.de>
---
drivers/net/usb/ax88179a_devices.c | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/drivers/net/usb/ax88179a_devices.c b/drivers/net/usb/ax88179a_devices.c
index 62619fd68c408f453e48c94020bce2254da9a1f9..272e92365683247b42a5fd25013c728a9c1af711 100644
--- a/drivers/net/usb/ax88179a_devices.c
+++ b/drivers/net/usb/ax88179a_devices.c
@@ -225,6 +225,20 @@ static int ax88179a_get_eeprom_len(struct net_device *net)
return AX88179A_EEPROM_LEN;
}
+static int ax88179a_get_eee(struct net_device *net, struct ethtool_keee *edata)
+{
+ struct ax88179_data *ax179_data = netdev2data(net);
+
+ return phylink_ethtool_get_eee(ax179_data->phylink, edata);
+}
+
+static int ax88179a_set_eee(struct net_device *net, struct ethtool_keee *edata)
+{
+ struct ax88179_data *ax179_data = netdev2data(net);
+
+ return phylink_ethtool_set_eee(ax179_data->phylink, edata);
+}
+
static const struct ethtool_ops ax88179a_ethtool_ops = {
.get_link = ethtool_op_get_link,
.get_msglevel = usbnet_get_msglevel,
@@ -234,6 +248,8 @@ static const struct ethtool_ops ax88179a_ethtool_ops = {
.get_eeprom_len = ax88179a_get_eeprom_len,
.get_eeprom = ax88179_get_eeprom,
.set_eeprom = ax88179_set_eeprom,
+ .get_eee = ax88179a_get_eee,
+ .set_eee = ax88179a_set_eee,
.nway_reset = phy_ethtool_nway_reset,
.get_link_ksettings = ax88179a_get_link_ksettings,
.set_link_ksettings = ax88179a_set_link_ksettings,
@@ -451,6 +467,10 @@ static int ax88179a_phylink_setup(struct usbnet *dev)
phy_if_mode = PHY_INTERFACE_MODE_SGMII;
}
+ memcpy(data->phylink_config.lpi_interfaces,
+ data->phylink_config.supported_interfaces,
+ sizeof(data->phylink_config.lpi_interfaces));
+
phylink = phylink_create(&data->phylink_config, dev->net->dev.fwnode,
phy_if_mode, &ax88179a_phylink_mac_ops);
if (IS_ERR(phylink))
--
2.47.3
Technical Details
Message-ID:
<20261010-ax88179a-v19-6-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-344039-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-344039-linux-kernel-netdev=dewy.ru From: mail@birger-koblitz.de (Birger Koblitz) Newsgroups: linux.kernel.netdev Subject: [PATCH net-next v19 06/13] ax88179_178a: Add EEE configuration support for AX88179A PHYs Date: Sat, 10 Oct 2026 06:54:28 +0200 Organization: Usenet Network Message-ID: <20261010-ax88179a-v19-6-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="1258826"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:rZeQ8/W/JldlcOTLbfSigVycZUs= sha256:7OEXUVCY6P1rAT4e+N682AVt3ftjIrPEh4n039AHkT8= sha1:X7DsZpXGUR8BYwLil1SCKMh7J6Y= sha256:asOALUgS0Vcr5f+JGM+RhJ3r0V49ZyvrftJtf6VFmmE= 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 190A910F262; Sat, 10 Oct 2026 07:57:09 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.15 X-Spam-Status: No, score=-3.15 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, 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=birger-koblitz.de header.b=dL0N/hDs; dkim=pass (2048-bit key) header.d=birger-koblitz.de header.b=GihmRuvz 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 SXdRHHzrRjZt; Sat, 10 Oct 2026 07:56:58 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-344039-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 446C610F587; Sat, 10 Oct 2026 07:56:55 +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 7187561954; Sat, 10 Oct 2026 04:54:47 +0000 (UTC) X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D2C693603D8; 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="dL0N/hDs"; dkim=pass (2048-bit key) header.d=birger-koblitz.de header.i=@birger-koblitz.de header.b="GihmRuvz" 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 591503644C5; 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=nHDq8Zte2LeFvxiZK6iOTozUQjR2AGWo18R4dJFpVwVpYtMfJ00ZSZmSvSE1RtooWi0GLtziozFFb4JlOJDHh4h07gVmJTrJAEiUyebc32zDIEPFPQrQAFvDPv0FpQ12+cfuzkC2euPschCuFHE56a9mnWEKJXl4l8D5of+DvI4= X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791608085; c=relaxed/simple; bh=cg39L093dm5ZgWsTfiATniGIm12jPVEs5/MdqNtJY2Q=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=t7mXvb0cEc3ZsyCo0JL9wnnxGtHAt7J4tDvt6j+AG0v7xloo69PSotNH2pIBKBBiUaZgH+1vfMRIH9qYSJYinJB4u7qcsgVMuagcOH3bKA9Q3xcPAOucvY3Tyx0s4YLJLBmyhcXW+m5anNuQ/0XiqFFE1LioAa42qzjcrUyh4yg= 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=dL0N/hDs; dkim=pass (2048-bit key) header.d=birger-koblitz.de header.i=@birger-koblitz.de header.b=GihmRuvz; 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=cg39L093dm5ZgWsTfiATniGIm12jPVEs5/MdqNtJY2Q=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=dL0N/hDsw7HarLA55SegoY6NJVSiZv+CWfRPGy0MlySc0nc7jUxI4N89BI5FmkCzD hWDYvtElstUGcGF6U5RYXXyazyTBRhHMATBSLKStrPqavhbtvqBwgPCJL+tmWCojNg Y3fAaeYttdhHjyqDw6YFC63TRbTOJ241vnELvpBBQYA/IflIz640q/AQc/7dJTpeKC RsSUv2aSUzctdxFgpkf8c8iPA6qClwbO/YNoWrBy7IdctdS9zoZJr3z4j2FeoelrzZ dVyFkWbxDkt/oIZiL3ht9f2/+U6yaTh0S4tQaRI2/wrQufBvQq3a2vTVRUdVSQjJyE UG98aNAwup4cg== X-Received: by bkemail.birger-koblitz.de (Postfix, from userid 109) id D5D0E475CD; 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=1791608071; bh=cg39L093dm5ZgWsTfiATniGIm12jPVEs5/MdqNtJY2Q=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=GihmRuvzZfmXQjZ0QI1WMRiGm68IqGQUzanSxShdp3ikCj4K9MGi9qLUB5ybOH6iH 2AZIBd/ddemLvFP5M2Rtu9KrB5FNQH2dGgt+DsBFmiu4y7mFTS+azyofm3xsdUOSXX wIBXrJikLKNSfmC11myeN4fIpNWRa/9bUkbHcsCn62xaS3oF/uvFX7LdM7YH/2W8Wt AdZQ0x46bF0HUPPC6XjGhb0lSUZCdVFoRYXOTA+wszIfpqhOsfg+9jFTuLr34hm5h3 SxpHIfk4XnihVyxTQC44s41PA32K2/7lGcwnwunDaORCZ25ItPjizDw8FRE/3suKxF cs2DqQmJjBbOQ== X-Received: from AMDDesktop.lan (unknown [IPv6:2a00:6020:47a3:e800:271c:c6c5:9fde:77cb]) by bkemail.birger-koblitz.de (Postfix) with ESMTPSA id E687347541; 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>, Nicolai Buchwitz <nb@tipi-net.de> X-Mailer: b4 0.14.2