]> git.baikalelectronics.ru Git - kernel.git/commit
net: fec: add pm runtime force suspend and resume support
authorWei Fang <wei.fang@nxp.com>
Tue, 6 Sep 2022 08:39:23 +0000 (16:39 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 16 Sep 2022 08:23:21 +0000 (09:23 +0100)
commitb6daad2362713e4a77882f20b1a03ec27640e7c1
treeebd878f304a29a25f3b00e9dd1096b9a5d7380be
parent85a0764a2e9e0a8334b04826b16952adc958961c
net: fec: add pm runtime force suspend and resume support

Force mii bus into runtime pm suspend state during device suspends,
since phydev state is already PHY_HALTED, and there is no need to
access mii bus during device suspend state. Then force mii bus into
runtime pm resume state when device resumes.

Signed-off-by: Wei Fang <wei.fang@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/fec.h
drivers/net/ethernet/freescale/fec_main.c