* [PATCH net] net: phy: aquantia: check for NVMEM deferral
@ 2025-11-27 11:44 Robert Marko
2025-11-27 13:30 ` Russell King (Oracle)
2025-11-29 3:50 ` patchwork-bot+netdevbpf
0 siblings, 2 replies; 3+ messages in thread
From: Robert Marko @ 2025-11-27 11:44 UTC (permalink / raw)
To: andrew, hkallweit1, linux, davem, edumazet, kuba, pabeni,
ansuelsmth, netdev, linux-kernel
Cc: Robert Marko
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>
---
drivers/net/phy/aquantia/aquantia_firmware.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/phy/aquantia/aquantia_firmware.c b/drivers/net/phy/aquantia/aquantia_firmware.c
index bbbcc9736b00..569256152689 100644
--- a/drivers/net/phy/aquantia/aquantia_firmware.c
+++ b/drivers/net/phy/aquantia/aquantia_firmware.c
@@ -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);
--
2.52.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH net] net: phy: aquantia: check for NVMEM deferral
2025-11-27 11:44 [PATCH net] net: phy: aquantia: check for NVMEM deferral Robert Marko
@ 2025-11-27 13:30 ` Russell King (Oracle)
2025-11-29 3:50 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: Russell King (Oracle) @ 2025-11-27 13:30 UTC (permalink / raw)
To: Robert Marko
Cc: andrew, hkallweit1, davem, edumazet, kuba, pabeni, ansuelsmth,
netdev, linux-kernel
On Thu, Nov 27, 2025 at 12:44:35PM +0100, Robert Marko wrote:
> 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>
As aqr_firmware_load() is called from the probe function, returning
-EPROBE_DEFER from here is fine.
Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Thanks!
--
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH net] net: phy: aquantia: check for NVMEM deferral
2025-11-27 11:44 [PATCH net] net: phy: aquantia: check for NVMEM deferral Robert Marko
2025-11-27 13:30 ` Russell King (Oracle)
@ 2025-11-29 3:50 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+netdevbpf @ 2025-11-29 3:50 UTC (permalink / raw)
To: Robert Marko
Cc: andrew, hkallweit1, linux, davem, edumazet, kuba, pabeni,
ansuelsmth, netdev, linux-kernel
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Thu, 27 Nov 2025 12:44:35 +0100 you wrote:
> 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>
>
> [...]
Here is the summary with links:
- [net] net: phy: aquantia: check for NVMEM deferral
https://git.kernel.org/netdev/net/c/a6c121a2432e
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-11-29 3:53 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-27 11:44 [PATCH net] net: phy: aquantia: check for NVMEM deferral Robert Marko
2025-11-27 13:30 ` Russell King (Oracle)
2025-11-29 3:50 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).