]> git.baikalelectronics.ru Git - kernel.git/commit
bus: mhi: ep: Add uevent support for module autoloading
authorManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Mon, 29 Nov 2021 11:05:35 +0000 (16:35 +0530)
committerManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Mon, 4 Apr 2022 04:47:51 +0000 (10:17 +0530)
commite846d634094863763f61db910efa352cebfec34e
treec93291f88d6213d6e827b965e3ad8819e732891f
parent1ea4f86a8c71c632f2961c7676ce7946607d09bc
bus: mhi: ep: Add uevent support for module autoloading

Add uevent support to MHI endpoint bus so that the client drivers can be
autoloaded by udev when the MHI endpoint 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.

The MHI endpoint reused the mhi_device_id structure of the MHI bus.

Reviewed-by: Alex Elder <elder@linaro.org>
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
drivers/bus/mhi/ep/main.c
include/linux/mod_devicetable.h
scripts/mod/file2alias.c