lkml.org 
[lkml]   [2016]   [Nov]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 4.8 090/138] rtl8xxxu: Fix rtl8723bu driver reload issue
    Date
    4.8-stable review patch.  If anyone has any objections, please let me know.

    ------------------

    From: Jes Sorensen <Jes.Sorensen@redhat.com>

    commit ab05e5ec81c76f3a852919c22984c885edd2414a upstream.

    The generic disable_rf() function clears bits 22 and 23 in
    REG_RX_WAIT_CCA, however we did not re-enable them again in
    rtl8723b_enable_rf()

    This resolves the problem for me with 8723bu devices not working again
    after reloading the driver.

    Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
    Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

    ---
    drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8723b.c | 4 ++++
    1 file changed, 4 insertions(+)

    --- a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8723b.c
    +++ b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8723b.c
    @@ -1498,6 +1498,10 @@ static void rtl8723b_enable_rf(struct rt
    u32 val32;
    u8 val8;

    + val32 = rtl8xxxu_read32(priv, REG_RX_WAIT_CCA);
    + val32 |= (BIT(22) | BIT(23));
    + rtl8xxxu_write32(priv, REG_RX_WAIT_CCA, val32);
    +
    /*
    * No indication anywhere as to what 0x0790 does. The 2 antenna
    * vendor code preserves bits 6-7 here.

    \
     
     \ /
      Last update: 2016-11-09 12:25    [W:4.143 / U:1.040 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site