summaryrefslogtreecommitdiffstats
path: root/drivers/cxl
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2021-10-29 12:51:53 -0700
committerDan Williams <dan.j.williams@intel.com>2021-11-15 11:03:00 -0800
commit814dff9ae234d70003b8733a637fec621c90f0bc (patch)
treea6ca7b056fe30c97f28b289476a62e6e7bf19843 /drivers/cxl
parentf4ce1f766f1ebf39161b3b9447a83f4f1dfe593b (diff)
downloadlinux-814dff9ae234d70003b8733a637fec621c90f0bc.tar.bz2
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')
-rw-r--r--drivers/cxl/acpi.c2
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);