]> git.baikalelectronics.ru Git - kernel.git/commit
wifi: mt76: sdio: poll sta stat when device transmits data
authorSean Wang <sean.wang@mediatek.com>
Thu, 21 Jul 2022 22:39:36 +0000 (06:39 +0800)
committerFelix Fietkau <nbd@nbd.name>
Thu, 15 Sep 2022 10:53:58 +0000 (12:53 +0200)
commitb3c2653e37ce664daedfc0294c54adf738c8a04d
treeb36229a34903c6779ca8079943d8055b012a07e9
parent730048e8001966e40b8f6765bb435df953addcca
wifi: mt76: sdio: poll sta stat when device transmits data

It is not meaningful to poll sta stat when there is no data traffic.
So polling sta stat when the device has transmitted data instead to save
CPU power.

That implies that it is unallowed the stat_work to work while MCU is being
initialized in the really early stage to fix the possible time to time MCU
initialization failure.

Fixes: 1372bb85e38f ("mt76: introduce mt76_sdio module")
Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/sdio.c