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-Url: http://git.maquefel.me/?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 b56138fef0bbf..6dbe289a368fa 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; }