diff options
author | Dan Williams <dan.j.williams@intel.com> | 2021-10-29 22:51:53 +0300 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2021-11-15 22:03:00 +0300 |
commit | 814dff9ae234d70003b8733a637fec621c90f0bc (patch) | |
tree | a6ca7b056fe30c97f28b289476a62e6e7bf19843 /drivers/cxl/acpi.c | |
parent | f4ce1f766f1ebf39161b3b9447a83f4f1dfe593b (diff) | |
download | linux-814dff9ae234d70003b8733a637fec621c90f0bc.tar.xz |
cxl/test: Mock acpi_table_parse_cedt()
Now that cxl_acpi has been converted to use the core ACPI CEDT sub-table
parser, update cxl_test to inject CFMWS and CHBS data directly into
cxl_acpi's handlers.
Cc: Alison Schofield <alison.schofield@intel.com>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Link: https://lore.kernel.org/r/163553711363.2509508.17428994087868269952.stgit@dwillia2-desk3.amr.corp.intel.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/cxl/acpi.c')
-rw-r--r-- | drivers/cxl/acpi.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/cxl/acpi.c b/drivers/cxl/acpi.c index 7820082a2746..91e4072e7649 100644 --- a/drivers/cxl/acpi.c +++ b/drivers/cxl/acpi.c @@ -283,6 +283,7 @@ static int add_host_bridge_uport(struct device *match, void *arg) } struct cxl_chbs_context { + struct device *dev; unsigned long long uid; resource_size_t chbcr; }; @@ -327,6 +328,7 @@ static int add_host_bridge_dport(struct device *match, void *arg) } ctx = (struct cxl_chbs_context) { + .dev = host, .uid = uid, }; acpi_table_parse_cedt(ACPI_CEDT_TYPE_CHBS, cxl_get_chbcr, &ctx); |