diff options
| author | bings <bings@codeaurora.org> | 2019-02-15 17:17:09 +0800 |
|---|---|---|
| committer | bings <bings@codeaurora.org> | 2019-02-15 17:20:53 +0800 |
| commit | b15046d951b4be4fa5bce8c40594f53378a783e5 (patch) | |
| tree | 83219bbb73dc0eb4f3e26d92bf87d83ea9cb1c7f | |
| parent | d190cf2e9d9d4a92866b0e4975d5240bb26c38c2 (diff) | |
qcacld-2.0: oob_irq_handler should be called if oob gpio is low
oob_irq_handler should be called when gpio_get_value(oob_gpio_num)
returns low, otherwise driver loading fails
Change-Id: Ibe7e0f3238f9ceb9cc68f942d58685d17aedfb6e
CRs-Fixed: 2399566
| -rw-r--r-- | CORE/SERVICES/HIF/hif_oob.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/CORE/SERVICES/HIF/hif_oob.c b/CORE/SERVICES/HIF/hif_oob.c index 61eac69ad0a8..346b456bb0b7 100644 --- a/CORE/SERVICES/HIF/hif_oob.c +++ b/CORE/SERVICES/HIF/hif_oob.c @@ -76,11 +76,12 @@ static int oob_task(void *pm_oob) while (!hif_oob->oob_shutdown) { if (down_interruptible(&hif_oob->oob_sem) != 0) continue; - while (!gpio_get_value(hif_oob->oob_gpio_num)) + while (!gpio_get_value(hif_oob->oob_gpio_num)) { if (hif_oob->wow_maskint) break; hif_oob->oob_irq_handler( hif_oob_irq_handler_ctx((HIF_DEVICE *)pm_oob)); + } } complete_and_exit(&hif_oob->oob_completion, 0); |
