summaryrefslogtreecommitdiff
path: root/drivers/staging/wfx/wfx.h
diff options
context:
space:
mode:
authorJérôme Pouiller <jerome.pouiller@silabs.com>2020-05-05 14:37:50 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-05-13 13:26:41 +0200
commitf00dc1d789e1caab0e154d0b2bf581fa1be87b2b (patch)
tree9c9f0d54668fc785ec95d0c50804534ca4e17079 /drivers/staging/wfx/wfx.h
parent57aa557f110d9fb6980cb58498cfd3a51feb5473 (diff)
staging: wfx: poll IRQ during init
When the chip starts in SDIO mode, the external IRQ (aka Out-Of-Band IRQ) cannot be used before to configure it. Therefore, the first exchanges with the chip have to be done without the OOB IRQ. This patch allow to poll the data until the OOB IRQ is correctly setup. In order to keep the code simpler, this patch also poll data even if OOB IRQ is not used. Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com> Link: https://lore.kernel.org/r/20200505123757.39506-9-Jerome.Pouiller@silabs.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/wfx/wfx.h')
-rw-r--r--drivers/staging/wfx/wfx.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/wfx/wfx.h b/drivers/staging/wfx/wfx.h
index 09bbb5da4f06..4eb7762142fc 100644
--- a/drivers/staging/wfx/wfx.h
+++ b/drivers/staging/wfx/wfx.h
@@ -46,6 +46,7 @@ struct wfx_dev {
struct wfx_hif hif;
struct sl_context sl;
struct delayed_work cooling_timeout_work;
+ bool poll_irq;
bool chip_frozen;
struct mutex conf_mutex;