summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/marvell/libertas/if_usb.c
diff options
context:
space:
mode:
authorAndreas Kemnade <andreas@kemnade.info>2016-01-30 18:01:52 +0100
committerKalle Valo <kvalo@codeaurora.org>2016-02-06 14:02:10 +0200
commitfae4f9f78ab11937bc45b0f3625efe2e35aed510 (patch)
tree5283e5680bdfd584e33c4b211e25f5ea31b70220 /drivers/net/wireless/marvell/libertas/if_usb.c
parent0a7701b4defcebc7ce461355e6d9478df313b084 (diff)
libertas: check whether bus can do more than polling
If a sdio host does not support sdio irqs, polling is used instead. That has an impact on performance. Some functionality should not be enabled then. This add a variable in libertas_priv to indicate that. Signed-off-by: Andreas Kemnade <andreas@kemnade.info> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/marvell/libertas/if_usb.c')
-rw-r--r--drivers/net/wireless/marvell/libertas/if_usb.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/marvell/libertas/if_usb.c b/drivers/net/wireless/marvell/libertas/if_usb.c
index dff08a2896a3..aba0c9995b14 100644
--- a/drivers/net/wireless/marvell/libertas/if_usb.c
+++ b/drivers/net/wireless/marvell/libertas/if_usb.c
@@ -267,6 +267,7 @@ static int if_usb_probe(struct usb_interface *intf,
priv->enter_deep_sleep = NULL;
priv->exit_deep_sleep = NULL;
priv->reset_deep_sleep_wakeup = NULL;
+ priv->is_polling = false;
#ifdef CONFIG_OLPC
if (machine_is_olpc())
priv->reset_card = if_usb_reset_olpc_card;