]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit - drivers/net/ethernet/realtek/r8169.c
r8169: improve phy initialization when resuming
authorHeiner Kallweit <hkallweit1@gmail.com>
Sun, 24 Jun 2018 16:37:36 +0000 (18:37 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 25 Jun 2018 07:21:51 +0000 (16:21 +0900)
commit92bad8509159b2377b40fe91a6b37f1b4cb63569
treed2a2b95cc597daf25134f49f08a6c98e389632bd
parent064f390265be42763e804f742b1d920e4e997ddb
r8169: improve phy initialization when resuming

Let's move calling rtl8169_init_phy() to __rtl8169_resume().
It simplifies the code and avoids rtl8169_init_phy() being called
when resuming whilst interface is down. rtl_open() will initialize
the PHY when the interface is brought up.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/realtek/r8169.c