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)
commitda970726ea872269dc311b6dd87af8cf457b8fe9
treeebd878f304a29a25f3b00e9dd1096b9a5d7380be
parent8a26a9dee5e3679637edc6f8caf4beb5f3100dde
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