]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
committerAndrea Righi <andrea.righi@canonical.com>
Tue, 4 Jan 2022 08:48:53 +0000 (09:48 +0100)
commitf55c9b6883266cba369748ea7768670f8817e1e9
tree002d04c8e9615d9fbb4c8292f1625d8f7233175e
parent501aae1d22c53125c0b7961529258be62874eb96
net: stmmac: socfpga: add runtime suspend/resume callback for stratix10 platform

BugLink: https://bugs.launchpad.net/bugs/1952579
commit 9119570039481d56350af1c636f040fb300b8cf3 upstream.

According to upstream commit 5ec55823438e("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: 5ec55823438e ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c