Commit b87212ce authored by Jes Sorensen's avatar Jes Sorensen Committed by Kalle Valo

rtl8xxxu: Do not set FPGA0_TX_INFO for 8723bu and use a larger PBP page size

The vendor driver does not set FPGA0_TX_INFO here. In additiona the
8723bu can handler a larger PBP page size.
Signed-off-by: default avatarJes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent 1f1b20f1
...@@ -6165,6 +6165,7 @@ static int rtl8xxxu_init_device(struct ieee80211_hw *hw) ...@@ -6165,6 +6165,7 @@ static int rtl8xxxu_init_device(struct ieee80211_hw *hw)
goto exit; goto exit;
/* RFSW Control - clear bit 14 ?? */ /* RFSW Control - clear bit 14 ?? */
if (priv->rtlchip != 0x8723b)
rtl8xxxu_write32(priv, REG_FPGA0_TX_INFO, 0x00000003); rtl8xxxu_write32(priv, REG_FPGA0_TX_INFO, 0x00000003);
/* 0x07000760 */ /* 0x07000760 */
val32 = FPGA0_RF_TRSW | FPGA0_RF_TRSWB | FPGA0_RF_ANTSW | val32 = FPGA0_RF_TRSW | FPGA0_RF_TRSWB | FPGA0_RF_ANTSW |
...@@ -6185,6 +6186,10 @@ static int rtl8xxxu_init_device(struct ieee80211_hw *hw) ...@@ -6185,6 +6186,10 @@ static int rtl8xxxu_init_device(struct ieee80211_hw *hw)
/* /*
* Transfer page size is always 128 * Transfer page size is always 128
*/ */
if (priv->rtlchip == 0x8723b)
val8 = (PBP_PAGE_SIZE_256 << PBP_PAGE_SIZE_RX_SHIFT) |
(PBP_PAGE_SIZE_256 << PBP_PAGE_SIZE_TX_SHIFT);
else
val8 = (PBP_PAGE_SIZE_128 << PBP_PAGE_SIZE_RX_SHIFT) | val8 = (PBP_PAGE_SIZE_128 << PBP_PAGE_SIZE_RX_SHIFT) |
(PBP_PAGE_SIZE_128 << PBP_PAGE_SIZE_TX_SHIFT); (PBP_PAGE_SIZE_128 << PBP_PAGE_SIZE_TX_SHIFT);
rtl8xxxu_write8(priv, REG_PBP, val8); rtl8xxxu_write8(priv, REG_PBP, val8);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment