]> git.karo-electronics.de Git - linux-beck.git/commitdiff
rtl8xxxu: Remove backing up certain registers, which was never used
authorJes Sorensen <Jes.Sorensen@redhat.com>
Mon, 29 Feb 2016 22:04:38 +0000 (17:04 -0500)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 10 Mar 2016 13:29:02 +0000 (15:29 +0200)
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>
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.c
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.h

index 62537bd824a5fab7be24e253bf0985dd4211e9d7..4579a3ea07c15db1f29b51e67418eec89b2354e9 100644 (file)
@@ -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);
index 4a974a698dccd6d69ab8055a30ecca48ba1da158..7b76e11519a65d58b1a7d76341ff8cc31873b451 100644 (file)
@@ -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;