Commit 5f041538 authored by Jérôme Pouiller's avatar Jérôme Pouiller Committed by Greg Kroah-Hartman

staging: wfx: add an explicit warning when chip detect too high temperature

Device is able to measure its temperature and raise warning when this
one is too high. If the the temperature is even higher, the chipis also
able to send an error just before to stop responding.

Until now, the error message was "asynchronous error: unknown (6)".
Signed-off-by: default avatarJérôme Pouiller <jerome.pouiller@silabs.com>
Link: https://lore.kernel.org/r/20200427134031.323403-8-Jerome.Pouiller@silabs.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 1d52d299
......@@ -280,6 +280,10 @@ static int hif_error_indication(struct wfx_dev *wdev,
dev_err(wdev->dev, "asynchronous error: out-of-range overvoltage: %#.8x\n",
*pStatus);
break;
case HIF_ERROR_OOR_TEMPERATURE:
dev_err(wdev->dev, "asynchronous error: out-of-range temperature: %#.8x\n",
*pStatus);
break;
case HIF_ERROR_PDS_VERSION:
dev_err(wdev->dev,
"asynchronous error: wrong PDS payload or version: %#.8x\n",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment