rtl8xxxu: Init REG_HIMR[01] for 8192eu parts
authorJes Sorensen <Jes.Sorensen@redhat.com>
Mon, 29 Feb 2016 22:04:09 +0000 (17:04 -0500)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 10 Mar 2016 13:28:55 +0000 (15:28 +0200)
The newer generation chips have different interrupt registers.
Initialize this correct registers on 8192eu.

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.c
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_regs.h

index b6d8014b83354a933fff0f7198544aaae68d9791..e4d81277a3b08a51cdcb155ce096d7be3dbcab12 100644 (file)
@@ -4366,6 +4366,9 @@ static int rtl8xxxu_init_device(struct ieee80211_hw *hw)
                val32 = rtl8xxxu_read32(priv, REG_TXDMA_OFFSET_CHK);
                val32 |= TXDMA_OFFSET_DROP_DATA_EN;
                rtl8xxxu_write32(priv, REG_TXDMA_OFFSET_CHK, val32);
+
+               rtl8xxxu_write32(priv, REG_HIMR0, 0x00);
+               rtl8xxxu_write32(priv, REG_HIMR1, 0x00);
        }
 
        ret = rtl8xxxu_init_mac(priv, rtl8723a_mac_init_table);
index 226a1fa7d8b9af9300f60c7678b4d42d2f237c28..3cbb54956e79567b097b3ce3acf9a44d6d686d85 100644 (file)
 #define REG_HMBOX_EXT_1                        0x008a
 #define REG_HMBOX_EXT_2                        0x008c
 #define REG_HMBOX_EXT_3                        0x008e
+/* Interrupt registers for 8192e/8812 */
+#define REG_HIMR0                      0x00b0
+#define REG_HIMR1                      0x00b8
+
 /*  Host suspend counter on FPGA platform */
 #define REG_HOST_SUSP_CNT              0x00bc
 /*  Efuse access protection for RTL8723 */