aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorEyal Shapira <eyal@wizery.com>2012-06-07 16:39:21 -0400
committerLuciano Coelho <coelho@ti.com>2012-06-08 02:14:07 -0400
commit3e8d69352bd9ac7287ab735d45582d79c1f9f2d9 (patch)
tree9dc9f38d24a5c2161fd61992f68c107515c1b70d /drivers/net
parentbc8e261233cf0f1ad838f60bac782df3a5bc6bac (diff)
wlcore: add debugfs control over rx interrupt pacing
Add control over several conf fields which combined control the rx interrupt pacing mechanism, that is avoiding getting an interrupt following a single frame rx but instead have the FW trigger the interrupt only after a certain amount of frames received or a timeout. Signed-off-by: Eyal Shapira <eyal@wizery.com> Signed-off-by: Luciano Coelho <coelho@ti.com>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/wireless/ti/wlcore/debugfs.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/net/wireless/ti/wlcore/debugfs.c b/drivers/net/wireless/ti/wlcore/debugfs.c
index 50300ff0acb4..827a728fd663 100644
--- a/drivers/net/wireless/ti/wlcore/debugfs.c
+++ b/drivers/net/wireless/ti/wlcore/debugfs.c
@@ -177,6 +177,14 @@ static inline void no_write_handler(struct wl1271 *wl,
177 .open = simple_open, \ 177 .open = simple_open, \
178 .llseek = default_llseek, \ 178 .llseek = default_llseek, \
179 }; 179 };
180
181WL12XX_CONF_DEBUGFS(irq_pkt_threshold, rx, 0, 65535,
182 chip_op_handler, wl1271_acx_init_rx_interrupt)
183WL12XX_CONF_DEBUGFS(irq_blk_threshold, rx, 0, 65535,
184 chip_op_handler, wl1271_acx_init_rx_interrupt)
185WL12XX_CONF_DEBUGFS(irq_timeout, rx, 0, 100,
186 chip_op_handler, wl1271_acx_init_rx_interrupt)
187
180static ssize_t gpio_power_read(struct file *file, char __user *user_buf, 188static ssize_t gpio_power_read(struct file *file, char __user *user_buf,
181 size_t count, loff_t *ppos) 189 size_t count, loff_t *ppos)
182{ 190{
@@ -957,6 +965,9 @@ static int wl1271_debugfs_add_files(struct wl1271 *wl,
957 DEBUGFS_ADD(dynamic_ps_timeout, rootdir); 965 DEBUGFS_ADD(dynamic_ps_timeout, rootdir);
958 DEBUGFS_ADD(forced_ps, rootdir); 966 DEBUGFS_ADD(forced_ps, rootdir);
959 DEBUGFS_ADD(split_scan_timeout, rootdir); 967 DEBUGFS_ADD(split_scan_timeout, rootdir);
968 DEBUGFS_ADD(irq_pkt_threshold, rootdir);
969 DEBUGFS_ADD(irq_blk_threshold, rootdir);
970 DEBUGFS_ADD(irq_timeout, rootdir);
960 971
961 streaming = debugfs_create_dir("rx_streaming", rootdir); 972 streaming = debugfs_create_dir("rx_streaming", rootdir);
962 if (!streaming || IS_ERR(streaming)) 973 if (!streaming || IS_ERR(streaming))