From 036d1df8236abbe350955cabe26621122413c242 Mon Sep 17 00:00:00 2001 From: Aleksa Savic Date: Thu, 28 Sep 2023 14:23:01 +0200 Subject: [PATCH] nzxt-kraken3: complete_all() Z53 statuses if firmware is damaged Signed-off-by: Aleksa Savic --- nzxt-kraken3.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/nzxt-kraken3.c b/nzxt-kraken3.c index 9f1c101..6982c51 100644 --- a/nzxt-kraken3.c +++ b/nzxt-kraken3.c @@ -721,12 +721,14 @@ static int kraken3_raw_event(struct hid_device *hdev, struct hid_report *report, if (data[TEMP_SENSOR_START_OFFSET] == 0xff && data[TEMP_SENSOR_END_OFFSET] == 0xff) { hid_err_once(hdev, "firmware or device is possibly damaged, not parsing reports\n"); - /* Mark first X-series device report as received, even if faulty */ - if (priv->kind == X53 && !completion_done(&priv->status_report_processed)) + /* + * Mark first X-series device report as received, + * as well as all for Z-series, if faulty. + */ + if ((priv->kind == X53 && !completion_done(&priv->status_report_processed)) || + priv->kind == Z53) complete_all(&priv->status_report_processed); - if (priv->kind == Z53) - complete(&priv->status_report_processed); return 0; }