From e03102f60ddf1a9d4df5b91bff7a288477c6ea95 Mon Sep 17 00:00:00 2001 From: Nandha Kishore Easwaran Date: Wed, 22 Aug 2018 22:23:00 +0530 Subject: [PATCH] qcacmn: Remove DP_INTR_POLL flag Remove DP_INTR_POLL FLAG as polling is now handled runtime using hif_is_polled_mode_enabled. This is needed as 8074 works on interrupts whereas 6290 is still working on polling mode Change-Id: I0e7fdc338d462735dc216c929b1b5a99dc984435 --- dp/wifi3.0/dp_main.c | 7 ------- dp/wifi3.0/dp_rx_err.c | 3 +-- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/dp/wifi3.0/dp_main.c b/dp/wifi3.0/dp_main.c index 97330fc71109..7d88b40c9002 100644 --- a/dp/wifi3.0/dp_main.c +++ b/dp/wifi3.0/dp_main.c @@ -1178,7 +1178,6 @@ budget_done: return dp_budget - budget; } -#ifdef DP_INTR_POLL_BASED /* dp_interrupt_timer()- timer poll for interrupts * * @arg: SoC Handle @@ -1243,12 +1242,6 @@ static QDF_STATUS dp_soc_attach_poll(void *txrx_soc) return QDF_STATUS_SUCCESS; } -#else -static QDF_STATUS dp_soc_attach_poll(void *txrx_soc) -{ - return -QDF_STATUS_E_NOSUPPORT; -} -#endif static QDF_STATUS dp_soc_interrupt_attach(void *txrx_soc); #if defined(CONFIG_MCL) diff --git a/dp/wifi3.0/dp_rx_err.c b/dp/wifi3.0/dp_rx_err.c index 2e0f03db2749..925c314b74d9 100644 --- a/dp/wifi3.0/dp_rx_err.c +++ b/dp/wifi3.0/dp_rx_err.c @@ -1478,10 +1478,9 @@ dp_rxdma_err_process(struct dp_soc *soc, uint32_t mac_id, uint32_t quota) uint32_t work_done = 0; uint32_t rx_bufs_used = 0; -#ifdef DP_INTR_POLL_BASED if (!pdev) return 0; -#endif + err_dst_srng = pdev->rxdma_err_dst_ring[mac_for_pdev].hal_srng; if (!err_dst_srng) {