]> git.baikalelectronics.ru Git - kernel.git/commit
net: smsc911x: Make Runtime PM handling more fine-grained
authorGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 18 Jan 2021 15:08:57 +0000 (16:08 +0100)
committerJakub Kicinski <kuba@kernel.org>
Wed, 20 Jan 2021 01:46:39 +0000 (17:46 -0800)
commite6d163eb1df6fb0c9a53cae2e7dee3fb67adcc22
tree35310a05210026261bce6be518b4835813d18579
parent040951dce001d0834afba430fbd53297320c0adf
net: smsc911x: Make Runtime PM handling more fine-grained

Currently the smsc911x driver has mininal power management: during
driver probe, the device is powered up, and during driver remove, it is
powered down.

Improve power management by making it more fine-grained:
  1. Power the device down when driver probe is finished,
  2. Power the device (down) when it is opened (closed),
  3. Make sure the device is powered during PHY access.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/20210118150857.796943-1-geert+renesas@glider.be
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/smsc/smsc911x.c