Skip to content

Commit f2202f9

Browse files
davejiangdjbw
authored andcommitted
tools/testing/cxl: Add hostbridge UID string for cxl_test mock hb devices
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>
1 parent 4d07a05 commit f2202f9

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

  • tools/testing/cxl/test

tools/testing/cxl/test/cxl.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,15 +68,19 @@ static struct acpi_device acpi0017_mock;
6868
static struct acpi_device host_bridge[NR_BRIDGES] = {
6969
[0] = {
7070
.handle = &host_bridge[0],
71+
.pnp.unique_id = "0",
7172
},
7273
[1] = {
7374
.handle = &host_bridge[1],
75+
.pnp.unique_id = "1",
7476
},
7577
[2] = {
7678
.handle = &host_bridge[2],
79+
.pnp.unique_id = "2",
7780
},
7881
[3] = {
7982
.handle = &host_bridge[3],
83+
.pnp.unique_id = "3",
8084
},
8185
};
8286

0 commit comments

Comments
 (0)