Netdev List
 help / color / mirror / Atom feed
From: Jianhui Xu <neuromoments@gmail.com>
To: mail@birger-koblitz.de
Cc: andrew+netdev@lunn.ch, andrew@lunn.ch, davem@davemloft.net,
	edumazet@google.com, hkallweit1@gmail.com, kuba@kernel.org,
	linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org,
	linux@armlinux.org.uk, netdev@vger.kernel.org,
	neuromoments@gmail.com, pabeni@redhat.com
Subject: Re: [PATCH v7 0/14] ax88179_178a: Add support for AX88179A-based chips
Date: Sun, 16 Aug 2026 15:09:54 +0800	[thread overview]
Message-ID: <20260816070954.3440027-1-neuromoments@gmail.com> (raw)
In-Reply-To: <20260810-ax88179a-v7-0-da633191c129@birger-koblitz.de>

Hi Birger, 

I tested v7 on the same ASIX AX88179B adapter. The 14 patches applied
cleanly to net-next commit df13c1df8147675470213ffff29dd5762fa321f5 and
built as 7.2.0-rc3-ax88179b-v7. Full and focused W=1 builds for phylink.o,
ax88179.o, and ax88796b.o completed without warnings or errors.

The main functional tests passed: cold DHCP at 1000baseT/Full, the
1000/100/10/1000 Mbit/s matrix, EEE and pause disable/restore, EEPROM read,
module reload, and QEMU USB detach/reattach. I also ran 30 additional
100baseT/Full -> 1000baseT/Full cycles; all points passed carrier,
negotiated speed, bound traffic, and RX-growth checks. Including the normal
matrix, all 31 tested 100baseT/Full points passed, so I did not reproduce
the v6 intermittent 100-Mbit carrier-without-RX issue.

However, suspend/resume with magic-packet wake failed reproducibly.
A deep-S3 cycle with `wol d` passed, but two independent fresh cycles with
`wol g` both resumed with the AX88179B interface stuck NO-CARRIER. Bound
traffic failed, neighbors remained unresolved, and RX did not increase
during immediate, 10-second, or 20-second checks.

In both failures, dmesg showed the USB reset followed by `Link is Down` and
`Link is Up - 1Gbps/Full` only about 11-13 ms apart, both before `PM:
suspend exit`. No later link event arrived after resume. By comparison, all
six retained v6 `wol g` trials passed, with Link Up occurring about 2.4-2.8
seconds after `PM: suspend exit`, when the link was actually usable.

I then tested a small ordering change in ax88179a_resume(): 

diff --git a/drivers/net/usb/ax88179a_devices.c b/drivers/net/usb/ax88179a_devices.c
index 6b57111a0..dc101902b 100644
--- a/drivers/net/usb/ax88179a_devices.c
+++ b/drivers/net/usb/ax88179a_devices.c
@@ -215,14 +215,14 @@ static int ax88179a_resume(struct usb_interface *intf)
 	ax88179_write_cmd(dev, AX88179A_PHY_POWER, 0, 0, 1, &reg8);
 	msleep(250);
 
+	ax88179a_reset(dev);
+
 	if (netif_running(dev->net)) {
 		rtnl_lock();
 		phylink_resume(ax179_data->phylink);
 		rtnl_unlock();
 	}
 
-	ax88179a_reset(dev);
-
 	ax88179_set_pm_mode(dev, false);
 
 	return usbnet_resume(intf);

The modified v7 passed all the aforementioned tests, plus 13 additional
`wol g` deep-S3 cycles. Every cycle resumed at 1000baseT/Full and passed
immediate, 10-second, and 20-second traffic/RX checks. All 13 `wol g`
traces contained a usable Link Up 2.017-4.020 seconds after `PM: suspend
exit`.

I'm not an expert in the Linux networking subsystem, so I'd appreciate it
if you could take another look at whether this ordering is appropriate.

Thanks,
Jianhui

  parent reply	other threads:[~2026-08-16  7:10 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-10 12:33 [PATCH net-next v7 00/14] ax88179_178a: Add support for AX88179A-based chips Birger Koblitz
2026-08-10 12:33 ` [PATCH net-next v7 01/14] phylink: Add phylink_mac_interrupt Birger Koblitz
2026-08-10 12:33 ` [PATCH net-next v7 02/14] ax88179_178a: Fix endianness of pause watermark register Birger Koblitz
2026-08-10 12:33 ` [PATCH net-next v7 03/14] ax88179_178a: Split driver into library and device specific code Birger Koblitz
2026-08-10 12:33 ` [PATCH net-next v7 04/14] ax88179_178a: Add netdev2data() convenience function Birger Koblitz
2026-08-10 12:33 ` [PATCH net-next v7 05/14] ax88179_178a: Add HW support for AX179A-based chips Birger Koblitz
2026-08-10 12:33 ` [PATCH net-next v7 06/14] ax88179_178a: Add EEE configuration support for AX88179A MACs Birger Koblitz
2026-08-10 12:33 ` [PATCH net-next v7 07/14] ax88179_178a: Add EEE configuration support for AX88179A PHYs Birger Koblitz
2026-08-10 12:33 ` [PATCH net-next v7 08/14] ax88179_178a: Add VLAN offload support for AX88179A Birger Koblitz
2026-08-10 12:33 ` [PATCH net-next v7 09/14] ax88179_178a: Add AX179A/AX279 multicast configuration Birger Koblitz
2026-08-10 12:33 ` [PATCH net-next v7 10/14] ax88179_178a: Add Suspend/resume support for AX88179A/772D/279 Birger Koblitz
2026-08-10 12:33 ` [PATCH net-next v7 11/14] ax88179_178a: Add ethtool get_drvinfo Birger Koblitz
2026-08-10 12:33 ` [PATCH net-next v7 12/14] ax88179_178a: Update driver name and information Birger Koblitz
2026-08-10 12:33 ` [PATCH net-next v7 13/14] ax88179_178a: Add support for AX88179A/772D/279 EEPROM access Birger Koblitz
2026-08-10 12:33 ` [PATCH net-next v7 14/14] ax88796b: Add support for AX88772D, AX88179A and AX88279 Birger Koblitz
2026-08-16  7:09 ` Jianhui Xu [this message]
2026-08-16  7:43   ` [PATCH v7 0/14] ax88179_178a: Add support for AX88179A-based chips Birger Koblitz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260816070954.3440027-1-neuromoments@gmail.com \
    --to=neuromoments@gmail.com \
    --cc=andrew+netdev@lunn.ch \
    --cc=andrew@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=hkallweit1@gmail.com \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=linux@armlinux.org.uk \
    --cc=mail@birger-koblitz.de \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox