OSDN Git Service

mt76x2: disable WLAN core before probe
authorFelix Fietkau <nbd@nbd.name>
Wed, 26 Sep 2018 19:37:38 +0000 (21:37 +0200)
committerFelix Fietkau <nbd@nbd.name>
Mon, 1 Oct 2018 10:34:16 +0000 (12:34 +0200)
commit62e04f8a31fcc375c978b7f83b4229a10c3e746d
treeb1c3b27a3cdd0ee91d2a3c6ebe233e5c5ef43f3a
parentd6500cf3700f169cee63135a01808f6e75df3064
mt76x2: disable WLAN core before probe

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>
drivers/net/wireless/mediatek/mt76/mt76x2_init_common.c
drivers/net/wireless/mediatek/mt76/mt76x2_pci.c