Skip to content

Commit 7086d86

Browse files
Dedy Lanskykvalo
authored andcommitted
wil6210: clear PAL_UNIT_ICR part of device reset
When FW starts running it can get D0 to D3 interrupt that is a leftover from previous system suspend while FW was not running. As this interrupt is not relevant anymore, clear it part of device reset procedure. Signed-off-by: Dedy Lansky <[email protected]> Signed-off-by: Maya Erez <[email protected]> Signed-off-by: Kalle Valo <[email protected]>
1 parent 1490846 commit 7086d86

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

drivers/net/wireless/ath/wil6210/main.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -943,6 +943,8 @@ static void wil_pre_fw_config(struct wil6210_priv *wil)
943943
/* it is W1C, clear by writing back same value */
944944
wil_s(wil, RGF_CAF_ICR + offsetof(struct RGF_ICR, ICR), 0);
945945
wil_w(wil, RGF_CAF_ICR + offsetof(struct RGF_ICR, IMV), ~0);
946+
/* clear PAL_UNIT_ICR (potential D0->D3 leftover) */
947+
wil_s(wil, RGF_PAL_UNIT_ICR + offsetof(struct RGF_ICR, ICR), 0);
946948

947949
if (wil->fw_calib_result > 0) {
948950
__le32 val = cpu_to_le32(wil->fw_calib_result |

drivers/net/wireless/ath/wil6210/wil6210.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,7 @@ struct RGF_ICR {
268268
#define BIT_DMA_PSEUDO_CAUSE_MISC BIT(2)
269269

270270
#define RGF_HP_CTRL (0x88265c)
271+
#define RGF_PAL_UNIT_ICR (0x88266c) /* struct RGF_ICR */
271272
#define RGF_PCIE_LOS_COUNTER_CTL (0x882dc4)
272273

273274
/* MAC timer, usec, for packet lifetime */

0 commit comments

Comments
 (0)