diff options
author | Alexander Usyskin | 2023-07-16 11:10:40 +0300 |
---|---|---|
committer | Greg Kroah-Hartman | 2023-07-30 14:17:27 +0200 |
commit | 9c4625f81fbd37ca0473732d5f6c72836ac91ca8 (patch) | |
tree | 876eea5d5f1c1a0db92985713d46a21e7e7b31af /drivers/misc | |
parent | 4ba2909638a29630a346d6c4907a3105409bee7d (diff) |
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 <alexander.usyskin@intel.com>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Link: https://lore.kernel.org/r/20230716081043.3092690-1-tomas.winkler@intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc')
-rw-r--r-- | drivers/misc/mei/init.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/misc/mei/init.c b/drivers/misc/mei/init.c index bac8852aad51..5cc75a3314a6 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; } |