bus: mhi: core: Add uevent support for module autoloading
Add uevent support to MHI bus so that the client drivers can be autoloaded by udev when the MHI devices gets created. The client drivers are expected to provide MODULE_DEVICE_TABLE with the MHI id_table struct so that the alias can be exported. Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> Reviewed-by: Jeffrey Hugo <jhugo@codeaurora.org> Tested-by: Jeffrey Hugo <jhugo@codeaurora.org> Link: https://lore.kernel.org/r/20200220095854.4804-13-manivannan.sadhasivam@linaro.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
189ff97cca
commit
e6b0de469c
@@ -821,6 +821,7 @@ struct wmi_device_id {
|
||||
const void *context;
|
||||
};
|
||||
|
||||
#define MHI_DEVICE_MODALIAS_FMT "mhi:%s"
|
||||
#define MHI_NAME_SIZE 32
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user