Message ID | 165291685501.1426646.10372821863672431074.stgit@dwillia2-xfh |
---|---|
State | Accepted |
Commit | 2bcf3bbd348fc10260aa6243ff6a22a1882b5b35 |
Headers | show |
Series | cxl: Fix "mem_enable" handling | expand |
diff --git a/drivers/cxl/mem.c b/drivers/cxl/mem.c index 401b0fbe21db..c2d9dadf4a2e 100644 --- a/drivers/cxl/mem.c +++ b/drivers/cxl/mem.c @@ -27,12 +27,8 @@ static int wait_for_media(struct cxl_memdev *cxlmd) { struct cxl_dev_state *cxlds = cxlmd->cxlds; - struct cxl_endpoint_dvsec_info *info = &cxlds->info; int rc; - if (!info->mem_enabled) - return -EBUSY; - rc = cxlds->wait_media_ready(cxlds); if (rc) return rc;