Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 60c76cba authored by Jes Sorensen's avatar Jes Sorensen Committed by Kalle Valo
Browse files

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: default avatarJes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent fa0f2d48
Loading
Loading
Loading
Loading
+0 −14
Original line number Diff line number Diff line
@@ -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);
+0 −3
Original line number Diff line number Diff line
@@ -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;