Article View: linux.kernel.netdev
Article #13548Re: [PATCH net-next v20 05/13] ax88179_178a: Add EEE configuration support for AX88179A MACs
From: netdev-bot+sashiko
Date: Tue, 10 Nov 2026 01:38
Date: Tue, 10 Nov 2026 01:38
101 lines
11952 bytes
11952 bytes
Thank you for your contribution! Sashiko AI review found more severe
issue(s) in other patches of this series. This mail is only an FYI, in case
you want to address the nit picks below when you respin.
Low priority / nit picks for your consideration:
- [Low] Baseline decision: false positive, because the next patch in the
series fixes it.
- [Low] Baseline decision: false positive, because the next patch in the
series fixes it.
--
ax88179_178a: Add EEE configuration support for AX88179A MACs
This commit adds mac_enable_tx_lpi and mac_disable_tx_lpi phylink callbacks
for the AX88179A. They toggle the single AX_GPHY_EEE_CTRL register through
ax88179_write_cmd(). The hardware has no LPI timer registers.
> diff --git a/drivers/net/usb/ax88179a_devices.c b/drivers/net/usb/ax88179a_devices.c
> index 1aa8479422517..62619fd68c408 100644
> --- a/drivers/net/usb/ax88179a_devices.c
> +++ b/drivers/net/usb/ax88179a_devices.c
[ ... ]
> 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,
> };
[Severity: Low]
With both LPI ops present, phylink_create() sets pl->mac_supports_eee_ops
to true. At this commit, ax88179a_phylink_setup() sets lpi_capabilities but
does not fill phylink_config.lpi_interfaces:
if (!data->is_ax88772d) {
data->phylink_config.lpi_capabilities = MAC_100FD | MAC_1000FD;
data->phylink_config.eee_enabled_default = false;
}
phylink_create() requires a non-empty lpi_interfaces:
pl->mac_supports_eee = pl->mac_supports_eee_ops &&
pl->config->lpi_capabilities &&
!phy_interface_empty(pl->config->lpi_interfaces);
So mac_supports_eee comes out false. Does phylink_bringup_phy() then take
this branch for every AX88179A/AX88279 device?
} else if (pl->mac_supports_eee_ops) {
/* MAC supports phylink EEE, but wants EEE always disabled. */
phy_disable_eee(phy);
ax88179a_mac_enable_tx_lpi() also looks unreachable here.
phylink_link_up() does not call phylink_activate_lpi() when
mac_supports_eee is false, and phylink_activate_lpi() returns early in any
case:
if (!test_bit(pl->cur_interface, pl->config->lpi_interfaces)) {
phylink_ethtool_get_eee() and phylink_ethtool_set_eee() would return
-EOPNOTSUPP in this state as well.
The next patch in the series, "ax88179_178a: Add EEE configuration support
for AX88179A PHYs", copies supported_interfaces into lpi_interfaces before
phylink_create(), so this gap only exists at this one commit. The default
behaviour seen by users is unchanged, because the driver already defaults
to EEE off with eee_enabled_default = false.
Would it make sense to fill lpi_interfaces in this patch, so the new
callbacks can be reached at this commit?
[Severity: Low]
At this commit ax88179a_ethtool_ops has no .get_eee or .set_eee entries:
static const struct ethtool_ops ax88179a_ethtool_ops = {
...
.set_eeprom = ax88179_set_eeprom,
.nway_reset = phy_ethtool_nway_reset,
...
};
So ethtool --set-eee on an AX88179A returns -EOPNOTSUPP. Userspace has no
way to enable EEE through the new mac_enable_tx_lpi/mac_disable_tx_lpi
callbacks. EEE stays off, which matches eee_enabled_default = false.
The next patch, "ax88179_178a: Add EEE configuration support for AX88179A
PHYs", adds ax88179a_get_eee() and ax88179a_set_eee(). These wrap
phylink_ethtool_get_eee() and phylink_ethtool_set_eee() and are wired into
ax88179a_ethtool_ops.
Is splitting the MAC side and the ethtool side across these two patches
intended?
--
Sashiko AI review ยท https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261106-ax88179a-v20-0-37b5a1189983%40birger-koblitz.de
Technical Details
Message-ID:
<179427471400.994134.4547536241742867057@kernel.org>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-359748-linux-kernel-netdev=dewy.ruReferences:
<20261106-ax88179a-v20-5-37b5a1189983@birger-koblitz.de>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-359748-linux-kernel-netdev=dewy.ru From: netdev-bot+sashiko@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next v20 05/13] ax88179_178a: Add EEE configuration support for AX88179A MACs Date: Tue, 10 Nov 2026 01:38:34 +0000 Organization: Usenet Network Message-ID: <179427471400.994134.4547536241742867057@kernel.org> References: <20261106-ax88179a-v20-5-37b5a1189983@birger-koblitz.de> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="495830"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:iClk6JDvLXOOky9C5KxXK19eIb0= sha256:7XMHCAQinSuwOeuIN06ZeOg3EG2ZzqWnzXRnOsw386E= sha1:OGqPfftbuL+8hS9ms2y1ekcKqzs= sha256:kpuZt0wz1QgD1LTHjnzDrRiMqOKiomUJ0abaqzPP1mg= 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 4D1CA1139CF; Tue, 10 Nov 2026 04:47:21 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -2.4 X-Spam-Status: No, score=-2.4 tagged_above=-9999 required=6.31 tests=[DCC_CHECK=1.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, 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=kernel.org 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 tOI3vEdoL6kM; Tue, 10 Nov 2026 04:47:17 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-359748-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org X-Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74]) by mail.dewy.ru (Postfix) with ESMTPS id 8DCBB113925; Tue, 10 Nov 2026 04:47:09 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sto.lore.kernel.org (Postfix) with ESMTP id 2CD85643946; Tue, 10 Nov 2026 01:40:16 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1794274721; b=EqPYbXaS3iAoiw1s+pEDKydrGcjtDythxZWImC1LwHAriYr8qha2PzMcKaNtTNgTXL57 qVDnGWtQlluxoRC8dw4F3XMxsAcjyrSFcusrX0J/xBjN2OGyHAJfyL5nF8oi4ATBLQiH5 UnPHZAMi5OjiJITVbRLyida1D+6CAC98cK9R64ZHYne8/2JZKusZ3H4NaWWf6o4F3OpMt /Z5EOOvd9hHRgJ0cCEP93mquUn8IDB0wNPLBBfsyAHpe12UvBBZI3SpmmfTNhYEzR5Mru loVCsFE5Zph7PJj3qQe9j8VrUd5YSGYr/X7Zu0PiP2X5h/2aAU3+6mZlQuokfd3mC8A== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794274721; h=X-Original-To:Received:Received:DKIM-Signature:Subject:From:To:Cc: Date:Message-ID:In-Reply-To:References:X-sashiko-severity: Content-Type:Content-Transfer-Encoding:X-Mailing-List:List-Id: List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner: Precedence:MIME-Version; bh=0bYZ/zOlq+OiPPFtzwsws4ROrxwK9LWmpXGJUjz7tLE=; b=2zsBE8TFE3bPeU+SjehY1PuJGn1ICNH7lAiUPfY5TcdzDnpR2ba3IkXBZsiGdQ/N+gg0 QO5PzlcVpAX2vr5kJidC856FeywhU0ZBAb6PPFCvrCelonYdeb/2IT/rWt1UhcSQCHLqi RRRIaeJ64Gj2bALBTnf3FzrlVHbd2eSIstlCGab6eo19xlq8q9QC1o7wOvY4sshf+JXTU 3PFklTaSP/n5G1kKbKMJnElftVrIu1J83bEKdl92JBqTTmhLFXchkkzoHZh1CrvKJKELw hS0Am50N6R/JIDPQ+ZEWTSopY8h72DwJwD2XBKo6cuvWeCeXSjL64PENvpkjXbzjgrA== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Hmk3FgkE; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id ACCB860718AD; Tue, 10 Nov 2026 01:38:41 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Hmk3FgkE X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794274715; b=g0vDgNKau8lP2l/BFOpSI+eyeZuDXn7T5zu8IVD6rf9hYGTbR2haNzbS5K1rNSuVbLpY peum1Pwg2yCxItc5RUiAFQSoGzGOM+iMOUw/ZTwFJj58gvGw1jnBOPszX6pmI770suXwl 4QwG7y5HuSosvJJSsptIlyc+6qanXMSpASoz9yl170qCy2mCx6qwtCBY+Omx+aYKytngj 54mXzDZnuc0UgSnl4VYp8CanMjPeV+eH+9gI+XekbXqbXDziMX5iVPQQoqh27IAP3vgPm TN92y3xY4EQ1NevLOhwKI8W2O5ILMPy+TraFRDsBnQxtBxv9SzdVsF09hu5u/+Ota8g== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794274715; h=Received:DKIM-Signature:Subject:From:To:Cc:Date:Message-ID: In-Reply-To:References:X-sashiko-severity:Content-Type: Content-Transfer-Encoding:MIME-Version; bh=0bYZ/zOlq+OiPPFtzwsws4ROrxwK9LWmpXGJUjz7tLE=; b=qpnP0SLJDfMdET46naAS4/vmDOnAG1BQPEVWE9z4K1W0c6qa6gjAjoSWHJoYyzUKU3XA f8tE8zwh0VF36+EIeJ1Rwy/Nm92P/uIb2oKpO3uu/rgaDbC4H6CsnPMd6OzLlEDvKBAtN dqQXcMpW5Ph+YjfQC/+pDEPw8O6+8akRvmQMP1wkLWzad3SYM/bmUcgRxJNARB6HY3ij9 xDhZrXIXyiX1LwI6ahABt/8eBQAdeKZzGY9+taX1ilBa8r2+a0i0pvdiq4RxRcY5t5f3f IXd0zE8Ix1C7ZIhI4d89ixBoi4eIYogdoD4i4KznXMvZWFA68ChkX07gC0z64MLrreA== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Hmk3FgkE; arc=none smtp.remote-ip=100.103.45.18 X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8BD4360A3801; Tue, 10 Nov 2026 01:38:35 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6956B1F008A3; Tue, 10 Nov 2026 01:38:34 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1794274715; bh=0bYZ/zOlq+OiPPFtzwsws4ROrxwK9LWmpXGJUjz7tLE=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=Hmk3FgkEcL1lKKJ1m1XhaZy/2R9kESJuQ2EwhfK2LhoJ1xhGuXaLQB+4gOdfuJznu E5SDn7Nm8DYCNDVV79gIP4eiBFXDoc6RLDFfToCbuTxae21n7Vv50+BJS9+RQO/sAe 6qcu+kW6i7ePkiMa5QvDe/UNBoE7FGHqCaQthS6P1LKtKhBZYfOjDadGze+Prl/6kO LrIFV8oHc4PAQiiFez+U/w00UXaVDqx27b5oGSgPXnpxRNofCYMTjTcHZg5Vze0ogN 4r1b76IVTXTKtf0z5nHw9I1afP15jU+uzgcd66snZJBo6IoDZCnm7uv1NaLw5WMq/8 czDGXf5r0vbcA== X-Cc: andrew+netdev@lunn.ch, davem@davemloft.net, kuba@kernel.org, pabeni@redhat.com, linux@armlinux.org.uk, andrew@lunn.ch, hkallweit1@gmail.com, chenhuacai@kernel.org, kernel@xen0n.name, edumazet@kernel.org, linux-usb@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, loongarch@lists.linux.dev, neuromoments@gmail.com, beganovic.emir@gmail.com X-In-Reply-To: <20261106-ax88179a-v20-5-37b5a1189983@birger-koblitz.de> X-sashiko-severity: Low X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list