aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Jiang <dave.jiang@intel.com>2022-10-31 14:44:15 -0700
committerDave Jiang <dave.jiang@intel.com>2022-11-30 15:56:40 -0700
commit77e1034e7886cbba86f7259ab0997d8059e777e0 (patch)
tree6e31d233e3facc9f9f57bf0e455e575af46b8474
parenta65e95581ddc1fcbdc18b672c6006e294bc3c62a (diff)
downloadlinux-cxl-rch.tar.gz
cxl: remove locked check for dvsec_range_allowed()cxl-rch
There is no reason that the CFMWS will always set the "Fixed Device Configuration" bit in the "Window Restrictions" field. Remove the CXL_DECODER_F_LOCK check. Signed-off-by: Dave Jiang <dave.jiang@intel.com>
-rw-r--r--drivers/cxl/core/pci.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/cxl/core/pci.c b/drivers/cxl/core/pci.c
index 009c11b43303b..d92fb757e4951 100644
--- a/drivers/cxl/core/pci.c
+++ b/drivers/cxl/core/pci.c
@@ -229,8 +229,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;