Skip to content

Commit

Permalink
rtl8xxxu: Set REG_USB_HRPWM for 8192eu
Browse files Browse the repository at this point in the history
The vendor driver set register 0xfe58 REG_USB_HWPWM in it's init
sequence for 8192eu. Do the same here.

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
  • Loading branch information
Jes Sorensen authored and Kalle Valo committed Apr 14, 2016
1 parent 57e5e2e commit 3021e51
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.c
Original file line number Diff line number Diff line change
Expand Up @@ -7225,6 +7225,8 @@ static int rtl8xxxu_init_device(struct ieee80211_hw *hw)
val32 |= FPGA_RF_MODE_CCK;
rtl8xxxu_write32(priv, REG_FPGA0_RF_MODE, val32);
}
} else if (priv->rtl_chip == RTL8192E) {
rtl8xxxu_write8(priv, REG_USB_HRPWM, 0x00);
}

val32 = rtl8xxxu_read32(priv, REG_FWHW_TXQ_CTRL);
Expand Down
1 change: 1 addition & 0 deletions drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_regs.h
Original file line number Diff line number Diff line change
Expand Up @@ -1043,6 +1043,7 @@
#define USB_HIMR_ROK BIT(0) /* Receive DMA OK Interrupt */

#define REG_USB_SPECIAL_OPTION 0xfe55
#define REG_USB_HRPWM 0xfe58
#define REG_USB_DMA_AGG_TO 0xfe5b
#define REG_USB_AGG_TO 0xfe5c
#define REG_USB_AGG_TH 0xfe5d
Expand Down

0 comments on commit 3021e51

Please sign in to comment.