* [PATCH] Revert "driver core: Use mod_delayed_work to prevent lost deferred probe work"
@ 2026-05-26 12:03 Biju
2026-05-26 12:09 ` Danilo Krummrich
0 siblings, 1 reply; 6+ messages in thread
From: Biju @ 2026-05-26 12:03 UTC (permalink / raw)
To: Greg Kroah-Hartman, Rafael J. Wysocki, Danilo Krummrich
Cc: Biju Das, driver-core, linux-kernel, Geert Uytterhoeven,
Prabhakar Mahadev Lad, Biju Das, linux-renesas-soc
From: Biju Das <biju.das.jz@bp.renesas.com>
Commit 1137838865bf ("driver core: Use mod_delayed_work to prevent lost
deferred probe work") introduced below regression on Renesas SMARC RZ/G2L
EVK:
class_for_each_device called for class 'devlink' before it was registered
WARNING: drivers/base/class.c:415 at class_for_each_device+0x12c/0x13c, CPU#1: kworker/1:1/26
class_for_each_device+0x12c/0x13c (P)
fw_devlink_probing_done+0x58/0xa0
deferred_probe_timeout_work_func+0x5c/0xb8
process_one_work+0x150/0x290
worker_thread+0x18c/0x300
kthread+0x114/0x120
Reverting the commit fixes the issue.
Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
---
drivers/base/dd.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/drivers/base/dd.c b/drivers/base/dd.c
index 172a02a438a2..5799a60fd058 100644
--- a/drivers/base/dd.c
+++ b/drivers/base/dd.c
@@ -323,10 +323,12 @@ void deferred_probe_extend_timeout(void)
* If the work hasn't been queued yet or if the work expired, don't
* start a new one.
*/
- if (mod_delayed_work(system_wq, &deferred_probe_timeout_work,
- driver_deferred_probe_timeout))
+ if (cancel_delayed_work(&deferred_probe_timeout_work)) {
+ schedule_delayed_work(&deferred_probe_timeout_work,
+ driver_deferred_probe_timeout * HZ);
pr_debug("Extended deferred probe timeout by %d secs\n",
driver_deferred_probe_timeout);
+ }
}
/**
--
2.43.0
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH] Revert "driver core: Use mod_delayed_work to prevent lost deferred probe work"
2026-05-26 12:03 [PATCH] Revert "driver core: Use mod_delayed_work to prevent lost deferred probe work" Biju
@ 2026-05-26 12:09 ` Danilo Krummrich
2026-05-26 12:14 ` Biju Das
2026-05-26 12:46 ` Geert Uytterhoeven
0 siblings, 2 replies; 6+ messages in thread
From: Danilo Krummrich @ 2026-05-26 12:09 UTC (permalink / raw)
To: Biju
Cc: Greg Kroah-Hartman, Rafael J. Wysocki, Biju Das, driver-core,
linux-kernel, Geert Uytterhoeven, Prabhakar Mahadev Lad,
linux-renesas-soc
On 5/26/26 2:03 PM, Biju wrote:
> From: Biju Das <biju.das.jz@bp.renesas.com>
>
> Commit 1137838865bf ("driver core: Use mod_delayed_work to prevent lost
> deferred probe work") introduced below regression on Renesas SMARC RZ/G2L
> EVK:
> class_for_each_device called for class 'devlink' before it was registered
> WARNING: drivers/base/class.c:415 at class_for_each_device+0x12c/0x13c, CPU#1: kworker/1:1/26
> class_for_each_device+0x12c/0x13c (P)
> fw_devlink_probing_done+0x58/0xa0
> deferred_probe_timeout_work_func+0x5c/0xb8
> process_one_work+0x150/0x290
> worker_thread+0x18c/0x300
> kthread+0x114/0x120
>
> Reverting the commit fixes the issue.
There's already [1], which should also fix the issue.
Thanks,
Danilo
[1]
https://lore.kernel.org/driver-core/20260525012340.3860581-1-dakr@kernel.org/t/#u
^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: [PATCH] Revert "driver core: Use mod_delayed_work to prevent lost deferred probe work"
2026-05-26 12:09 ` Danilo Krummrich
@ 2026-05-26 12:14 ` Biju Das
2026-05-26 12:15 ` Danilo Krummrich
2026-05-26 12:46 ` Geert Uytterhoeven
1 sibling, 1 reply; 6+ messages in thread
From: Biju Das @ 2026-05-26 12:14 UTC (permalink / raw)
To: Danilo Krummrich, biju.das.au
Cc: Greg Kroah-Hartman, Rafael J. Wysocki,
driver-core@lists.linux.dev, linux-kernel@vger.kernel.org,
Geert Uytterhoeven, Prabhakar Mahadev Lad,
linux-renesas-soc@vger.kernel.org
Hi Danilo Krummrich,
> -----Original Message-----
> From: Danilo Krummrich <dakr@kernel.org>
> Sent: 26 May 2026 13:10
> Subject: Re: [PATCH] Revert "driver core: Use mod_delayed_work to prevent lost deferred probe work"
>
> On 5/26/26 2:03 PM, Biju wrote:
> > From: Biju Das <biju.das.jz@bp.renesas.com>
> >
> > Commit 1137838865bf ("driver core: Use mod_delayed_work to prevent
> > lost deferred probe work") introduced below regression on Renesas
> > SMARC RZ/G2L
> > EVK:
> > class_for_each_device called for class 'devlink' before it was
> > registered
> > WARNING: drivers/base/class.c:415 at
> > class_for_each_device+0x12c/0x13c, CPU#1: kworker/1:1/26
> > class_for_each_device+0x12c/0x13c (P)
> > fw_devlink_probing_done+0x58/0xa0
> > deferred_probe_timeout_work_func+0x5c/0xb8
> > process_one_work+0x150/0x290
> > worker_thread+0x18c/0x300
> > kthread+0x114/0x120
> >
> > Reverting the commit fixes the issue.
> There's already [1], which should also fix the issue.
OK thanks for the fix. I am dropping this patch.
I have tested your fix and it looks good on Renesas
RZ/g2L SMARC EVK platform.
Cheers,
Biju
>
> Thanks,
> Danilo
>
> [1]
> https://lore.kernel.org/driver-core/20260525012340.3860581-1-dakr@kernel.org/t/#u
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] Revert "driver core: Use mod_delayed_work to prevent lost deferred probe work"
2026-05-26 12:14 ` Biju Das
@ 2026-05-26 12:15 ` Danilo Krummrich
0 siblings, 0 replies; 6+ messages in thread
From: Danilo Krummrich @ 2026-05-26 12:15 UTC (permalink / raw)
To: Biju Das
Cc: biju.das.au, Greg Kroah-Hartman, Rafael J. Wysocki,
driver-core@lists.linux.dev, linux-kernel@vger.kernel.org,
Geert Uytterhoeven, Prabhakar Mahadev Lad,
linux-renesas-soc@vger.kernel.org
On 5/26/26 2:14 PM, Biju Das wrote:
> I have tested your fix and it looks good on Renesas
> RZ/g2L SMARC EVK platform.
Great, feel free to reply with a Tested-by: tag in this case.
Thanks,
Danilo
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] Revert "driver core: Use mod_delayed_work to prevent lost deferred probe work"
2026-05-26 12:09 ` Danilo Krummrich
2026-05-26 12:14 ` Biju Das
@ 2026-05-26 12:46 ` Geert Uytterhoeven
2026-05-26 12:48 ` Danilo Krummrich
1 sibling, 1 reply; 6+ messages in thread
From: Geert Uytterhoeven @ 2026-05-26 12:46 UTC (permalink / raw)
To: Danilo Krummrich
Cc: Biju, Greg Kroah-Hartman, Rafael J. Wysocki, Biju Das,
driver-core, linux-kernel, Geert Uytterhoeven,
Prabhakar Mahadev Lad, linux-renesas-soc
Hi Danilo,
On Tue, 26 May 2026 at 14:09, Danilo Krummrich <dakr@kernel.org> wrote:
> On 5/26/26 2:03 PM, Biju wrote:
> > From: Biju Das <biju.das.jz@bp.renesas.com>
> >
> > Commit 1137838865bf ("driver core: Use mod_delayed_work to prevent lost
> > deferred probe work") introduced below regression on Renesas SMARC RZ/G2L
> > EVK:
> > class_for_each_device called for class 'devlink' before it was registered
> > WARNING: drivers/base/class.c:415 at class_for_each_device+0x12c/0x13c, CPU#1: kworker/1:1/26
> > class_for_each_device+0x12c/0x13c (P)
> > fw_devlink_probing_done+0x58/0xa0
> > deferred_probe_timeout_work_func+0x5c/0xb8
> > process_one_work+0x150/0x290
> > worker_thread+0x18c/0x300
> > kthread+0x114/0x120
> >
> > Reverting the commit fixes the issue.
> There's already [1], which should also fix the issue.
Thanks!
FTR, that patch is not sufficient to fix the WARNING (on RZ/Five)
for me: I need both patches from the series to get rid of the both
the warning thousands of "sync_state() pending due to" and
hundreds of "deferred probe pending" messages on other Renesas systems.
> [1]
> https://lore.kernel.org/driver-core/20260525012340.3860581-1-dakr@kernel.org/t/#u
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] Revert "driver core: Use mod_delayed_work to prevent lost deferred probe work"
2026-05-26 12:46 ` Geert Uytterhoeven
@ 2026-05-26 12:48 ` Danilo Krummrich
0 siblings, 0 replies; 6+ messages in thread
From: Danilo Krummrich @ 2026-05-26 12:48 UTC (permalink / raw)
To: Geert Uytterhoeven
Cc: Biju, Greg Kroah-Hartman, Rafael J. Wysocki, Biju Das,
driver-core, linux-kernel, Geert Uytterhoeven,
Prabhakar Mahadev Lad, linux-renesas-soc
On Tue May 26, 2026 at 2:46 PM CEST, Geert Uytterhoeven wrote:
> Hi Danilo,
>
> On Tue, 26 May 2026 at 14:09, Danilo Krummrich <dakr@kernel.org> wrote:
>> On 5/26/26 2:03 PM, Biju wrote:
>> > From: Biju Das <biju.das.jz@bp.renesas.com>
>> >
>> > Commit 1137838865bf ("driver core: Use mod_delayed_work to prevent lost
>> > deferred probe work") introduced below regression on Renesas SMARC RZ/G2L
>> > EVK:
>> > class_for_each_device called for class 'devlink' before it was registered
>> > WARNING: drivers/base/class.c:415 at class_for_each_device+0x12c/0x13c, CPU#1: kworker/1:1/26
>> > class_for_each_device+0x12c/0x13c (P)
>> > fw_devlink_probing_done+0x58/0xa0
>> > deferred_probe_timeout_work_func+0x5c/0xb8
>> > process_one_work+0x150/0x290
>> > worker_thread+0x18c/0x300
>> > kthread+0x114/0x120
>> >
>> > Reverting the commit fixes the issue.
>> There's already [1], which should also fix the issue.
>
> Thanks!
>
> FTR, that patch is not sufficient to fix the WARNING (on RZ/Five)
> for me: I need both patches from the series to get rid of the both
> the warning thousands of "sync_state() pending due to" and
> hundreds of "deferred probe pending" messages on other Renesas systems.
Yes, with linking to [1] I meant both patches.
Thanks,
Danilo
>> [1]
>> https://lore.kernel.org/driver-core/20260525012340.3860581-1-dakr@kernel.org/t/#u
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2026-05-26 12:48 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-26 12:03 [PATCH] Revert "driver core: Use mod_delayed_work to prevent lost deferred probe work" Biju
2026-05-26 12:09 ` Danilo Krummrich
2026-05-26 12:14 ` Biju Das
2026-05-26 12:15 ` Danilo Krummrich
2026-05-26 12:46 ` Geert Uytterhoeven
2026-05-26 12:48 ` Danilo Krummrich
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox