Input: elan_i2c - enable asynchronous probing
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 5 Aug 2015 19:01:30 +0000 (12:01 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 7 Aug 2015 21:55:39 +0000 (14:55 -0700)
It takes a bit of time to go through controller power up sequence and
initialization. To not stall the overall boot progress let's probe the
controller asynchronously, given that userspace is usually prepared for
hot-plugging of input devices and thus does not rely on particular
ordering.

Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/mouse/elan_i2c_core.c

index 0a076d30be8bce28451fbf073794a7f4bed451a7..67388f42ed9a08f3decf07a98c0d36bc082bfb2b 100644 (file)
@@ -1185,6 +1185,7 @@ static struct i2c_driver elan_driver = {
                .pm     = &elan_pm_ops,
                .acpi_match_table = ACPI_PTR(elan_acpi_id),
                .of_match_table = of_match_ptr(elan_of_match),
+               .probe_type = PROBE_PREFER_ASYNCHRONOUS,
        },
        .probe          = elan_probe,
        .id_table       = elan_id,