projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e42bcb
)
cxl/acpi: Autoload driver for 'cxl_acpi' test devices
author
Dan Williams
<dan.j.williams@intel.com>
Sat, 23 Jul 2022 00:55:57 +0000
(17:55 -0700)
committer
Dan Williams
<dan.j.williams@intel.com>
Mon, 1 Aug 2022 22:36:32 +0000
(15:36 -0700)
In support of CXL unit tests in the ndctl project, arrange for the
cxl_acpi driver to load in response to the registration of cxl_test
devices.
Reported-by: Dave Jiang <dave.jiang@intel.com>
Tested-by: Dave Jiang <dave.jiang@intel.com>
Reviewed-by: Vishal Verma <vishal.l.verma@intel.com>
Link:
https://lore.kernel.org/r/165853775783.2430596.13637998086505316619.stgit@dwillia2-xfh.jf.intel.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/cxl/acpi.c
patch
|
blob
|
history
diff --git
a/drivers/cxl/acpi.c
b/drivers/cxl/acpi.c
index
64004eb
..
eb43626
100644
(file)
--- a/
drivers/cxl/acpi.c
+++ b/
drivers/cxl/acpi.c
@@
-515,12
+515,19
@@
static const struct acpi_device_id cxl_acpi_ids[] = {
};
MODULE_DEVICE_TABLE(acpi, cxl_acpi_ids);
+static const struct platform_device_id cxl_test_ids[] = {
+ { "cxl_acpi" },
+ { },
+};
+MODULE_DEVICE_TABLE(platform, cxl_test_ids);
+
static struct platform_driver cxl_acpi_driver = {
.probe = cxl_acpi_probe,
.driver = {
.name = KBUILD_MODNAME,
.acpi_match_table = cxl_acpi_ids,
},
+ .id_table = cxl_test_ids,
};
module_platform_driver(cxl_acpi_driver);