lkml.org 
[lkml]   [2020]   [Oct]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 5.8 025/633] r8169: fix data corruption issue on RTL8402
    Date
    From: Heiner Kallweit <hkallweit1@gmail.com>

    [ Upstream commit ef9da46ddef071e1bbb943afbbe9b38771855554 ]

    Petr reported that after resume from suspend RTL8402 partially
    truncates incoming packets, and re-initializing register RxConfig
    before the actual chip re-initialization sequence is needed to avoid
    the issue.

    Reported-by: Petr Tesarik <ptesarik@suse.cz>
    Proposed-by: Petr Tesarik <ptesarik@suse.cz>
    Tested-by: Petr Tesarik <ptesarik@suse.cz>
    Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    ---
    drivers/net/ethernet/realtek/r8169_main.c | 4 ++++
    1 file changed, 4 insertions(+)

    --- a/drivers/net/ethernet/realtek/r8169_main.c
    +++ b/drivers/net/ethernet/realtek/r8169_main.c
    @@ -4871,6 +4871,10 @@ static int __maybe_unused rtl8169_resume
    if (netif_running(tp->dev))
    __rtl8169_resume(tp);

    + /* Reportedly at least Asus X453MA truncates packets otherwise */
    + if (tp->mac_version == RTL_GIGA_MAC_VER_37)
    + rtl_init_rxcfg(tp);
    +
    return 0;
    }


    \
     
     \ /
      Last update: 2020-10-27 15:50    [W:4.016 / U:0.288 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site