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, chenhuacai@kernel.org,
	davem@davemloft.net, edumazet@kernel.org, hkallweit1@gmail.com,
	kernel@xen0n.name, kuba@kernel.org, linux-kernel@vger.kernel.org,
	linux-usb@vger.kernel.org, linux@armlinux.org.uk,
	loongarch@lists.linux.dev, nb@tipi-net.de,
	netdev@vger.kernel.org, neuromoments@gmail.com,
	pabeni@redhat.com
Subject: Re: [PATCH v15 0/13] ax88179_178a: Add support for AX88179A-based chips
Date: Sun,  4 Oct 2026 13:26:19 +0800	[thread overview]
Message-ID: <20261004052619.112885-1-neuromoments@gmail.com> (raw)
In-Reply-To: <20261002-ax88179a-v15-0-131d9286fcd7@birger-koblitz.de>

Hi Birger,

I tested the 13-patch v15 series on an AX88179B adapter (USB 0b95:1790,
bcdDevice 0x0200) on the declared net-next base
071876fd50482a68603a9460d80dd6dd58827ee1.

Builds, cold DHCP, 1000/100/10 Mbit/s link changes, EEE, pause settings,
EEPROM reads, autonegotiation restart, module reload, USB reattach, MII
ioctl reads, and repeated 100/1000 Mbit/s transitions all passed. The build
only showed the pre-existing unused mask warning in
asix_ax88772D_get_features(). Deep-S3 resume also passed with both wol
d and wol g; resume was triggered with QEMU system_wakeup, not a magic
packet. The guest later hit an init-exit panic during poweroff, which
appears separate and has not been investigated further.

However, I did find a reproducible RX VLAN filtering failure. With
rx-vlan-filter enabled, ip link add for VLAN 123 or 124 returned
success, but no VLAN interface was created. With the feature disabled,
VLAN creation worked normally.

The first read in ax88179a_vlan_rx_add_vid() returns the byte count on
success, so:

if (ret)
    return ret;

returns 1 before the VLAN bitmap is programmed.

The patch below fixes both issues and worked correctly when applied
directly on top of v15.

Because unmodified v15 has this VLAN failure, please do not carry my
previous Tested-by for v15.

Thanks,
Jianhui

Signed-off-by: Jianhui Xu <neuromoments@gmail.com>
---
 drivers/net/usb/ax88179a_devices.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/net/usb/ax88179a_devices.c b/drivers/net/usb/ax88179a_devices.c
index 16b441fea..f2140e2bb 100644
--- a/drivers/net/usb/ax88179a_devices.c
+++ b/drivers/net/usb/ax88179a_devices.c
@@ -422,7 +422,7 @@ static int ax88179a_vlan_rx_add_vid(struct net_device *net, __be16 proto, u16 vi
 	u8 reg8;
 
 	ret = ax88179_read_cmd(dev, AX_ACCESS_MAC, AX88179A_VLAN_ID_CONTROL, 1, 1, &reg8);
-	if (ret)
+	if (ret < 0)
 		return ret;
 	vlan_ctrl = reg8;
 
@@ -438,7 +438,7 @@ static int ax88179a_vlan_rx_add_vid(struct net_device *net, __be16 proto, u16 vi
 	if (ret < 0)
 		return ret;
 
-	ax88179_read_cmd(dev, AX_ACCESS_MAC, AX88179A_VLAN_ID_DATA0, 2, 2, &reg16);
+	ret = ax88179_read_cmd(dev, AX_ACCESS_MAC, AX88179A_VLAN_ID_DATA0, 2, 2, &reg16);
 	if (ret < 0)
 		return ret;
 	reg16 |= (1 << (vid % 16));
-- 
2.56.0


  parent reply	other threads:[~2026-10-04  5:26 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-02  4:47 [PATCH net-next v15 00/13] ax88179_178a: Add support for AX88179A-based chips Birger Koblitz
2026-10-02  4:47 ` [PATCH net-next v15 01/13] phylink: Add phylink_mac_interrupt Birger Koblitz
2026-10-02  4:47 ` [PATCH net-next v15 02/13] phylib: Add support for PHYs with broken forced mode Birger Koblitz
2026-10-02  4:47 ` [PATCH net-next v15 03/13] ax88179_178a: Split driver into library and device specific code Birger Koblitz
2026-10-02  4:47 ` [PATCH net-next v15 04/13] ax88179_178a: Add HW support for AX179A-based chips Birger Koblitz
2026-10-02  4:47 ` [PATCH net-next v15 05/13] ax88179_178a: Add EEE configuration support for AX88179A MACs Birger Koblitz
2026-10-02  4:47 ` [PATCH net-next v15 06/13] ax88179_178a: Add EEE configuration support for AX88179A PHYs Birger Koblitz
2026-10-02  4:47 ` [PATCH net-next v15 07/13] ax88179_178a: Add VLAN offload support for AX88179A Birger Koblitz
2026-10-02  4:47 ` [PATCH net-next v15 08/13] ax88179_178a: Add AX179A/AX279 multicast configuration Birger Koblitz
2026-10-02  4:47 ` [PATCH net-next v15 09/13] ax88179_178a: Add Suspend/resume support for AX88179A/772D/279 Birger Koblitz
2026-10-02  4:47 ` [PATCH net-next v15 10/13] ax88179_178a: Add ethtool get_drvinfo Birger Koblitz
2026-10-02  4:47 ` [PATCH net-next v15 11/13] ax88179_178a: Update driver name and information Birger Koblitz
2026-10-02  4:47 ` [PATCH net-next v15 12/13] ax88179_178a: Add support for AX88179A/772D/279 EEPROM access Birger Koblitz
2026-10-02  4:47 ` [PATCH net-next v15 13/13] ax88796b: Add support for AX88772D, AX88179A and AX88279 Birger Koblitz
2026-10-04  5:26 ` Jianhui Xu [this message]
2026-10-04  5:46   ` [PATCH v15 0/13] 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=20261004052619.112885-1-neuromoments@gmail.com \
    --to=neuromoments@gmail.com \
    --cc=andrew+netdev@lunn.ch \
    --cc=andrew@lunn.ch \
    --cc=chenhuacai@kernel.org \
    --cc=davem@davemloft.net \
    --cc=edumazet@kernel.org \
    --cc=hkallweit1@gmail.com \
    --cc=kernel@xen0n.name \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=linux@armlinux.org.uk \
    --cc=loongarch@lists.linux.dev \
    --cc=mail@birger-koblitz.de \
    --cc=nb@tipi-net.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