From 9c4625f81fbd37ca0473732d5f6c72836ac91ca8 Mon Sep 17 00:00:00 2001 From: Alexander Usyskin Date: Sun, 16 Jul 2023 11:10:40 +0300 Subject: [PATCH] mei: log firmware status on hw_start failure. In order to extend debug information log firmware status details when waiting for firmware ready status fails. Signed-off-by: Alexander Usyskin Signed-off-by: Tomas Winkler Link: https://lore.kernel.org/r/20230716081043.3092690-1-tomas.winkler@intel.com Signed-off-by: Greg Kroah-Hartman --- drivers/misc/mei/init.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/misc/mei/init.c b/drivers/misc/mei/init.c index bac8852..5cc75a3 100644 --- a/drivers/misc/mei/init.c +++ b/drivers/misc/mei/init.c @@ -157,7 +157,10 @@ int mei_reset(struct mei_device *dev) ret = mei_hw_start(dev); if (ret) { - dev_err(dev->dev, "hw_start failed ret = %d\n", ret); + char fw_sts_str[MEI_FW_STATUS_STR_SZ]; + + mei_fw_status_str(dev, fw_sts_str, MEI_FW_STATUS_STR_SZ); + dev_err(dev->dev, "hw_start failed ret = %d fw status = %s\n", ret, fw_sts_str); return ret; } -- 2.7.4