net: stmmac: skip only stmmac_ptp_register when resume from suspend
authorMohammad Athari Bin Ismail <mohammad.athari.ismail@intel.com>
Wed, 26 Jan 2022 09:47:23 +0000 (17:47 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 27 Jan 2022 13:45:56 +0000 (13:45 +0000)
commit0735e639f129dff455aeb91da291f5c578cc33db
tree3b3f5867e3d383b3658cb05fa3d61869d42c1184
parent94c82de43e01ef5747a95e4a590880de863fe423
net: stmmac: skip only stmmac_ptp_register when resume from suspend

When resume from suspend, besides skipping PTP registration, it also
skipping PTP HW initialization. This could cause PTP clock not able to
operate properly when resume from suspend.

To fix this, only stmmac_ptp_register() is skipped when resume from
suspend.

Fixes: fe1319291150 ("stmmac: Don't init ptp again when resume from suspend/hibernation")
Cc: <stable@vger.kernel.org> # 5.15.x
Signed-off-by: Mohammad Athari Bin Ismail <mohammad.athari.ismail@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c