]> git.baikalelectronics.ru Git - kernel.git/commit
mt76: mt7921: do not update pm states in case of error
authorLorenzo Bianconi <lorenzo@kernel.org>
Mon, 13 Jun 2022 12:07:08 +0000 (14:07 +0200)
committerFelix Fietkau <nbd@nbd.name>
Mon, 11 Jul 2022 11:40:02 +0000 (13:40 +0200)
commit3320de99580f478dfe0057c943278b40133346d5
tree151245400b53b7c0a1d9d3d9219ea5dbbb9b4890
parentf7915064e04759da35ef2a752747df294a4c2f50
mt76: mt7921: do not update pm states in case of error

Do not update pm stats if mt7921e_mcu_fw_pmctrl routine returns an
error.

Fixes: da35616d34247 ("mt76: mt7921: add awake and doze time accounting")
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7921/pci_mcu.c