rtw88: pci: enable MSI interrupt
authorYu-Yen Ting <steventing@realtek.com>
Tue, 3 Sep 2019 09:14:07 +0000 (17:14 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 3 Sep 2019 13:36:43 +0000 (16:36 +0300)
commit79066903454b0fec2f0da87d1499aad227cc1a47
treee1f067df475dea4c97e1036ec1d29712380cf7bf
parentb3d07736b30ab542e83c394922b7a51e40a312e6
rtw88: pci: enable MSI interrupt

MSI interrupt should be enabled on certain platform.

Add a module parameter disable_msi to disable MSI interrupt,
driver will then use legacy interrupt instead.

One could rebind the PCI device, probe() will pick up the
new value of the module parameter. Such as:

    echo '0000:01:00.0' > /sys/bus/pci/drivers/rtw_pci/unbind
    echo '0000:01:00.0' > /sys/bus/pci/drivers/rtw_pci/bind

Tested-by: Ján Veselý <jano.vesely@gmail.com>
Reviewed-by: Brian Norris <briannorris@chromium.org>
Reviewed-by: Daniel Drake <drake@endlessm.com>
Signed-off-by: Yu-Yen Ting <steventing@realtek.com>
Signed-off-by: Yan-Hsuan Chuang <yhchuang@realtek.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtw88/pci.c