summaryrefslogtreecommitdiff
path: root/drivers/cxl/core/mbox.c
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2023-10-31 21:00:08 +0300
committerDan Williams <dan.j.williams@intel.com>2023-10-31 21:00:08 +0300
commitb3cfdbf6a062bcfb431153f92d6bc1ad20bfc687 (patch)
tree9e1b81e6288393bc194308ec3e9aa28e7b9d1c2a /drivers/cxl/core/mbox.c
parentde5512b2a293863261c6b04c0c73ec0ec09ed550 (diff)
parent05e37b2138a6deb1f23daf1282dc86b29968a1ab (diff)
downloadlinux-b3cfdbf6a062bcfb431153f92d6bc1ad20bfc687.tar.xz
Merge branch 'for-6.7/cxl-commited' into cxl/next
Add the committed decoder sysfs attribute for v6.7.
Diffstat (limited to 'drivers/cxl/core/mbox.c')
-rw-r--r--drivers/cxl/core/mbox.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/cxl/core/mbox.c b/drivers/cxl/core/mbox.c
index 9e90780bdc2b..36270dcfb42e 100644
--- a/drivers/cxl/core/mbox.c
+++ b/drivers/cxl/core/mbox.c
@@ -1200,7 +1200,7 @@ int cxl_mem_sanitize(struct cxl_memdev *cxlmd, u16 cmd)
* Require an endpoint to be safe otherwise the driver can not
* be sure that the device is unmapped.
*/
- if (endpoint && endpoint->commit_end == -1)
+ if (endpoint && cxl_num_decoders_committed(endpoint) == 0)
rc = __cxl_mem_sanitize(mds, cmd);
else
rc = -EBUSY;