Skip to content

Commit 6113bd5

Browse files
Wer-Wolfjwrdegoede
authored andcommitted
platform/x86: dell-ddv: Prefer asynchronous probing
During probe, both sensor buffers need to be queried to initialize the hwmon channels. This might be slow on some machines, causing a unnecessary delay during boot. Mark the driver with PROBE_PREFER_ASYNCHRONOUS so that it can be probed asynchronously. Signed-off-by: Armin Wolf <W_Armin@gmx.de> Link: https://lore.kernel.org/r/20230209211503.2739-3-W_Armin@gmx.de Reviewed-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
1 parent 3b7eeff commit 6113bd5

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

drivers/platform/x86/dell/dell-wmi-ddv.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#include <linux/acpi.h>
1111
#include <linux/debugfs.h>
1212
#include <linux/device.h>
13+
#include <linux/device/driver.h>
1314
#include <linux/dev_printk.h>
1415
#include <linux/errno.h>
1516
#include <linux/kconfig.h>
@@ -869,6 +870,7 @@ MODULE_DEVICE_TABLE(wmi, dell_wmi_ddv_id_table);
869870
static struct wmi_driver dell_wmi_ddv_driver = {
870871
.driver = {
871872
.name = DRIVER_NAME,
873+
.probe_type = PROBE_PREFER_ASYNCHRONOUS,
872874
.pm = pm_sleep_ptr(&dell_wmi_ddv_dev_pm_ops),
873875
},
874876
.id_table = dell_wmi_ddv_id_table,

0 commit comments

Comments
 (0)