cxl/mem: Drop mem_enabled check from wait_for_media()
authorDan Williams <dan.j.williams@intel.com>
Wed, 18 May 2022 23:34:15 +0000 (16:34 -0700)
committerDan Williams <dan.j.williams@intel.com>
Thu, 19 May 2022 15:50:40 +0000 (08:50 -0700)
commit2bcf3bbd348fc10260aa6243ff6a22a1882b5b35
tree3a96cff9e9fb8d8074af2128edc8ece565c51707
parente6829d1bd3c4b58296ee9e412f7ed4d6cb390192
cxl/mem: Drop mem_enabled check from wait_for_media()

Media ready is asserted by the device independent of whether mem_enabled
was ever set. Drop this check to allow for dropping wait_for_media() in
favor of ->wait_media_ready().

Fixes: 8dd2bc0f8e02 ("cxl/mem: Add the cxl_mem driver")
Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Link: https://lore.kernel.org/r/165291685501.1426646.10372821863672431074.stgit@dwillia2-xfh
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/cxl/mem.c