mt76x2: disable WLAN core before probe
authorFelix Fietkau <nbd@nbd.name>
Wed, 26 Sep 2018 19:37:38 +0000 (21:37 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 24 Nov 2019 07:19:29 +0000 (08:19 +0100)
commitddb4299f1d78a258254ead08c97d397665c94c2f
tree3b8b5db083c93ba9daf5fe89aec1abafde4254dc
parentb14825a5c652fbf9a825de43ddee3fd3be53ac94
mt76x2: disable WLAN core before probe

[ Upstream commit 62e04f8a31fcc375c978b7f83b4229a10c3e746d ]

If the WLAN core is still active during initialization, it might cause
the MCU or DMA to hang. This can happen during soft reboot, so disable
the core + clock early to avoid this issue.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/mediatek/mt76/mt76x2_init_common.c
drivers/net/wireless/mediatek/mt76/mt76x2_pci.c