mt76: mt7615: fix possible deadlock while mt7615_register_ext_phy()
authorPeter Chiu <chui-hao.chiu@mediatek.com>
Mon, 1 Nov 2021 02:01:13 +0000 (10:01 +0800)
committerFelix Fietkau <nbd@nbd.name>
Sat, 18 Dec 2021 10:47:57 +0000 (11:47 +0100)
commit8c55516de3f9b76b9d9444e7890682ec2efc809f
tree0e85621d42a456da5cfd767d7bd57d0b855e6ff6
parent2363b6a646b65a207345b9a9024dff0eff3fec44
mt76: mt7615: fix possible deadlock while mt7615_register_ext_phy()

ieee80211_register_hw() is called with rtnl_lock held, and this could be
caused lockdep from a work item that's on a workqueue that is flushed
with the rtnl held.

Move mt7615_register_ext_phy() outside the init_work().

Signed-off-by: Peter Chiu <chui-hao.chiu@mediatek.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7615/pci_init.c