diff options
author | Vladimir Shulman <qca_shulmanv@qca.qualcomm.com> | 2015-01-25 03:52:48 -0500 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2015-01-29 02:54:07 -0500 |
commit | 1f80af2e38f7a1f66b75c63ba83f968da62f5985 (patch) | |
tree | 09011c6ca69f35c0a36d3fa82095926d1265aedd | |
parent | 918465a3c2f7f28926821500152d89511d82166a (diff) |
wil6210: remove unnecessary interrupt moderation module parameters
Interrupt moderation parameters will never be passed as module
parameters. For product, they will be hard-coded after lab testing,
and for debugging, they can be altered via debugfs.
Signed-off-by: Vladimir Shulman <qca_shulmanv@qca.qualcomm.com>
Signed-off-by: Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
-rw-r--r-- | drivers/net/wireless/ath/wil6210/main.c | 38 |
1 files changed, 5 insertions, 33 deletions
diff --git a/drivers/net/wireless/ath/wil6210/main.c b/drivers/net/wireless/ath/wil6210/main.c index 00c9b0f87c9b..d25941696026 100644 --- a/drivers/net/wireless/ath/wil6210/main.c +++ b/drivers/net/wireless/ath/wil6210/main.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) 2012-2014 Qualcomm Atheros, Inc. | 2 | * Copyright (c) 2012-2015 Qualcomm Atheros, Inc. |
3 | * | 3 | * |
4 | * Permission to use, copy, modify, and/or distribute this software for any | 4 | * Permission to use, copy, modify, and/or distribute this software for any |
5 | * purpose with or without fee is hereby granted, provided that the above | 5 | * purpose with or without fee is hereby granted, provided that the above |
@@ -33,34 +33,6 @@ static bool no_fw_load = true; | |||
33 | module_param(no_fw_load, bool, S_IRUGO | S_IWUSR); | 33 | module_param(no_fw_load, bool, S_IRUGO | S_IWUSR); |
34 | MODULE_PARM_DESC(no_fw_load, " do not download FW, use one in on-card flash."); | 34 | MODULE_PARM_DESC(no_fw_load, " do not download FW, use one in on-card flash."); |
35 | 35 | ||
36 | static unsigned int tx_interframe_timeout = | ||
37 | WIL6210_ITR_TX_INTERFRAME_TIMEOUT_DEFAULT; | ||
38 | |||
39 | module_param(tx_interframe_timeout, uint, S_IRUGO); | ||
40 | MODULE_PARM_DESC(tx_interframe_timeout, | ||
41 | " Interrupt moderation TX interframe timeout, usecs."); | ||
42 | |||
43 | static unsigned int rx_interframe_timeout = | ||
44 | WIL6210_ITR_RX_INTERFRAME_TIMEOUT_DEFAULT; | ||
45 | |||
46 | module_param(rx_interframe_timeout, uint, S_IRUGO); | ||
47 | MODULE_PARM_DESC(rx_interframe_timeout, | ||
48 | " Interrupt moderation RX interframe timeout, usecs."); | ||
49 | |||
50 | static unsigned int tx_max_burst_duration = | ||
51 | WIL6210_ITR_TX_MAX_BURST_DURATION_DEFAULT; | ||
52 | |||
53 | module_param(tx_max_burst_duration, uint, S_IRUGO); | ||
54 | MODULE_PARM_DESC(tx_max_burst_duration, | ||
55 | " Interrupt moderation TX max burst duration, usecs."); | ||
56 | |||
57 | static unsigned int rx_max_burst_duration = | ||
58 | WIL6210_ITR_RX_MAX_BURST_DURATION_DEFAULT; | ||
59 | |||
60 | module_param(rx_max_burst_duration, uint, S_IRUGO); | ||
61 | MODULE_PARM_DESC(rx_max_burst_duration, | ||
62 | " Interrupt moderation RX max burst duration, usecs."); | ||
63 | |||
64 | /* if not set via modparam, will be set to default value of 1/8 of | 36 | /* if not set via modparam, will be set to default value of 1/8 of |
65 | * rx ring size during init flow | 37 | * rx ring size during init flow |
66 | */ | 38 | */ |
@@ -463,10 +435,10 @@ int wil_priv_init(struct wil6210_priv *wil) | |||
463 | goto out_wmi_wq; | 435 | goto out_wmi_wq; |
464 | 436 | ||
465 | wil->last_fw_recovery = jiffies; | 437 | wil->last_fw_recovery = jiffies; |
466 | wil->tx_interframe_timeout = tx_interframe_timeout; | 438 | wil->tx_interframe_timeout = WIL6210_ITR_TX_INTERFRAME_TIMEOUT_DEFAULT; |
467 | wil->rx_interframe_timeout = rx_interframe_timeout; | 439 | wil->rx_interframe_timeout = WIL6210_ITR_RX_INTERFRAME_TIMEOUT_DEFAULT; |
468 | wil->tx_max_burst_duration = tx_max_burst_duration; | 440 | wil->tx_max_burst_duration = WIL6210_ITR_TX_MAX_BURST_DURATION_DEFAULT; |
469 | wil->rx_max_burst_duration = rx_max_burst_duration; | 441 | wil->rx_max_burst_duration = WIL6210_ITR_RX_MAX_BURST_DURATION_DEFAULT; |
470 | 442 | ||
471 | if (rx_ring_overflow_thrsh == WIL6210_RX_HIGH_TRSH_INIT) | 443 | if (rx_ring_overflow_thrsh == WIL6210_RX_HIGH_TRSH_INIT) |
472 | rx_ring_overflow_thrsh = WIL6210_RX_HIGH_TRSH_DEFAULT; | 444 | rx_ring_overflow_thrsh = WIL6210_RX_HIGH_TRSH_DEFAULT; |