mt76: mt7921: enable aspm by default
authorSean Wang <sean.wang@mediatek.com>
Sun, 20 Jun 2021 07:48:06 +0000 (15:48 +0800)
committerFelix Fietkau <nbd@nbd.name>
Wed, 20 Oct 2021 08:36:24 +0000 (10:36 +0200)
commitbf3747ae2e25dda6a9e6c464a717c66118c588c8
treec2aac11937766d68aa3539aa12006b58024ed920
parentd741abeafa47a7331cd4fe526e44db4ad3da0f62
mt76: mt7921: enable aspm by default

mt7921 is mainly used in NB, CE and IoT application where battery life is
much concerned so the patch enabled PCIe ASPM by default to shut off the
clocks related PCIe as much as possible when MT7921 is either in suspend
state or in runtime pm to lower power consumption.

We still leave disable aspm as an option with module_param for users to
disable ASPM if necessary.

Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7921/pci.c