r8169: power down chip in probe
authorHeiner Kallweit <hkallweit1@gmail.com>
Tue, 17 Jul 2018 19:21:37 +0000 (21:21 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Jul 2018 01:03:35 +0000 (10:03 +0900)
commit07df5bd874f05fbbe694b75df12694f51c344311
treeec2c8cae09f1c661d2f0e1aa8bd0110af9522caf
parentfd3d96ae49c31088704501343463f6ee74d32314
r8169: power down chip in probe

The removed code would be called in two situations:
1. interface is brought up never or >10s after driver load
2. after close()

Case 1 we can handle cleaner by ensuring chip is powered down when
leaving probe(). open() callback will power up the chip.

In case 2 we call rtl_pll_power_down() twice currently, from the
close() callback and 10s later when entering runtime-suspend.
This is avoided by this patch.

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