From: Birger Koblitz <mail@birger-koblitz.de>
To: Andrew Lunn <andrew@lunn.ch>
Cc: Jianhui Xu <neuromoments@gmail.com>,
andrew+netdev@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, pabeni@redhat.com
Subject: Re: [PATCH net-next v6 00/13] ax88179_178a: Add support for AX88179A-based chips
Date: Mon, 10 Aug 2026 18:17:05 +0200 [thread overview]
Message-ID: <904f166a-b3c4-4579-9614-6ebe3dc18277@birger-koblitz.de> (raw)
In-Reply-To: <60e05662-5f0d-4b2e-9646-f7d42e04ef13@lunn.ch>
On 8/10/26 15:25, Andrew Lunn wrote:
>> I have finally understood what is happening: There is a race condition between
>> the controller of the AX88179A trying to set up and optimize the link and
>> phylink trying to configure the link on the mac-side.
>
> This is why i dislike any hardware/firmware which thinks it is smarter
> than Linux and directly access the hardware. Such features often break
> stuff, because it does not respect the mutex Linux uses to serialise
> access to the device.
The hardware by default uses CDC_NCM and even needs to be switched to the
vendor mode in order to allow any manual configuration of MAC and PHY.
As much as possible is supposed to work automagically. Linux support looks
very much like an afterthought.
>
>> I will provide a v7 with an additional phylink function phylink_mac_interrupt()
>> being introduced as suggested by Andrew, which is called by ax88179a_status()
>> in response to usbnet receiving the link change interrupt. I tested changing
>> the link a couple of dozen times and it always worked, now.
>
> This will make it safer, but might not stop all the problems. Does the
> PHY have LEDs? Does it have temperature sensors? Features like this
> operate asynchronously to link state. The user can configure them at
> any time. Such register writes might collide with what the firmware is
> doing. I don't suppose you have physical access to the MDIO bus and
> can put a logic analyser on it? Are there bus transactions happening
> during normal operation which are not from Linux?
>
The device has LEDs, but they are entirely controlled by firmware. The behaviour
can be configured from the EEPROM. Writing to the EEPROM involves stopping
the firmware on the device. There are no temperature sensors, or maybe there are,
but the firmware hides them from us.
There is no physical access to the MDIO bus, as MAC and PHY are in the same
chip. I hope that otherwise we are safe from firmware interference, though.
Birger
next prev parent reply other threads:[~2026-08-10 16:17 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-06 19:35 Birger Koblitz
2026-08-06 19:35 ` [PATCH net-next v6 01/13] ax88179_178a: Fix endianness of pause watermark register Birger Koblitz
2026-08-06 19:36 ` [PATCH net-next v6 02/13] ax88179_178a: Split driver into library and device specific code Birger Koblitz
2026-08-09 0:57 ` Jianhui Xu
2026-08-09 3:39 ` Birger Koblitz
2026-08-06 19:36 ` [PATCH net-next v6 03/13] ax88179_178a: Add netdev2data() convenience function Birger Koblitz
2026-08-06 19:36 ` [PATCH net-next v6 04/13] ax88179_178a: Add HW support for AX179A-based chips Birger Koblitz
2026-08-06 19:36 ` [PATCH net-next v6 05/13] ax88179_178a: Add EEE configuration support for AX88179A MACs Birger Koblitz
2026-08-06 19:36 ` [PATCH net-next v6 06/13] ax88179_178a: Add EEE configuration support for AX88179A PHYs Birger Koblitz
2026-08-06 19:36 ` [PATCH net-next v6 07/13] ax88179_178a: Add VLAN offload support for AX88179A Birger Koblitz
2026-08-06 19:36 ` [PATCH net-next v6 08/13] ax88179_178a: Add AX179A/AX279 multicast configuration Birger Koblitz
2026-08-06 19:36 ` [PATCH net-next v6 09/13] ax88179_178a: Add Suspend/resume support for AX88179A/772D/279 Birger Koblitz
2026-08-06 19:36 ` [PATCH net-next v6 10/13] ax88179_178a: Add ethtool get_drvinfo Birger Koblitz
2026-08-06 19:36 ` [PATCH net-next v6 11/13] ax88179_178a: Update driver name and information Birger Koblitz
2026-08-06 19:36 ` [PATCH net-next v6 12/13] ax88179_178a: Add support for AX88179A/772D/279 EEPROM access Birger Koblitz
2026-08-06 19:36 ` [PATCH net-next v6 13/13] ax88796b: Add support for AX88772D, AX88179A and AX88279 Birger Koblitz
2026-08-09 1:36 ` [PATCH net-next v6 00/13] ax88179_178a: Add support for AX88179A-based chips Jianhui Xu
2026-08-09 4:33 ` Birger Koblitz
2026-08-10 1:35 ` Jianhui Xu
2026-08-10 10:43 ` Birger Koblitz
2026-08-10 13:25 ` Andrew Lunn
2026-08-10 16:17 ` Birger Koblitz [this message]
2026-08-10 17:35 ` Andrew Lunn
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=904f166a-b3c4-4579-9614-6ebe3dc18277@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=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=netdev@vger.kernel.org \
--cc=neuromoments@gmail.com \
--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
all inboxes | Powered by JetHome®