]> git.baikalelectronics.ru Git - kernel.git/commit
r8169: fix jumbo packet handling on resume from suspend
authorHeiner Kallweit <hkallweit1@gmail.com>
Wed, 9 Oct 2019 18:55:48 +0000 (20:55 +0200)
committerJakub Kicinski <jakub.kicinski@netronome.com>
Thu, 10 Oct 2019 23:25:46 +0000 (16:25 -0700)
commite73a3aa5842dd1f80d41d93a30444b58adc0e7bb
tree3fa941d80e907c8249889324bdc393a753d12574
parentce9b9d56e4ab1d729b019b1fb500a513fba338f0
r8169: fix jumbo packet handling on resume from suspend

Mariusz reported that invalid packets are sent after resume from
suspend if jumbo packets are active. It turned out that his BIOS
resets chip settings to non-jumbo on resume. Most chip settings are
re-initialized on resume from suspend by calling rtl_hw_start(),
so let's add configuring jumbo to this function.
There's nothing wrong with the commit marked as fixed, it's just
the first one where the patch applies cleanly.

Fixes: fb012742a953 ("r8169: read common register for PCI commit")
Reported-by: Mariusz Bialonczyk <manio@skyboo.net>
Tested-by: Mariusz Bialonczyk <manio@skyboo.net>
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
drivers/net/ethernet/realtek/r8169_main.c