summaryrefslogtreecommitdiff
path: root/drivers/cxl/acpi.c
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2022-01-26 08:24:04 +0300
committerDan Williams <dan.j.williams@intel.com>2022-02-09 10:15:10 +0300
commit0909b4e5287bcda34f00da878ac1f37a0921d959 (patch)
treefd7862c5ff63bc3520d79b76eab141c02c35a9a0 /drivers/cxl/acpi.c
parent64cda3ae6bc785960cd1b4f78c19f7ca53e0130b (diff)
downloadlinux-0909b4e5287bcda34f00da878ac1f37a0921d959.tar.xz
cxl/core/port: Fix / relax decoder target enumeration
If the decoder is not presently active the target_list may not be accurate. Perform a best effort mapping and assume that it will be fixed up when the decoder is enabled. Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Link: https://lore.kernel.org/r/164317464406.3438644.6609329492458460242.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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/cxl/acpi.c b/drivers/cxl/acpi.c
index d8295572bde9..d15a6aec0331 100644
--- a/drivers/cxl/acpi.c
+++ b/drivers/cxl/acpi.c
@@ -15,7 +15,7 @@
static unsigned long cfmws_to_decoder_flags(int restrictions)
{
- unsigned long flags = 0;
+ unsigned long flags = CXL_DECODER_F_ENABLE;
if (restrictions & ACPI_CEDT_CFMWS_RESTRICT_TYPE2)
flags |= CXL_DECODER_F_TYPE2;