summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/mediatek/mt76/Makefile
diff options
context:
space:
mode:
authorLorenzo Bianconi <lorenzo@kernel.org>2019-10-27 20:53:08 +0100
committerKalle Valo <kvalo@codeaurora.org>2019-10-30 15:59:46 +0100
commitf37f05503575c59020dacd36e999f4e8b3dbc115 (patch)
tree2984b7e1df447180642c0d7254a976a3ebb37203 /drivers/net/wireless/mediatek/mt76/Makefile
parentrtlwifi: rtl_pci: Fix problem of too small skb->len (diff)
downloadlinux-f37f05503575c59020dacd36e999f4e8b3dbc115.tar.xz
linux-f37f05503575c59020dacd36e999f4e8b3dbc115.zip
mt76: mt76x2e: disable pcie_aspm by default
On same device (e.g. U7612E-H1) PCIE_ASPM causes continuous mcu hangs and instability. Since mt76x2 series does not manage PCIE PS states, first we try to disable ASPM using pci_disable_link_state. If it fails, we will disable PCIE PS configuring PCI registers. This patch has been successfully tested on U7612E-H1 mini-pice card Tested-by: Oleksandr Natalenko <oleksandr@natalenko.name> Signed-off-by: Felix Fietkau <nbd@nbd.name> Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/mediatek/mt76/Makefile')
-rw-r--r--drivers/net/wireless/mediatek/mt76/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/mediatek/mt76/Makefile b/drivers/net/wireless/mediatek/mt76/Makefile
index 4d03596e891f..d7a1ddc9e407 100644
--- a/drivers/net/wireless/mediatek/mt76/Makefile
+++ b/drivers/net/wireless/mediatek/mt76/Makefile
@@ -8,6 +8,8 @@ mt76-y := \
mmio.o util.o trace.o dma.o mac80211.o debugfs.o eeprom.o \
tx.o agg-rx.o mcu.o
+mt76-$(CONFIG_PCI) += pci.o
+
mt76-usb-y := usb.o usb_trace.o
CFLAGS_trace.o := -I$(src)