summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/libertas/if_sdio.c
diff options
context:
space:
mode:
authorDavid Woodhouse <dwmw2@infradead.org>2007-12-06 14:36:11 +0000
committerDavid S. Miller <davem@davemloft.net>2008-01-28 15:06:01 -0800
commite775ed7c677b163c80643036c32e23d3e59b9429 (patch)
tree909af580ca37910f462b613ba60a4e97e3035209 /drivers/net/wireless/libertas/if_sdio.c
parentf5ece8fc8d3f5e36bda3554b74b0fbecb0a14309 (diff)
downloadkernel-crypto-e775ed7c677b163c80643036c32e23d3e59b9429.tar.gz
kernel-crypto-e775ed7c677b163c80643036c32e23d3e59b9429.tar.xz
kernel-crypto-e775ed7c677b163c80643036c32e23d3e59b9429.zip
libertas: Consolidate lbs_host_to_card_done() function.
As we move towards having this done by a state machine, start by having a single 'stuff sent' function, which is called by if_usb/if_sdio/if_cs after sending both data and commands. Signed-off-by: David Woodhouse <dwmw2@infradead.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/libertas/if_sdio.c')
-rw-r--r--drivers/net/wireless/libertas/if_sdio.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/net/wireless/libertas/if_sdio.c b/drivers/net/wireless/libertas/if_sdio.c
index 7a7037bdd37..cccca311f75 100644
--- a/drivers/net/wireless/libertas/if_sdio.c
+++ b/drivers/net/wireless/libertas/if_sdio.c
@@ -835,12 +835,9 @@ static void if_sdio_interrupt(struct sdio_func *func)
* Ignore the define name, this really means the card has
* successfully received the command.
*/
- if (cause & IF_SDIO_H_INT_DNLD) {
- if ((card->priv->dnld_sent == DNLD_DATA_SENT) &&
- (card->priv->adapter->connect_status == LBS_CONNECTED))
- netif_wake_queue(card->priv->dev);
- card->priv->dnld_sent = DNLD_RES_RECEIVED;
- }
+ if (cause & IF_SDIO_H_INT_DNLD)
+ lbs_host_to_card_done(card->priv);
+
if (cause & IF_SDIO_H_INT_UPLD) {
ret = if_sdio_card_to_host(card);