mirror of
https://github.com/torvalds/linux.git
synced 2026-06-01 02:53:36 +02:00
net: phy: aquantia: check for NVMEM deferral
Currently, if NVMEM provider is probed later than Aquantia, loading the
firmware will fail with -EINVAL.
To fix this, simply check for -EPROBE_DEFER when NVMEM is attempted and
return it.
Fixes: e93984ebc1 ("net: phy: aquantia: add firmware load support")
Signed-off-by: Robert Marko <robimarko@gmail.com>
Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Link: https://patch.msgid.link/20251127114514.460924-1-robimarko@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
1f73a56f98
commit
a6c121a243
|
|
@ -369,7 +369,7 @@ int aqr_firmware_load(struct phy_device *phydev)
|
|||
* assume that, and load a new image.
|
||||
*/
|
||||
ret = aqr_firmware_load_nvmem(phydev);
|
||||
if (!ret)
|
||||
if (ret == -EPROBE_DEFER || !ret)
|
||||
return ret;
|
||||
|
||||
ret = aqr_firmware_load_fs(phydev);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user