summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArik Nemtsov <arik@wizery.com>2013-02-13 22:06:17 +0400
committerEliad Peller <eliad@wizery.com>2013-07-22 14:01:46 +0400
commit5a5ba3ff0828232295020f9a676d043feff54edf (patch)
tree6a05516f6138e903bc0a0f3e709b898669feea44
parent28436d159881551015fe1b6d3f5546c345c0d564 (diff)
downloadwl18xx-5a5ba3ff0828232295020f9a676d043feff54edf.tar.xz
wlcore: allow setting min req rx blocks in debugfs
Also fix IRQ timeout in debugfs (related to Rx irq pacing). Signed-off-by: Arik Nemtsov <arik@wizery.com>
-rw-r--r--drivers/net/wireless/ti/wlcore/debugfs.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/wireless/ti/wlcore/debugfs.c b/drivers/net/wireless/ti/wlcore/debugfs.c
index 67e9e659ea8..a81dc506e4f 100644
--- a/drivers/net/wireless/ti/wlcore/debugfs.c
+++ b/drivers/net/wireless/ti/wlcore/debugfs.c
@@ -209,12 +209,14 @@ WL12XX_CONF_DEBUGFS(irq_pkt_threshold, rx, 0, 65535,
chip_op_handler, wl1271_acx_init_rx_interrupt)
WL12XX_CONF_DEBUGFS(irq_blk_threshold, rx, 0, 65535,
chip_op_handler, wl1271_acx_init_rx_interrupt)
-WL12XX_CONF_DEBUGFS(irq_timeout, rx, 0, 100,
+WL12XX_CONF_DEBUGFS(irq_timeout, rx, 0, 65535,
chip_op_handler, wl1271_acx_init_rx_interrupt)
WL12XX_CONF_DEBUGFS(tx_compl_timeout, tx, 0, 65535,
chip_op_handler, 0)
WL12XX_CONF_DEBUGFS(tx_compl_threshold, tx, 0, 65535,
chip_op_handler, 0)
+WL12XX_CONF_DEBUGFS(min_req_rx_blocks, mem, 0, 255,
+ chip_op_handler, 0)
static ssize_t gpio_power_read(struct file *file, char __user *user_buf,
size_t count, loff_t *ppos)
@@ -1516,6 +1518,7 @@ static int wl1271_debugfs_add_files(struct wl1271 *wl,
DEBUGFS_ADD(rx_num_comp, rootdir);
DEBUGFS_ADD(tx_compl_timeout, rootdir);
DEBUGFS_ADD(tx_compl_threshold, rootdir);
+ DEBUGFS_ADD(min_req_rx_blocks, rootdir);
streaming = debugfs_create_dir("rx_streaming", rootdir);
if (!streaming || IS_ERR(streaming))