diff options
author | David Woodhouse <dwmw2@infradead.org> | 2008-05-20 11:43:31 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-05-21 21:47:40 -0400 |
commit | edf5dabfa86163d589041cccf607b41a7033e9b0 (patch) | |
tree | eede8c645f726374c512c9cbaadcf36148ae3adf /drivers/net/wireless/libertas/main.c | |
parent | 15dbaac03e862ee746310832c8d8d694dc0427ee (diff) |
libertas: Add reset_card() callback to hardware driver
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/libertas/main.c')
-rw-r--r-- | drivers/net/wireless/libertas/main.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/wireless/libertas/main.c b/drivers/net/wireless/libertas/main.c index db246d0a1eda..804da368416f 100644 --- a/drivers/net/wireless/libertas/main.c +++ b/drivers/net/wireless/libertas/main.c | |||
@@ -787,6 +787,11 @@ static int lbs_thread(void *data) | |||
787 | le16_to_cpu(cmdnode->cmdbuf->command)); | 787 | le16_to_cpu(cmdnode->cmdbuf->command)); |
788 | lbs_complete_command(priv, cmdnode, -ETIMEDOUT); | 788 | lbs_complete_command(priv, cmdnode, -ETIMEDOUT); |
789 | priv->nr_retries = 0; | 789 | priv->nr_retries = 0; |
790 | if (priv->reset_card) { | ||
791 | spin_unlock_irq(&priv->driver_lock); | ||
792 | priv->reset_card(priv); | ||
793 | spin_lock_irq(&priv->driver_lock); | ||
794 | } | ||
790 | } else { | 795 | } else { |
791 | priv->cur_cmd = NULL; | 796 | priv->cur_cmd = NULL; |
792 | lbs_pr_info("requeueing command %x due to timeout (#%d)\n", | 797 | lbs_pr_info("requeueing command %x due to timeout (#%d)\n", |