]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf0d84872700477eb50b025aba552208a0392762f
tree3b3f5867e3d383b3658cb05fa3d61869d42c1184
parentd15c77f098d70b33134aa916ba4ff082952d6420
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: 6b7876156fc9 ("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