]> 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)
commitee0bc2ede711fee82cd1a840452f3de500053b0c
treeebd878f304a29a25f3b00e9dd1096b9a5d7380be
parente51f9b5cf85faf54168d335d78fb3719ae9088f4
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