]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mt76: mt7615: do not update pm stats in case of error
authorLorenzo Bianconi <lorenzo@kernel.org>
Mon, 13 Jun 2022 12:03:28 +0000 (14:03 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Aug 2022 12:41:03 +0000 (14:41 +0200)
commit65240e13833806b01c79b9cad53d71439f432ea3
treeb073a1c8d643389e8ae240044177305e63ef957f
parentcdca056096ec8917709bfce8ce9882293d26f39f
mt76: mt7615: do not update pm stats in case of error

[ Upstream commit 79717c4eeeae9dec894794fbe8af72f08f03ebdd ]

Do not update pm stats if mt7615_mcu_fw_pmctrl returns an error.

Fixes: abe912ae3cd42 ("mt76: mt7663: add awake and doze time accounting")
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/mediatek/mt76/mt7615/mcu.c