Messages in this thread Patch in this message | | | From | "Luis R. Rodriguez" <> | Subject | [PATCH v2 3/7] driver-core: enable drivers to opt-out of async probe | Date | Fri, 3 Oct 2014 14:44:39 -0700 |
| |
From: "Luis R. Rodriguez" <mcgrof@suse.com>
We'll soon add generic support for asynchronous probe, before that gets merged lets let drivers annotate if they should never probe asynchronously.
Cc: Tejun Heo <tj@kernel.org> Cc: Arjan van de Ven <arjan@linux.intel.com> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: Doug Thompson <dougthompson@xmission.com> Cc: Borislav Petkov <bp@alien8.de> Cc: Mauro Carvalho Chehab <m.chehab@samsung.com> Cc: linux-edac@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Luis R. Rodriguez <mcgrof@suse.com> --- include/linux/device.h | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/include/linux/device.h b/include/linux/device.h index 43d183a..aa14b95 100644 --- a/include/linux/device.h +++ b/include/linux/device.h @@ -200,6 +200,8 @@ extern struct klist *bus_get_device_klist(struct bus_type *bus); * @owner: The module owner. * @mod_name: Used for built-in modules. * @suppress_bind_attrs: Disables bind/unbind via sysfs. + * @sync_probe: Use this to annotate drivers which don't work well with + * async probe. * @of_match_table: The open firmware table. * @acpi_match_table: The ACPI match table. * @probe: Called to query the existence of a specific device, @@ -233,6 +235,7 @@ struct device_driver { const char *mod_name; /* used for built-in modules */ bool suppress_bind_attrs; /* disables bind/unbind via sysfs */ + bool sync_probe; const struct of_device_id *of_match_table; const struct acpi_device_id *acpi_match_table; -- 2.1.1
| |