From: Rupesh Girase Date: Thu, 27 Feb 2020 16:45:26 +0000 (+0530) Subject: nvme: log additional message for controller status X-Git-Tag: v5.10.7~3002^2~3^2~30 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=94d2e705b6a6fe9c56a990c0cd31a7298cfcee9a;p=platform%2Fkernel%2Flinux-rpi.git nvme: log additional message for controller status Log the controller status to know more about issue if it lies within kernel nvme subsytem or controller is unhealthy. Signed-off-by: Rupesh Girase Reviewed-by: Sagi Grimberg Reviewed-by: Chaitanya Kulkarni Signed-off-by: Keith Busch --- diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c index c4dbc85..c998894 100644 --- a/drivers/nvme/host/core.c +++ b/drivers/nvme/host/core.c @@ -2083,8 +2083,8 @@ static int nvme_wait_ready(struct nvme_ctrl *ctrl, u64 cap, bool enabled) return -EINTR; if (time_after(jiffies, timeout)) { dev_err(ctrl->device, - "Device not ready; aborting %s\n", enabled ? - "initialisation" : "reset"); + "Device not ready; aborting %s, CSTS=0x%x\n", + enabled ? "initialisation" : "reset", csts); return -ENODEV; } }