@@ -5754,10 +5754,6 @@ static DECLARE_DELAYED_WORK(regulator_init_complete_work,
5754
5754
5755
5755
static int __init regulator_init_complete (void )
5756
5756
{
5757
- int delay = driver_deferred_probe_timeout ;
5758
-
5759
- if (delay < 0 )
5760
- delay = 0 ;
5761
5757
/*
5762
5758
* Since DT doesn't provide an idiomatic mechanism for
5763
5759
* enabling full constraints and since it's much more natural
@@ -5768,17 +5764,18 @@ static int __init regulator_init_complete(void)
5768
5764
has_full_constraints = true;
5769
5765
5770
5766
/*
5771
- * If driver_deferred_probe_timeout is set, we punt
5772
- * completion for that many seconds since systems like
5773
- * distros will load many drivers from userspace so consumers
5774
- * might not always be ready yet, this is particularly an
5775
- * issue with laptops where this might bounce the display off
5776
- * then on. Ideally we'd get a notification from userspace
5777
- * when this happens but we don't so just wait a bit and hope
5778
- * we waited long enough. It'd be better if we'd only do
5779
- * this on systems that need it .
5767
+ * We punt completion for an arbitrary amount of time since
5768
+ * systems like distros will load many drivers from userspace
5769
+ * so consumers might not always be ready yet, this is
5770
+ * particularly an issue with laptops where this might bounce
5771
+ * the display off then on. Ideally we'd get a notification
5772
+ * from userspace when this happens but we don't so just wait
5773
+ * a bit and hope we waited long enough. It'd be better if
5774
+ * we'd only do this on systems that need it, and a kernel
5775
+ * command line option might be useful .
5780
5776
*/
5781
- schedule_delayed_work (& regulator_init_complete_work , delay * HZ );
5777
+ schedule_delayed_work (& regulator_init_complete_work ,
5778
+ msecs_to_jiffies (30000 ));
5782
5779
5783
5780
return 0 ;
5784
5781
}
0 commit comments