ath10k: introduce CE_ATTR_POLL attribute for polling pipe
authorGovind Singh <govinds@codeaurora.org>
Mon, 3 Sep 2018 17:07:58 +0000 (20:07 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 6 Sep 2018 15:55:22 +0000 (18:55 +0300)
commit9abcb9371bccc8aed6fea273058c322f4a886a2d
tree44123d4b6bf79f278218e65a659a1fc5b42b9cd0
parent31324d17976ed063839db5de3ce0b37a48dd0439
ath10k: introduce CE_ATTR_POLL attribute for polling pipe

Existing copy engine interrupt enable logic assumes that last
CE is using polling mode and due to this interrupt for last copy engine
are always disabled. WCN3990 uses last CE for pktlog and
interrupt remains disabled with existing logic.

To mitigate this issue, introduce CE_ATTR_POLL flag and control
the interrupt based on the flag which can be set in ce_attr.

Testing:
    Tested on WCN3990 and QCA6174 HW.
    Tested FW: WLAN.HL.2.0-01192-QCAHLSWMTPLZ-1,
               WLAN.RM.4.4.1-00109-QCARMSWPZ-1

Signed-off-by: Govind Singh <govinds@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/ath10k/ce.c
drivers/net/wireless/ath/ath10k/ce.h
drivers/net/wireless/ath/ath10k/pci.c