* [PATCH net-next] octeontx2: use dev_err_probe() for deferred probe
@ 2026-09-01 5:17 Juuso Rinta
2026-09-01 5:25 ` Ratheesh Kannoth
2026-09-03 10:00 ` patchwork-bot+netdevbpf
0 siblings, 2 replies; 3+ messages in thread
From: Juuso Rinta @ 2026-09-01 5:17 UTC (permalink / raw)
To: Sunil Goutham, Geetha sowjanya, Ratheesh Kannoth,
Subbaraya Sundeep, Bharat Bhushan, Andrew Lunn, David S. Miller,
Eric Dumazet, Jakub Kicinski, Paolo Abeni
Cc: netdev, Juuso Rinta
The PF and VF drivers warn and return -EPROBE_DEFER when the AF has
not programmed the RVUM revision or does not answer the mailbox READY
message. That is expected until rvu_af has finished initializing, so
the warning is repeated on every deferred retry.
Use dev_err_probe() instead of dev_warn() so the expected deferral is
not printed at warning level. -EPROBE_DEFER is logged at debug level
and the reason is recorded in devices_deferred.
Signed-off-by: Juuso Rinta <juuso.rinta@nokia.com>
---
drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c | 11 ++++-------
drivers/net/ethernet/marvell/octeontx2/nic/otx2_vf.c | 5 ++---
2 files changed, 6 insertions(+), 10 deletions(-)
diff --git a/drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c b/drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c
index c995f2900..529040f3e 100644
--- a/drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c
+++ b/drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c
@@ -1167,10 +1167,9 @@ int otx2_register_mbox_intr(struct otx2_nic *pf, bool probe_af)
}
err = otx2_sync_mbox_msg(&pf->mbox);
if (err) {
- dev_warn(pf->dev,
- "AF not responding to mailbox, deferring probe\n");
otx2_disable_mbox_intr(pf);
- return -EPROBE_DEFER;
+ return dev_err_probe(pf->dev, -EPROBE_DEFER,
+ "AF not responding to mailbox, deferring probe\n");
}
return 0;
@@ -2993,11 +2992,9 @@ int otx2_check_pf_usable(struct otx2_nic *nic)
* otherwise this driver probe should be deferred
* until AF driver comes up.
*/
- if (!rev) {
- dev_warn(nic->dev,
+ if (!rev)
+ return dev_err_probe(nic->dev, -EPROBE_DEFER,
"AF is not initialized, deferring probe\n");
- return -EPROBE_DEFER;
- }
return 0;
}
diff --git a/drivers/net/ethernet/marvell/octeontx2/nic/otx2_vf.c b/drivers/net/ethernet/marvell/octeontx2/nic/otx2_vf.c
index fcdf891f9..a02267978 100644
--- a/drivers/net/ethernet/marvell/octeontx2/nic/otx2_vf.c
+++ b/drivers/net/ethernet/marvell/octeontx2/nic/otx2_vf.c
@@ -297,10 +297,9 @@ static int otx2vf_register_mbox_intr(struct otx2_nic *vf, bool probe_pf)
err = otx2_sync_mbox_msg(&vf->mbox);
if (err) {
- dev_warn(vf->dev,
- "AF not responding to mailbox, deferring probe\n");
otx2vf_disable_mbox_intr(vf);
- return -EPROBE_DEFER;
+ return dev_err_probe(vf->dev, -EPROBE_DEFER,
+ "AF not responding to mailbox, deferring probe\n");
}
return 0;
}
---
base-commit: 25c1f6111034aef7fc06cfbdcf1e4f0d6e5ee74b
change-id: 20260831-octeontx2-dev-err-probe-9ff7be8b5e6c
Best regards,
--
Juuso Rinta <juuso.rinta@nokia.com>
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH net-next] octeontx2: use dev_err_probe() for deferred probe
2026-09-01 5:17 [PATCH net-next] octeontx2: use dev_err_probe() for deferred probe Juuso Rinta
@ 2026-09-01 5:25 ` Ratheesh Kannoth
2026-09-03 10:00 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: Ratheesh Kannoth @ 2026-09-01 5:25 UTC (permalink / raw)
To: Juuso Rinta
Cc: Sunil Goutham, Geetha sowjanya, Subbaraya Sundeep, Bharat Bhushan,
Andrew Lunn, David S. Miller, Eric Dumazet, Jakub Kicinski,
Paolo Abeni, netdev
On 2026-09-01 at 10:47:36, Juuso Rinta (juuso.rinta@nokia.com) wrote:
> The PF and VF drivers warn and return -EPROBE_DEFER when the AF has
> not programmed the RVUM revision or does not answer the mailbox READY
> message. That is expected until rvu_af has finished initializing, so
> the warning is repeated on every deferred retry.
>
> Use dev_err_probe() instead of dev_warn() so the expected deferral is
> not printed at warning level. -EPROBE_DEFER is logged at debug level
> and the reason is recorded in devices_deferred.
>
> Signed-off-by: Juuso Rinta <juuso.rinta@nokia.com>
Acked-by: Ratheesh Kannoth <rkannoth@marvell.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH net-next] octeontx2: use dev_err_probe() for deferred probe
2026-09-01 5:17 [PATCH net-next] octeontx2: use dev_err_probe() for deferred probe Juuso Rinta
2026-09-01 5:25 ` Ratheesh Kannoth
@ 2026-09-03 10:00 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+netdevbpf @ 2026-09-03 10:00 UTC (permalink / raw)
To: Juuso Rinta
Cc: sgoutham, gakula, rkannoth, sbhatta, bbhushan2, andrew+netdev,
davem, edumazet, kuba, pabeni, netdev
Hello:
This patch was applied to netdev/net-next.git (main)
by Paolo Abeni <pabeni@redhat.com>:
On Tue, 01 Sep 2026 08:17:36 +0300 you wrote:
> The PF and VF drivers warn and return -EPROBE_DEFER when the AF has
> not programmed the RVUM revision or does not answer the mailbox READY
> message. That is expected until rvu_af has finished initializing, so
> the warning is repeated on every deferred retry.
>
> Use dev_err_probe() instead of dev_warn() so the expected deferral is
> not printed at warning level. -EPROBE_DEFER is logged at debug level
> and the reason is recorded in devices_deferred.
>
> [...]
Here is the summary with links:
- [net-next] octeontx2: use dev_err_probe() for deferred probe
https://git.kernel.org/netdev/net-next/c/e048669dccec
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:[~2026-09-03 10:01 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-01 5:17 [PATCH net-next] octeontx2: use dev_err_probe() for deferred probe Juuso Rinta
2026-09-01 5:25 ` Ratheesh Kannoth
2026-09-03 10:00 ` 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