]> 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)
commit8714d5dde1aba0726b0c322ef74f10b3101a1c85
tree7cc0c1159e3852d4f54b9ec1e47930fb62bb1f07
parent1456e8c1e73d212a49834f72a4c738a04e431b95
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