diff options
author | Adam Lee <adam.lee@canonical.com> | 2014-05-05 04:33:37 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2014-05-13 15:56:32 -0400 |
commit | 3513d0043c2a34b73b97ad14f01622bb2aa44e74 (patch) | |
tree | 94138c5309530c8a250927d2c9df073c2f8ab299 /drivers/net/wireless/rtlwifi | |
parent | 73070c45d50060f686df1f34c649cbc089991a28 (diff) |
rtlwifi: rtl8188ee: add msi module parameter
The msi module parameter offers an option to enable or disable MSI
interrupts mode. For now, some users report RTL8188EE works only with
MSI on their certain platforms, some others report it works only without
MSI, this parameter will help.
Signed-off-by: Adam Lee <adam.lee@canonical.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rtlwifi')
-rw-r--r-- | drivers/net/wireless/rtlwifi/rtl8188ee/sw.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/wireless/rtlwifi/rtl8188ee/sw.c b/drivers/net/wireless/rtlwifi/rtl8188ee/sw.c index 347af1e4f438..79792d477b43 100644 --- a/drivers/net/wireless/rtlwifi/rtl8188ee/sw.c +++ b/drivers/net/wireless/rtlwifi/rtl8188ee/sw.c | |||
@@ -93,6 +93,7 @@ int rtl88e_init_sw_vars(struct ieee80211_hw *hw) | |||
93 | u8 tid; | 93 | u8 tid; |
94 | 94 | ||
95 | rtl8188ee_bt_reg_init(hw); | 95 | rtl8188ee_bt_reg_init(hw); |
96 | rtlpci->msi_support = rtlpriv->cfg->mod_params->msi_support; | ||
96 | 97 | ||
97 | rtlpriv->dm.dm_initialgain_enable = 1; | 98 | rtlpriv->dm.dm_initialgain_enable = 1; |
98 | rtlpriv->dm.dm_flag = 0; | 99 | rtlpriv->dm.dm_flag = 0; |
@@ -266,6 +267,7 @@ static struct rtl_mod_params rtl88ee_mod_params = { | |||
266 | .inactiveps = true, | 267 | .inactiveps = true, |
267 | .swctrl_lps = false, | 268 | .swctrl_lps = false, |
268 | .fwctrl_lps = true, | 269 | .fwctrl_lps = true, |
270 | .msi_support = false, | ||
269 | .debug = DBG_EMERG, | 271 | .debug = DBG_EMERG, |
270 | }; | 272 | }; |
271 | 273 | ||
@@ -382,10 +384,12 @@ module_param_named(debug, rtl88ee_mod_params.debug, int, 0444); | |||
382 | module_param_named(ips, rtl88ee_mod_params.inactiveps, bool, 0444); | 384 | module_param_named(ips, rtl88ee_mod_params.inactiveps, bool, 0444); |
383 | module_param_named(swlps, rtl88ee_mod_params.swctrl_lps, bool, 0444); | 385 | module_param_named(swlps, rtl88ee_mod_params.swctrl_lps, bool, 0444); |
384 | module_param_named(fwlps, rtl88ee_mod_params.fwctrl_lps, bool, 0444); | 386 | module_param_named(fwlps, rtl88ee_mod_params.fwctrl_lps, bool, 0444); |
387 | module_param_named(msi, rtl88ee_mod_params.msi_support, bool, 0444); | ||
385 | MODULE_PARM_DESC(swenc, "Set to 1 for software crypto (default 0)\n"); | 388 | MODULE_PARM_DESC(swenc, "Set to 1 for software crypto (default 0)\n"); |
386 | MODULE_PARM_DESC(ips, "Set to 0 to not use link power save (default 1)\n"); | 389 | MODULE_PARM_DESC(ips, "Set to 0 to not use link power save (default 1)\n"); |
387 | MODULE_PARM_DESC(swlps, "Set to 1 to use SW control power save (default 0)\n"); | 390 | MODULE_PARM_DESC(swlps, "Set to 1 to use SW control power save (default 0)\n"); |
388 | MODULE_PARM_DESC(fwlps, "Set to 1 to use FW control power save (default 1)\n"); | 391 | MODULE_PARM_DESC(fwlps, "Set to 1 to use FW control power save (default 1)\n"); |
392 | MODULE_PARM_DESC(msi, "Set to 1 to use MSI interrupts mode (default 0)\n"); | ||
389 | MODULE_PARM_DESC(debug, "Set debug level (0-5) (default 0)"); | 393 | MODULE_PARM_DESC(debug, "Set debug level (0-5) (default 0)"); |
390 | 394 | ||
391 | static SIMPLE_DEV_PM_OPS(rtlwifi_pm_ops, rtl_pci_suspend, rtl_pci_resume); | 395 | static SIMPLE_DEV_PM_OPS(rtlwifi_pm_ops, rtl_pci_suspend, rtl_pci_resume); |