summaryrefslogtreecommitdiff
path: root/drivers/sbus
diff options
context:
space:
mode:
authorBiao Huang <biao.huang@mediatek.com>2022-07-14 09:00:14 +0300
committerDavid S. Miller <davem@davemloft.net>2022-07-15 14:06:56 +0300
commitf4c7d8948e866918d61493264dbbd67e45ef2bda (patch)
tree0c2d8b2e1ea8a6e6aa5763bd0526613e5782641b /drivers/sbus
parent0d9a15913b871e03fdd3b3d90a2e665fb22f9bcf (diff)
downloadlinux-f4c7d8948e866918d61493264dbbd67e45ef2bda.tar.xz
net: stmmac: fix unbalanced ptp clock issue in suspend/resume flow
Current stmmac driver will prepare/enable ptp_ref clock in stmmac_init_tstamp_counter(). The stmmac_pltfr_noirq_suspend will disable it once in suspend flow. But in resume flow, stmmac_pltfr_noirq_resume --> stmmac_init_tstamp_counter stmmac_resume --> stmmac_hw_setup --> stmmac_init_ptp --> stmmac_init_tstamp_counter ptp_ref clock reference counter increases twice, which leads to unbalance ptp clock when resume back. Move ptp_ref clock prepare/enable out of stmmac_init_tstamp_counter to fix it. Fixes: 0735e639f129d ("net: stmmac: skip only stmmac_ptp_register when resume from suspend") Signed-off-by: Biao Huang <biao.huang@mediatek.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/sbus')
0 files changed, 0 insertions, 0 deletions