]> git.baikalelectronics.ru Git - kernel.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:23:29 +0000 (14:23 +0200)
commit86c54e2ff0ee425f7facd7aff0bea62b7486f64d
tree3f3db42cddffbe593857664dcf9be6b8427dbe09
parent13576769273de83960b02ffb4f66680822b61fe8
mt76: mt7615: do not update pm stats in case of error

[ Upstream commit f7915064e04759da35ef2a752747df294a4c2f50 ]

Do not update pm stats if mt7615_mcu_fw_pmctrl returns an error.

Fixes: 2d4e403d682f8 ("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