]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6367160af42f80093c05decb5f0f197834065d48
tree0e85621d42a456da5cfd767d7bd57d0b855e6ff6
parent87d9c4cd5ee5224dd568b89ad51faf724643485a
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