]> git.baikalelectronics.ru Git - kernel.git/commit
net/smsc911x: Add minimal runtime PM support
authorGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 24 Nov 2014 18:58:17 +0000 (19:58 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 Nov 2014 21:41:50 +0000 (16:41 -0500)
commitbe2f8581f0b347068f7f61cc062a4312a3c35870
tree7cc0c1159e3852d4f54b9ec1e47930fb62bb1f07
parente4d4b0e4f84be7d216e60c15a609a2f8aadb5315
net/smsc911x: Add minimal runtime PM support

Add minimal runtime PM support (enable on probe, disable on remove), to
ensure proper operation with a parent device that uses runtime PM.

This is needed on systems where the external bus controller module of
the SoC is contained in a PM domain and/or has a gateable functional
clock. In such cases, before accessing any device connected to the
external bus, the PM domain must be powered up, and/or the functional
clock must be enabled, which is typically handled through runtime PM by
the bus controller driver.

An example of this is the kzm9g development board, where an smsc9220
Ethernet controller is connected to the Bus State Controller (BSC) of a
Renesas sh73a0 SoC.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/smsc/smsc911x.c