Linux driver-core infrastructure
 help / color / mirror / Atom feed
* [PATCH 1/2] driver core: Fix missing jiffies conversion in deferred_probe_extend_timeout()
@ 2026-05-25  1:23 Danilo Krummrich
  2026-05-25  1:23 ` [PATCH 2/2] driver core: Guard deferred probe timeout extension with delayed_work_pending() Danilo Krummrich
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Danilo Krummrich @ 2026-05-25  1:23 UTC (permalink / raw)
  To: gregkh, rafael; +Cc: driver-core, linux-kernel, Danilo Krummrich

mod_delayed_work() takes jiffies, not seconds. Thus, restore the dropped
conversion.

While at it, fix incorrect indentation.

Fixes: 1137838865bf ("driver core: Use mod_delayed_work to prevent lost deferred probe work")
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
---
 drivers/base/dd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/base/dd.c b/drivers/base/dd.c
index 172a02a438a2..bebb43acc132 100644
--- a/drivers/base/dd.c
+++ b/drivers/base/dd.c
@@ -324,7 +324,7 @@ void deferred_probe_extend_timeout(void)
 	 * start a new one.
 	 */
 	if (mod_delayed_work(system_wq, &deferred_probe_timeout_work,
-						 driver_deferred_probe_timeout))
+			     secs_to_jiffies(driver_deferred_probe_timeout)))
 		pr_debug("Extended deferred probe timeout by %d secs\n",
 					driver_deferred_probe_timeout);
 }

base-commit: 56785dcb2ef6d3cff82ac33f2e34db94377416a3
-- 
2.54.0


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-05-26 14:58 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-25  1:23 [PATCH 1/2] driver core: Fix missing jiffies conversion in deferred_probe_extend_timeout() Danilo Krummrich
2026-05-25  1:23 ` [PATCH 2/2] driver core: Guard deferred probe timeout extension with delayed_work_pending() Danilo Krummrich
2026-05-25  6:01   ` Greg KH
2026-05-26 12:51   ` Geert Uytterhoeven
2026-05-25  6:01 ` [PATCH 1/2] driver core: Fix missing jiffies conversion in deferred_probe_extend_timeout() Greg KH
2026-05-26 12:49 ` Geert Uytterhoeven
2026-05-26 14:58 ` Danilo Krummrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox