From: Jérôme Pouiller Date: Mon, 27 Apr 2020 13:40:17 +0000 (+0200) Subject: staging: wfx: mark chip frozen on error indication X-Git-Tag: v5.8-rc1~106^2~214 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=7acf88f8649a782217541ae460a34c42f3330544;p=linux.git staging: wfx: mark chip frozen on error indication When the driver receive an error indication, it means the chip won't answer to any command anymore. Therefore, mark the chip frozen when it happens (as when the driver receive an exception indication). Signed-off-by: Jérôme Pouiller Link: https://lore.kernel.org/r/20200427134031.323403-4-Jerome.Pouiller@silabs.com Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/wfx/hif_rx.c b/drivers/staging/wfx/hif_rx.c index b56138fef0bb..6dbe289a368f 100644 --- a/drivers/staging/wfx/hif_rx.c +++ b/drivers/staging/wfx/hif_rx.c @@ -276,6 +276,7 @@ static int hif_error_indication(struct wfx_dev *wdev, body->type); break; } + wdev->chip_frozen = true; return 0; }