[PATCH 1/2] mt76: mt7921: add mt7921_mutex_acquire at mt7921_[start, stop]_ap
AngeloGioacchino Del Regno
angelogioacchino.delregno at collabora.com
Mon Jul 25 03:44:48 PDT 2022
Il 24/07/22 10:58, sean.wang at mediatek.com ha scritto:
> From: Sean Wang <sean.wang at mediatek.com>
>
> Add mt7921_mutex_acquire at mt7921_[start, stop]_ap to fix the race
> with the context holding dev->muxtex and the driver might access the
> device in low power state.
>
> Fixes: 9d958b60ebc2 ("mt76: mt7921: fix command timeout in AP stop period")
> Signed-off-by: Sean Wang <sean.wang at mediatek.com>
Tested-by: AngeloGioacchino Del Regno <angelogioacchino.delregno at collabora.com>
(P.S.: I agree with Lorenzo's nits.)
More information about the Linux-mediatek
mailing list