From: Birger Koblitz <mail@birger-koblitz.de>
To: Andrew Lunn <andrew@lunn.ch>
Cc: Andrew Lunn <andrew+netdev@lunn.ch>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
linux-usb@vger.kernel.org, netdev@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 2/9] ax88179_178a: Add HW support for AX179A-based chips
Date: Wed, 8 Jul 2026 20:27:35 +0200 [thread overview]
Message-ID: <dadd3b8d-fab8-4ad0-9167-e46132a1db1f@birger-koblitz.de> (raw)
In-Reply-To: <6b368510-05d4-4d73-b588-8002d0d59915@lunn.ch>
On 7/1/26 17:05, Andrew Lunn wrote:
>> #include <linux/usb/usbnet.h>
>> #include <uapi/linux/mdio.h>
>> #include <linux/mdio.h>
>> +#include <linux/if_vlan.h>
>
> Does this patch require this header?
Yes, because of the use of __vlan_hwaccel_put_tag later in the patch.
>
>> @@ -414,7 +570,6 @@ static int ax88179_suspend(struct usb_interface *intf, pm_message_t message)
>>
>> usbnet_suspend(intf, message);
>>
>> - /* Enable WoL */
>> if (priv->wolopts) {
>
> Please try to avoid changes like this.
Fixed in v2.
>
>> /* Force bulk-in zero length */
>> ax88179_read_cmd(dev, AX_ACCESS_MAC, AX_PHYPWR_RSTCTL,
>> - 2, 2, &tmp16);
>> + 2, 2, &tmp16);
>>
>> tmp16 |= AX_PHYPWR_RSTCTL_BZ | AX_PHYPWR_RSTCTL_IPRL;
>> ax88179_write_cmd(dev, AX_ACCESS_MAC, AX_PHYPWR_RSTCTL,
>> - 2, 2, &tmp16);
>> + 2, 2, &tmp16);
>
> Please put white space changes in another patch.
Will be removed from v2.
>
>> + /* Initialize MII structure */
>> + dev->mii.dev = dev->net;
>> + dev->mii.mdio_read = ax88179_mdio_read;
>> + dev->mii.mdio_write = ax88179_mdio_write;
>> + dev->mii.phy_id_mask = 0xff;
>> + dev->mii.reg_num_mask = 0xff;
>> + dev->mii.phy_id = 0x03;
>
> If this device is going to have a long term future, it really should
> move to phylink.
As discussed previously, I started converting the code to phylink,
but for the PHYs implemented as IP-cores in the the AX88179A-based chips,
the behaviour of the PHYs is so different from their discrete counterparts
because of other firmware used, that even if they have the same PHY-ID as
their discrete counterparts, they behave entirely differently and in a
way that is adapted to being used via USB as part of a USB-Ethernet
adapter.
Only few of the USB-Ethernet drivers presently use phylink (asix,
lan78xx), btw.
Birger
next prev parent reply other threads:[~2026-07-08 18:27 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-01 5:42 [PATCH 0/9] ax88179_178a: Add support for AX88179A-based chips Birger Koblitz
2026-07-01 5:42 ` [PATCH 1/9] ax88179_178a: Fix endianness of pause watermark register Birger Koblitz
2026-07-01 14:57 ` Andrew Lunn
2026-07-08 18:23 ` Birger Koblitz
2026-07-01 5:42 ` [PATCH 2/9] ax88179_178a: Add HW support for AX179A-based chips Birger Koblitz
2026-07-01 15:05 ` Andrew Lunn
2026-07-08 18:27 ` Birger Koblitz [this message]
2026-07-07 9:11 ` Paolo Abeni
2026-07-08 18:37 ` Birger Koblitz
2026-07-01 5:42 ` [PATCH 3/9] ax88179_178a: Add support for AX88179A MMD access Birger Koblitz
2026-07-01 9:53 ` Maxime Chevallier
2026-07-08 18:33 ` Birger Koblitz
2026-07-01 5:42 ` [PATCH 4/9] ax88179_178a: Obtain speed and duplex from Interrupt URB Birger Koblitz
2026-07-01 5:42 ` [PATCH 5/9] ax88179_178a: Add support for ethtool pause parameter configuration Birger Koblitz
2026-07-01 10:04 ` Maxime Chevallier
2026-07-01 15:08 ` Andrew Lunn
2026-07-01 16:22 ` Birger Koblitz
2026-07-01 17:05 ` Andrew Lunn
2026-07-01 17:45 ` Birger Koblitz
2026-07-01 18:41 ` Andrew Lunn
2026-07-06 6:28 ` Birger Koblitz
2026-07-07 15:27 ` Andrew Lunn
2026-07-08 18:35 ` Birger Koblitz
2026-07-01 5:42 ` [PATCH 6/9] ax88179_178a: Add VLAN offload support for AX88179A Birger Koblitz
2026-07-01 5:42 ` [PATCH 7/9] ax88179_178a: Add ethtool get_drvinfo Birger Koblitz
2026-07-01 5:42 ` [PATCH 8/9] ax88179_178a: Add support for AX88179A/772D/279 EEPROM access Birger Koblitz
2026-07-01 5:42 ` [PATCH 9/9] ax88179_178a: Add AX179A/AX279 multicast configuration 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=dadd3b8d-fab8-4ad0-9167-e46132a1db1f@birger-koblitz.de \
--to=mail@birger-koblitz.de \
--cc=andrew+netdev@lunn.ch \
--cc=andrew@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--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