projects
/
linux-2.6-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d07a05
)
tools/testing/cxl: Add hostbridge UID string for cxl_test mock hb devices
author
Dave Jiang
<dave.jiang@intel.com>
Thu, 21 Dec 2023 22:03:45 +0000
(15:03 -0700)
committer
Dan Williams
<dan.j.williams@intel.com>
Fri, 22 Dec 2023 23:31:52 +0000
(15:31 -0800)
In order to support acpi_device_uid() call, add static string to
acpi_device->pnp.unique_id.
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Link:
https://lore.kernel.org/r/170319622564.2212653.1534465446670631698.stgit@djiang5-mobl3
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
tools/testing/cxl/test/cxl.c
patch
|
blob
|
blame
|
history
diff --git
a/tools/testing/cxl/test/cxl.c
b/tools/testing/cxl/test/cxl.c
index f4e517a0c7740ffa2dfb4889231d42fad438a5a9..a3cdbb2be038c45e27326925d81ba43294b56c31 100644
(file)
--- a/
tools/testing/cxl/test/cxl.c
+++ b/
tools/testing/cxl/test/cxl.c
@@
-68,15
+68,19
@@
static struct acpi_device acpi0017_mock;
static struct acpi_device host_bridge[NR_BRIDGES] = {
[0] = {
.handle = &host_bridge[0],
+ .pnp.unique_id = "0",
},
[1] = {
.handle = &host_bridge[1],
+ .pnp.unique_id = "1",
},
[2] = {
.handle = &host_bridge[2],
+ .pnp.unique_id = "2",
},
[3] = {
.handle = &host_bridge[3],
+ .pnp.unique_id = "3",
},
};