rtl8xxxu: Remove backing up certain registers, which was never used
This was inspired by the vendor driver, but in the end never used for anything. Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:
parent
fa0f2d481d
commit
60c76cbadb
@ -5815,20 +5815,6 @@ static int rtl8xxxu_init_device(struct ieee80211_hw *hw)
|
||||
/* Init BT hw config. */
|
||||
rtl8xxxu_init_bt(priv);
|
||||
|
||||
/*
|
||||
* Not sure if we really need to save these parameters, but the
|
||||
* vendor driver does
|
||||
*/
|
||||
val32 = rtl8xxxu_read32(priv, REG_FPGA0_XA_HSSI_PARM2);
|
||||
if (val32 & FPGA0_HSSI_PARM2_CCK_HIGH_PWR)
|
||||
priv->path_a_hi_power = 1;
|
||||
|
||||
val32 = rtl8xxxu_read32(priv, REG_OFDM0_TRX_PATH_ENABLE);
|
||||
priv->path_a_rf_paths = val32 & OFDM_RF_PATH_RX_MASK;
|
||||
|
||||
val32 = rtl8xxxu_read32(priv, REG_OFDM0_XA_AGC_CORE1);
|
||||
priv->path_a_ig_value = val32 & OFDM0_X_AGC_CORE1_IGI_MASK;
|
||||
|
||||
/* Set NAV_UPPER to 30000us */
|
||||
val8 = ((30000 + NAV_UPPER_UNIT - 1) / NAV_UPPER_UNIT);
|
||||
rtl8xxxu_write8(priv, REG_NAV_UPPER, val8);
|
||||
|
@ -785,13 +785,10 @@ struct rtl8xxxu_priv {
|
||||
u32 ep_tx_high_queue:1;
|
||||
u32 ep_tx_normal_queue:1;
|
||||
u32 ep_tx_low_queue:1;
|
||||
u32 path_a_hi_power:1;
|
||||
u32 path_a_rf_paths:4;
|
||||
unsigned int pipe_interrupt;
|
||||
unsigned int pipe_in;
|
||||
unsigned int pipe_out[TXDESC_QUEUE_MAX];
|
||||
u8 out_ep[RTL8XXXU_OUT_ENDPOINTS];
|
||||
u8 path_a_ig_value;
|
||||
u8 ep_tx_count;
|
||||
u8 rf_paths;
|
||||
u8 rx_paths;
|
||||
|
Loading…
Reference in New Issue
Block a user