]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: phy: broadcom: Save PHY counters during suspend
authorJustin Chen <justin.chen@broadcom.com>
Tue, 5 May 2026 17:39:26 +0000 (10:39 -0700)
committerJakub Kicinski <kuba@kernel.org>
Thu, 7 May 2026 15:36:47 +0000 (08:36 -0700)
commit32cd651d14fc72a93703ea2384cb5cd8998523a8
tree041c5e83ffbe44bf298d0907759f2b33d7653fbe
parent9032f7676935a13fd402608223d326c5f62da9c0
net: phy: broadcom: Save PHY counters during suspend

The PHY counters can be lost if the PHY is reset during suspend. We
need to save the values into the shadow counters or the accounting
will be incorrect over multiple suspend and resume cycles.

Fixes: 820ee17b8d3b ("net: phy: broadcom: Add support code for reading PHY counters")
Signed-off-by: Justin Chen <justin.chen@broadcom.com>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Link: https://patch.msgid.link/20260505173926.2870069-1-justin.chen@broadcom.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/bcm-phy-lib.c
drivers/net/phy/bcm-phy-lib.h
drivers/net/phy/bcm7xxx.c
drivers/net/phy/broadcom.c