diff mbox series

[v4,7/7] cxl: remove locked check for dvsec_range_allowed()

Message ID 167588410599.1155956.845452402773138048.stgit@djiang5-mobl3.local
State Accepted
Commit 6980daaa3ed5959bf4fe2719d96b1da437026b58
Headers show
Series cxl: Introduce HDM decoder emulation from DVSEC range registers | expand

Commit Message

Dave Jiang Feb. 8, 2023, 7:21 p.m. UTC
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>

---
v4:
- Change commit log for more clarity. (Dan)
---
 drivers/cxl/core/pci.c |    2 --
 1 file changed, 2 deletions(-)
diff mbox series

Patch

diff --git a/drivers/cxl/core/pci.c b/drivers/cxl/core/pci.c
index cfd869a1fa93..f18262cbe82a 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;