diff options
author | Armin Wolf <W_Armin@gmx.de> | 2023-02-10 00:15:03 +0300 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2023-02-13 14:07:50 +0300 |
commit | 6113bd52443f3f9035acf27d8793b0246a692e81 (patch) | |
tree | b9cb20008787e4b77424b9654addc4727817e4af /drivers/platform/x86/dell | |
parent | 3b7eeff93d291299841f943a5e9b43bb160b3992 (diff) | |
download | linux-6113bd52443f3f9035acf27d8793b0246a692e81.tar.xz |
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>
Diffstat (limited to 'drivers/platform/x86/dell')
-rw-r--r-- | drivers/platform/x86/dell/dell-wmi-ddv.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/platform/x86/dell/dell-wmi-ddv.c b/drivers/platform/x86/dell/dell-wmi-ddv.c index d81dc4dd93e3..d547c9d09725 100644 --- a/drivers/platform/x86/dell/dell-wmi-ddv.c +++ b/drivers/platform/x86/dell/dell-wmi-ddv.c @@ -10,6 +10,7 @@ #include <linux/acpi.h> #include <linux/debugfs.h> #include <linux/device.h> +#include <linux/device/driver.h> #include <linux/dev_printk.h> #include <linux/errno.h> #include <linux/kconfig.h> @@ -869,6 +870,7 @@ MODULE_DEVICE_TABLE(wmi, dell_wmi_ddv_id_table); static struct wmi_driver dell_wmi_ddv_driver = { .driver = { .name = DRIVER_NAME, + .probe_type = PROBE_PREFER_ASYNCHRONOUS, .pm = pm_sleep_ptr(&dell_wmi_ddv_dev_pm_ops), }, .id_table = dell_wmi_ddv_id_table, |