From patchwork Mon Mar 5 14:36:56 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amitkumar Karwar X-Patchwork-Id: 10259145 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D584760365 for ; Mon, 5 Mar 2018 14:49:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C5E3228880 for ; Mon, 5 Mar 2018 14:49:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BA09C28A8F; Mon, 5 Mar 2018 14:49:16 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6CB5928880 for ; Mon, 5 Mar 2018 14:49:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752246AbeCEOtP (ORCPT ); Mon, 5 Mar 2018 09:49:15 -0500 Received: from mail-pl0-f67.google.com ([209.85.160.67]:39711 "EHLO mail-pl0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752144AbeCEOtL (ORCPT ); Mon, 5 Mar 2018 09:49:11 -0500 Received: by mail-pl0-f67.google.com with SMTP id s13-v6so9759012plq.6 for ; Mon, 05 Mar 2018 06:49:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=P9MfwFUP8j52GnJ8tO9pWn2TVyh13YShFG2nTdbHAiE=; b=X9ceISchu3tV24iQSx8ZhM9uZtqalbomHb0IaX2ZS0NxVXQSBW/ZYaH0JBwbGi+lOd aZujwEG12CtdIQiWed7ekQRkubR+KcW1nsZYeRDetIE5Ch4uK95PP92D3RpoXO6zZAFy wx4tbX3KIHtJ/2awWSpD5a4Hsj/WaK1LoEp/8ruOFJIPsJmdB7WsRipGv7kggeB1s6vA lkkbAHJ18y+Z9rnxRDvuqyNCrNtvG2P3CmY9BrgaxZN2AEyO0dYiiIgwYdqbz9XlefDh EHEi3lQGOnTwDq+pmDXR88vJ3GkkJtV87lpxsc3D2mL48RENoY8NG9J8o2rXeu4paSio GuKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=P9MfwFUP8j52GnJ8tO9pWn2TVyh13YShFG2nTdbHAiE=; b=ALUvtOeLVrVJZhvOESYLpgYg62AJe5PQvr9+RwMPajMF+MZkOjoPuRHVU5bqLU+sJ5 6GOQuJcMdVAKmBmID/zuAevBA3UeurjMJGICTTPckr1VcRAskdXeKp0msjmx+M7802Iq l/IqE+kDoGggbeZJ+E1W/ooAZqXsyoP/jK5hMM2pM1xdkrdz1txhsOo0mWfZTJvqCpDA KbHOowgNzCscSoAAdcFMNQYljgp034IAwo0iHoX4auV19XvoPAjXWe7zFo1ec5L7j3ES IJq9npsBqVjR8OWFj6OpqkX2r0OXE1Y2QBzCq2Uh+43/SiPIwaa8HCdeBBtiC7bHbnUp 3wHA== X-Gm-Message-State: APf1xPDSfd3qJl2DKlUZfa4ELXLugSLFS0B957lDybQzhz8XhXbmli0m y5xOr1mekV6V0RkWIg8MclM= X-Google-Smtp-Source: AG47ELsvJMbxlA50p809R/l0fIb0V5+GCvmsxCfvd2jiJZEuMXJGTuZJbub6Z3xPjo6xAyeD7+aIAg== X-Received: by 2002:a17:902:5797:: with SMTP id l23-v6mr13146212pli.56.1520261350593; Mon, 05 Mar 2018 06:49:10 -0800 (PST) Received: from cpu185.redpinesignals.com ([203.196.161.90]) by smtp.gmail.com with ESMTPSA id i1sm29164845pfi.116.2018.03.05.06.49.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 05 Mar 2018 06:49:09 -0800 (PST) From: Amitkumar Karwar To: Kalle Valo Cc: linux-wireless@vger.kernel.org, Amitkumar Karwar , Siva Rebbagondla , Prameela Rani Garnepudi Subject: [PATCH 06/10] rsi: add module parameter rsi_reg Date: Mon, 5 Mar 2018 20:06:56 +0530 Message-Id: <1520260620-4694-7-git-send-email-amitkarwar@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1520260620-4694-1-git-send-email-amitkarwar@gmail.com> References: <1520260620-4694-1-git-send-email-amitkarwar@gmail.com> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Prameela Rani Garnepudi For few regulatory customizations, we are taking rsi_reg as module parameter. Signed-off-by: Prameela Rani Garnepudi --- drivers/net/wireless/rsi/rsi_91x_main.c | 4 ++++ drivers/net/wireless/rsi/rsi_common.h | 3 +++ 2 files changed, 7 insertions(+) diff --git a/drivers/net/wireless/rsi/rsi_91x_main.c b/drivers/net/wireless/rsi/rsi_91x_main.c index bf05242..e290779 100644 --- a/drivers/net/wireless/rsi/rsi_91x_main.c +++ b/drivers/net/wireless/rsi/rsi_91x_main.c @@ -24,6 +24,10 @@ #include "rsi_coex.h" #include "rsi_hal.h" +static u16 rsi_reg = RSI_REG_DEF; +module_param(rsi_reg, ushort, 0444); +MODULE_PARM_DESC(rsi_reg, "0 - RSI_REG_DEF, 1 - RSI_REG_DLCAR"); + u32 rsi_zone_enabled = /* INFO_ZONE | INIT_ZONE | MGMT_TX_ZONE | diff --git a/drivers/net/wireless/rsi/rsi_common.h b/drivers/net/wireless/rsi/rsi_common.h index d9ff3b8..df40556 100644 --- a/drivers/net/wireless/rsi/rsi_common.h +++ b/drivers/net/wireless/rsi/rsi_common.h @@ -24,6 +24,9 @@ #define QUEUE_NOT_FULL 1 #define QUEUE_FULL 0 +#define RSI_REG_DEF 0 +#define RSI_REG_DLCAR 1 + static inline int rsi_init_event(struct rsi_event *pevent) { atomic_set(&pevent->event_condition, 1);