]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit - drivers/net/ethernet/smsc/smsc911x.c
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)
commit3a611e26e958b0372d2e7600b87bbb4a84c7704b
tree7cc0c1159e3852d4f54b9ec1e47930fb62bb1f07
parent4f0372150b1fbf2167cfe21d2e6eac1933fb36ac
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