]> git.baikalelectronics.ru Git - kernel.git/commit
net: stmmac: socfpga: add runtime suspend/resume callback for stratix10 platform
authorMeng Li <meng.li@windriver.com>
Mon, 15 Nov 2021 07:04:23 +0000 (15:04 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 15 Nov 2021 14:20:42 +0000 (14:20 +0000)
commit3fd14502aa53839a5fbbc0859c099adf3062412b
tree48a8943c2b67aa91529b0a78a0f4cf5e701739f3
parenta99e3683388b16a23d6bda4fd02fc4c466da3c4b
net: stmmac: socfpga: add runtime suspend/resume callback for stratix10 platform

According to upstream commit 65c2abbd9258("net: stmmac:
add clocks management for gmac driver"), it improve clocks
management for stmmac driver. So, it is necessary to implement
the runtime callback in dwmac-socfpga driver because it doesn't
use the common stmmac_pltfr_pm_ops instance. Otherwise, clocks
are not disabled when system enters suspend status.

Fixes: 65c2abbd9258 ("net: stmmac: add clocks management for gmac driver")
Cc: stable@vger.kernel.org
Signed-off-by: Meng Li <Meng.Li@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c