diff options
author | Dave Jiang <dave.jiang@intel.com> | 2023-02-14 11:41:40 -0800 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2023-02-14 15:45:21 -0800 |
commit | 6980daaa3ed5959bf4fe2719d96b1da437026b58 (patch) | |
tree | c40b62bc3d4465892da314c18b0c232c6142f4ac /drivers/cxl | |
parent | d7a2153762c7369534c432ac7e86996063e246df (diff) |
cxl/pci: Remove locked check for dvsec_range_allowed()
Remove the CXL_DECODER_F_LOCK check to be permissive of platform BIOSes
that allow CXL.mem to be remapped.
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/167640370085.935665.13128321011001358077.stgit@dwillia2-xfh.jf.intel.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/cxl')
-rw-r--r-- | drivers/cxl/core/pci.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/cxl/core/pci.c b/drivers/cxl/core/pci.c index 4eb34dee7c95..c18ed1bbb54d 100644 --- a/drivers/cxl/core/pci.c +++ b/drivers/cxl/core/pci.c @@ -228,8 +228,6 @@ static int dvsec_range_allowed(struct device *dev, void *arg) cxld = to_cxl_decoder(dev); - if (!(cxld->flags & CXL_DECODER_F_LOCK)) - return 0; if (!(cxld->flags & CXL_DECODER_F_RAM)) return 0; |