diff options
author | Shahar Patury <shaharp@ti.com> | 2015-12-22 14:30:06 +0200 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2015-12-31 10:19:47 +0200 |
commit | 3719c17e1816695f415dd3b4ddcb679f7dc617c8 (patch) | |
tree | 7a0b8312b689efa901093068ca8de23c7fa4a788 /drivers/net/wireless/ti/wlcore/sysfs.c | |
parent | 0510931ef5e89d67f1c87c792219733972069269 (diff) | |
download | talos-obmc-linux-3719c17e1816695f415dd3b4ddcb679f7dc617c8.tar.gz talos-obmc-linux-3719c17e1816695f415dd3b4ddcb679f7dc617c8.zip |
wlcore/wl18xx: fw logger over sdio
Enable the FW Logger to work over the SDIO interface in addition to over UART
interface. In the new design we use fw internal memory instead of packet ram
that was used in older (wl12xx) design. This change reduces the impact on TP
and stability.
A new event was added to notify fw logger is ready for reading. Dynamic
configuration to debugfs was added as well.
Signed-off-by: Shahar Patury <shaharp@ti.com>
Signed-off-by: Guy Mishol <guym@ti.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/ti/wlcore/sysfs.c')
-rw-r--r-- | drivers/net/wireless/ti/wlcore/sysfs.c | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/drivers/net/wireless/ti/wlcore/sysfs.c b/drivers/net/wireless/ti/wlcore/sysfs.c index 24dd288d6809..a9218e5b0efc 100644 --- a/drivers/net/wireless/ti/wlcore/sysfs.c +++ b/drivers/net/wireless/ti/wlcore/sysfs.c @@ -119,32 +119,6 @@ static ssize_t wl1271_sysfs_read_fwlog(struct file *filp, struct kobject *kobj, if (ret < 0) return -ERESTARTSYS; - /* Let only one thread read the log at a time, blocking others */ - while (wl->fwlog_size == 0) { - DEFINE_WAIT(wait); - - prepare_to_wait_exclusive(&wl->fwlog_waitq, - &wait, - TASK_INTERRUPTIBLE); - - if (wl->fwlog_size != 0) { - finish_wait(&wl->fwlog_waitq, &wait); - break; - } - - mutex_unlock(&wl->mutex); - - schedule(); - finish_wait(&wl->fwlog_waitq, &wait); - - if (signal_pending(current)) - return -ERESTARTSYS; - - ret = mutex_lock_interruptible(&wl->mutex); - if (ret < 0) - return -ERESTARTSYS; - } - /* Check if the fwlog is still valid */ if (wl->fwlog_size < 0) { mutex_unlock(&wl->mutex); |