]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: phy: aquantia: check for NVMEM deferral
authorRobert Marko <robimarko@gmail.com>
Thu, 27 Nov 2025 11:44:35 +0000 (12:44 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Dec 2025 12:55:12 +0000 (13:55 +0100)
commitb7e669dce505ac24a8a54ca8a0ea0fd9ac4cb8da
tree9dae7e3e4464692b8b3bcde9dcc8b058da15bcbb
parent45d7cf5174e4b9ceda4f77976c2bcab5f96477c2
net: phy: aquantia: check for NVMEM deferral

[ Upstream commit a6c121a2432eee2c4ebceb1483ccd4a50a52983d ]

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: e93984ebc1c8 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/phy/aquantia/aquantia_firmware.c