wil6210: prevent access to RGF_CAF_ICR in Talyn
authorMaya Erez <merez@codeaurora.org>
Thu, 28 Feb 2019 09:35:03 +0000 (11:35 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 3 Apr 2019 12:44:58 +0000 (15:44 +0300)
Due to access control RGF_CAF_ICR cannot be accessed by host.
Such an access will cause device AHB logger to halt and it will not
capture future AHB fault if there is any.

Signed-off-by: Maya Erez <merez@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/wil6210/main.c

index b69d9a2..9b9c9ec 100644 (file)
@@ -1532,11 +1532,6 @@ static void wil_pre_fw_config(struct wil6210_priv *wil)
        if (wil->hw_version < HW_VER_TALYN_MB) {
                wil_s(wil, RGF_CAF_ICR + offsetof(struct RGF_ICR, ICR), 0);
                wil_w(wil, RGF_CAF_ICR + offsetof(struct RGF_ICR, IMV), ~0);
-       } else {
-               wil_s(wil,
-                     RGF_CAF_ICR_TALYN_MB + offsetof(struct RGF_ICR, ICR), 0);
-               wil_w(wil, RGF_CAF_ICR_TALYN_MB +
-                     offsetof(struct RGF_ICR, IMV), ~0);
        }
        /* clear PAL_UNIT_ICR (potential D0->D3 leftover)
         * In Talyn-MB host cannot access this register due to