]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit79b7e6faec13c567f65ce7f17a2ab9684f57f5f2
treed2a2b95cc597daf25134f49f08a6c98e389632bd
parent82a0eea4799a835a0cf02f0b06559280e55bc97f
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