From: Dan Williams Date: Wed, 18 May 2022 23:34:26 +0000 (-0700) Subject: cxl/pci: Drop wait_for_valid() from cxl_await_media_ready() X-Git-Tag: v6.6.17~7410^2~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=194d5edadf0b403f6de2be89c484a01c83ee269f;p=platform%2Fkernel%2Flinux-rpi.git cxl/pci: Drop wait_for_valid() from cxl_await_media_ready() A check mem_info_valid already happens in __cxl_dvsec_ranges(). Rely on that instead of calling wait_for_valid again. Reviewed-by: Ira Weiny Reviewed-by: Jonathan Cameron Link: https://lore.kernel.org/r/165291686632.1426646.7479581732894574486.stgit@dwillia2-xfh Signed-off-by: Dan Williams --- diff --git a/drivers/cxl/pci.c b/drivers/cxl/pci.c index 435f9f8..91b2669 100644 --- a/drivers/cxl/pci.c +++ b/drivers/cxl/pci.c @@ -431,10 +431,6 @@ static int cxl_await_media_ready(struct cxl_dev_state *cxlds) u64 md_status; int rc, i; - rc = wait_for_valid(cxlds); - if (rc) - return rc; - for (i = mbox_ready_timeout; i; i--) { u32 temp;