From patchwork Mon May 5 08:33:37 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Lee X-Patchwork-Id: 4112611 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 99E31BFF02 for ; Mon, 5 May 2014 08:34:08 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BCA3A202AE for ; Mon, 5 May 2014 08:34:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E5F4620254 for ; Mon, 5 May 2014 08:34:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755250AbaEEId6 (ORCPT ); Mon, 5 May 2014 04:33:58 -0400 Received: from mail-pa0-f54.google.com ([209.85.220.54]:46949 "EHLO mail-pa0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755233AbaEEId4 (ORCPT ); Mon, 5 May 2014 04:33:56 -0400 Received: by mail-pa0-f54.google.com with SMTP id lf10so9066472pab.27 for ; Mon, 05 May 2014 01:33:56 -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=uH3SDQM3XQECf+FGxDK2XBczr4CzfisOJeCbhZOF/cI=; b=EC4pah2N+NMa7p3CsO5FIjK7eAfeXCJdBUXekqYMYAhkCFx92ClkLmFYbzy4oCylKy 3Abq4nZt/o/9FSfRl+DKYHtQ8X+di2r5IuoHOJUpqE+gJHzAy8vWXSlf2c2QZP2AVUft g1b5SJuLr9MulKrQUJqjhdUAcN+2x0Xqnvl+yKjs6hk38t0C52y6PFp1RU5npZATkYC/ rOoMPkUqAQ2HTpZrDkNEZ6f9TvOtwlcOMenT9JgF12vlELf7tm8tpFGhemp9btSZl1K0 xi05G0aLS3e2TptuTdztla5fQTttMmOW6Oxk9T3XzuwzcC2PTndVaQSuorl3qkzL6o9k tkIg== X-Gm-Message-State: ALoCoQlgkLnHja1o2nLVxNJTi1tcjauBa2FkehoIsjHqwEppiHiAcDzX0OIgDoxSkInPdeIGiAb9 X-Received: by 10.66.149.102 with SMTP id tz6mr68552753pab.76.1399278836220; Mon, 05 May 2014 01:33:56 -0700 (PDT) Received: from localhost ([116.213.97.190]) by mx.google.com with ESMTPSA id nx12sm65323391pab.6.2014.05.05.01.33.51 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 05 May 2014 01:33:55 -0700 (PDT) From: Adam Lee To: linux-wireless@vger.kernel.org Cc: netdev@vger.kernel.org, Larry Finger , "John W. Linville" Subject: [PATCH 2/3] rtlwifi: rtl8188ee: add msi module parameter Date: Mon, 5 May 2014 16:33:37 +0800 Message-Id: <1399278818-19152-2-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 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 --- drivers/net/wireless/rtlwifi/rtl8188ee/sw.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/net/wireless/rtlwifi/rtl8188ee/sw.c b/drivers/net/wireless/rtlwifi/rtl8188ee/sw.c index 347af1e..79792d4 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) u8 tid; rtl8188ee_bt_reg_init(hw); + rtlpci->msi_support = rtlpriv->cfg->mod_params->msi_support; rtlpriv->dm.dm_initialgain_enable = 1; rtlpriv->dm.dm_flag = 0; @@ -266,6 +267,7 @@ static struct rtl_mod_params rtl88ee_mod_params = { .inactiveps = true, .swctrl_lps = false, .fwctrl_lps = true, + .msi_support = false, .debug = DBG_EMERG, }; @@ -382,10 +384,12 @@ module_param_named(debug, rtl88ee_mod_params.debug, int, 0444); module_param_named(ips, rtl88ee_mod_params.inactiveps, bool, 0444); module_param_named(swlps, rtl88ee_mod_params.swctrl_lps, bool, 0444); module_param_named(fwlps, rtl88ee_mod_params.fwctrl_lps, bool, 0444); +module_param_named(msi, rtl88ee_mod_params.msi_support, bool, 0444); MODULE_PARM_DESC(swenc, "Set to 1 for software crypto (default 0)\n"); MODULE_PARM_DESC(ips, "Set to 0 to not use link power save (default 1)\n"); MODULE_PARM_DESC(swlps, "Set to 1 to use SW control power save (default 0)\n"); MODULE_PARM_DESC(fwlps, "Set to 1 to use FW control power save (default 1)\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);