diff options
author | Andreas Kemnade <andreas@kemnade.info> | 2016-01-30 20:01:52 +0300 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2016-02-06 15:02:10 +0300 |
commit | fae4f9f78ab11937bc45b0f3625efe2e35aed510 (patch) | |
tree | 5283e5680bdfd584e33c4b211e25f5ea31b70220 /drivers/net/wireless/marvell/libertas/if_sdio.c | |
parent | 0a7701b4defcebc7ce461355e6d9478df313b084 (diff) | |
download | linux-fae4f9f78ab11937bc45b0f3625efe2e35aed510.tar.xz |
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_sdio.c')
-rw-r--r-- | drivers/net/wireless/marvell/libertas/if_sdio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/marvell/libertas/if_sdio.c b/drivers/net/wireless/marvell/libertas/if_sdio.c index 68fd3a9779bd..13eae9ff8c35 100644 --- a/drivers/net/wireless/marvell/libertas/if_sdio.c +++ b/drivers/net/wireless/marvell/libertas/if_sdio.c @@ -1267,7 +1267,7 @@ static int if_sdio_probe(struct sdio_func *func, priv->reset_card = if_sdio_reset_card; priv->power_save = if_sdio_power_save; priv->power_restore = if_sdio_power_restore; - + priv->is_polling = !(func->card->host->caps & MMC_CAP_SDIO_IRQ); ret = if_sdio_power_on(card); if (ret) goto err_activate_card; |