Re: [PATCH net-next] net: phy: air_en8811h: use firmware loaded by the bootloader
From: Andrew Lunn
Date: Thu Nov 26 2026 - 11:33:37 EST
On Thu, Nov 26, 2026 at 09:57:20AM +0000, Albert-AL Lee (李家宏) wrote:
> Hi Aleksei,
>
> On Mon, Oct 19, 2026 at 04:33:04AM +0300, Aleksei Sviridkin wrote:
> > Lucien, Albert, does Airoha guarantee any field in EthMD32.dm.bin or
> > EthMD32.DSP.bin as the firmware version, at a fixed place that will not
> > move in later releases? Without such a guarantee I would rather not
> > compare versions in the driver.
>
> No, Airoha cannot guarantee any field in EthMD32.dm.bin or EthMD32.DSP.bin
> as the firmware version at a fixed offset or location that will remain
> unchanged across future releases.
>
> While reading 0x3b3c currently returns the firmware version, there is no
> fixed offset within the firmware binary itself that can be used to reliably
> locate this info. Therefore, we recommend not relying on this register
> value for version detection in the upstream driver.
Please add it to your TODO list to make it possible to identify the
version. Without having this feature, you force the driver to download
the firmware, which is not a fast operation, just to find out it
already had the same, or maybe newer version, already running on the
device.
Andrew