lkml.org 
[lkml]   [2020]   [Apr]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 07/17] staging: wfx: add an explicit warning when chip detect too high temperature
Date
From: Jérôme Pouiller <jerome.pouiller@silabs.com>

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: Jérôme Pouiller <jerome.pouiller@silabs.com>
---
drivers/staging/wfx/hif_rx.c | 4 ++++
1 file changed, 4 insertions(+)

diff --git a/drivers/staging/wfx/hif_rx.c b/drivers/staging/wfx/hif_rx.c
index 6de210139d8a..e6daac36f5c8 100644
--- a/drivers/staging/wfx/hif_rx.c
+++ b/drivers/staging/wfx/hif_rx.c
@@ -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",
--
2.26.1
\
 
 \ /
  Last update: 2020-04-27 15:41    [W:0.102 / U:12.348 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site