From patchwork Mon May 5 08:33:38 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Lee X-Patchwork-Id: 4112621 Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 5278EBFF02 for ; Mon, 5 May 2014 08:34:21 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8353320254 for ; Mon, 5 May 2014 08:34:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id AD6CE203F4 for ; Mon, 5 May 2014 08:34:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755267AbaEEIeQ (ORCPT ); Mon, 5 May 2014 04:34:16 -0400 Received: from mail-pa0-f51.google.com ([209.85.220.51]:48365 "EHLO mail-pa0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755027AbaEEIeO (ORCPT ); Mon, 5 May 2014 04:34:14 -0400 Received: by mail-pa0-f51.google.com with SMTP id kq14so2044502pab.24 for ; Mon, 05 May 2014 01:34:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=H2WI8hwKUaT5T2sovkrzaCDr0Yg06yetf6iNE00ptK0=; b=Bb+uCwfzMCJSCAZXS/UrnicXAN6MiUVPgxzogsStULfcYZfcUjqcS/Aa2EExLp+5CS EfNT7dDG+um6lRmmCCGruwPFLWalcx25zHQFCurwentNflNUN0WUBd1C/IfKbXU6SIE0 iZ3C7hUbie2Po8c/VgwaHfbdzTt93WA9gsavuwI5mlYQF3YY3z4Hmi6tsP8H0CYP6Muk TN97l5NYXliUNsWaXvwSDFgSJDZPPZCKoN5CGAtvukPvOfld40n0lCA85gJQi5t8EKIS JWDLEdN7W3H4r3cH0bgZzZpW1BwLuySaZDd3xqOhmLt3XN6Cxo6hntyuD5zZ0gRa5mVY AcmQ== X-Gm-Message-State: ALoCoQmemaeglmto3wlgY+tYceSCYJHJyGkKPS1qSDiI7VRMn+YfHlgzjsSigyAy/7sTDfbucsCk X-Received: by 10.66.66.202 with SMTP id h10mr68624914pat.70.1399278854310; Mon, 05 May 2014 01:34:14 -0700 (PDT) Received: from localhost ([116.213.97.190]) by mx.google.com with ESMTPSA id g6sm65230797pat.2.2014.05.05.01.34.05 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 05 May 2014 01:34:13 -0700 (PDT) From: Adam Lee To: linux-wireless@vger.kernel.org Cc: netdev@vger.kernel.org, Larry Finger , "John W. Linville" Subject: [PATCH 3/3] rtlwifi: rtl8723be: add msi module parameter Date: Mon, 5 May 2014 16:33:38 +0800 Message-Id: <1399278818-19152-3-git-send-email-adam.lee@canonical.com> X-Mailer: git-send-email 2.0.0.rc0 In-Reply-To: <1399278818-19152-1-git-send-email-adam.lee@canonical.com> References: <1399278818-19152-1-git-send-email-adam.lee@canonical.com> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The msi module parameter offers an option to enable or disable MSI interrupts mode, for debugging and workaround(in case) convenience. Signed-off-by: Adam Lee --- drivers/net/wireless/rtlwifi/rtl8723be/sw.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/rtlwifi/rtl8723be/sw.c b/drivers/net/wireless/rtlwifi/rtl8723be/sw.c index a072136..ff12bf4 100644 --- a/drivers/net/wireless/rtlwifi/rtl8723be/sw.c +++ b/drivers/net/wireless/rtlwifi/rtl8723be/sw.c @@ -92,7 +92,7 @@ int rtl8723be_init_sw_vars(struct ieee80211_hw *hw) struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); rtl8723be_bt_reg_init(hw); - rtlpci->msi_support = false; + rtlpci->msi_support = rtlpriv->cfg->mod_params->msi_support; rtlpriv->btcoexist.btc_ops = rtl_btc_get_ops_pointer(); rtlpriv->dm.dm_initialgain_enable = 1; @@ -253,6 +253,7 @@ static struct rtl_mod_params rtl8723be_mod_params = { .inactiveps = true, .swctrl_lps = false, .fwctrl_lps = true, + .msi_support = false, .debug = DBG_EMERG, }; @@ -365,9 +366,11 @@ module_param_named(debug, rtl8723be_mod_params.debug, int, 0444); module_param_named(ips, rtl8723be_mod_params.inactiveps, bool, 0444); module_param_named(swlps, rtl8723be_mod_params.swctrl_lps, bool, 0444); module_param_named(fwlps, rtl8723be_mod_params.fwctrl_lps, bool, 0444); +module_param_named(msi, rtl8723be_mod_params.msi_support, bool, 0444); MODULE_PARM_DESC(swenc, "using hardware crypto (default 0 [hardware])\n"); MODULE_PARM_DESC(ips, "using no link power save (default 1 is open)\n"); MODULE_PARM_DESC(fwlps, "using linked fw control power save (default 1 is open)\n"); +MODULE_PARM_DESC(msi, "Set to 1 to use MSI interrupts mode (default 0)\n"); MODULE_PARM_DESC(debug, "Set debug level (0-5) (default 0)"); static SIMPLE_DEV_PM_OPS(rtlwifi_pm_ops, rtl_pci_suspend, rtl_pci_resume);