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 <jerome.pouiller@silabs.com>
Link: https://lore.kernel.org/r/20200427134031.323403-4-Jerome.Pouiller@silabs.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Jérôme Pouiller 2020-04-27 15:40:17 +02:00 committed by Greg Kroah-Hartman
parent 18f0dddf1f
commit 7acf88f864

View File

@ -276,6 +276,7 @@ static int hif_error_indication(struct wfx_dev *wdev,
body->type);
break;
}
wdev->chip_frozen = true;
return 0;
}