aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/wfx/bh.h
diff options
context:
space:
mode:
authorJérôme Pouiller <jerome.pouiller@silabs.com>2020-05-05 14:37:49 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-05-13 13:26:41 +0200
commit57aa557f110d9fb6980cb58498cfd3a51feb5473 (patch)
tree61613412ea2d0bc877ab3f489e19d488feef18d8 /drivers/staging/wfx/bh.h
parentstaging: wfx: use threaded IRQ with SPI (diff)
downloadlinux-dev-57aa557f110d9fb6980cb58498cfd3a51feb5473.tar.xz
linux-dev-57aa557f110d9fb6980cb58498cfd3a51feb5473.zip
staging: wfx: introduce a way to poll IRQ
It is possible to check if an IRQ is ending by polling the control register. This function must used with care: if an IRQ fires while the host reads control register, the IRQ can be lost. However, it could be useful in some cases. Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com> Link: https://lore.kernel.org/r/20200505123757.39506-8-Jerome.Pouiller@silabs.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/wfx/bh.h')
-rw-r--r--drivers/staging/wfx/bh.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/wfx/bh.h b/drivers/staging/wfx/bh.h
index 93ca98424e0b..4b73437869e1 100644
--- a/drivers/staging/wfx/bh.h
+++ b/drivers/staging/wfx/bh.h
@@ -28,5 +28,6 @@ void wfx_bh_register(struct wfx_dev *wdev);
void wfx_bh_unregister(struct wfx_dev *wdev);
void wfx_bh_request_rx(struct wfx_dev *wdev);
void wfx_bh_request_tx(struct wfx_dev *wdev);
+void wfx_bh_poll_irq(struct wfx_dev *wdev);
#endif /* WFX_BH_H */