staging: wfx: mark chip frozen on error indication
authorJérôme Pouiller <jerome.pouiller@silabs.com>
Mon, 27 Apr 2020 13:40:17 +0000 (15:40 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 28 Apr 2020 12:14:26 +0000 (14:14 +0200)
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>
drivers/staging/wfx/hif_rx.c

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