mt76: mt7915: fix possible deadlock in mt7915_stop
authorRyder Lee <ryder.lee@mediatek.com>
Mon, 11 May 2020 16:06:38 +0000 (00:06 +0800)
committerFelix Fietkau <nbd@nbd.name>
Tue, 12 May 2020 17:52:37 +0000 (19:52 +0200)
commit57b9df6fa5f56b98baa73f62ed92db81db3de391
treed140154fddf5c0fa914fb16adb01299762990024
parent3e68af622254bad75f5989c39663fd12a8efeddd
mt76: mt7915: fix possible deadlock in mt7915_stop

make mac_work per phy instead of per device and fix a possible deadlock
in mt7915_stop since mt7915_mac_work runs holding mt76 mutex

Signed-off-by: Ryder Lee <ryder.lee@mediatek.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7915/init.c
drivers/net/wireless/mediatek/mt76/mt7915/mac.c
drivers/net/wireless/mediatek/mt76/mt7915/main.c
drivers/net/wireless/mediatek/mt76/mt7915/mt7915.h