ath10k: remove excessive CONFIG_PM_SLEEP checks

There's no big overhead and without those #ifdefs
the code looks simpler.

Signed-off-by: Bartosz Markowski <bartosz.markowski@tieto.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
ath10k: kill PCIE_LOCAL_REG_READ/WRITE macros

Convert them into inline functions with better names.

Signed-off-by: Bartosz Markowski <bartosz.markowski@tieto.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
ath10k: update supported firmware tag to .599

Signed-off-by: Bartosz Markowski <bartosz.markowski@tieto.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
ath10k: update FIXME comments

Signed-off-by: Bartosz Markowski <bartosz.markowski@tieto.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
ath10k: rename WAR_CE_SRC_RING_WRITE_IDX_SET

Rename the inline funciton into ath10k_set_source_ring_write_index().

NOTE: This function is a wrapper to workaround QCA988x_1.0 HW CE problem.
If we decide to drop this HW revision support in the future, we
may remove this function as well.

Signed-off-by: Bartosz Markowski <bartosz.markowski@tieto.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
ath10k: replace TARGET_READ/WRITE macros with inline funcitons

Rename and change into inline functions:
* ath10k_pci_read2
* ath10k_pci_write32

Simplify the argument lists. We store the iomem address in
ath_pci structure. So simply pass to new read/write32 functions
pointer to ath10k struct and allow them to dereference the address.
Those, get rid of targid (intermediate) variables.

Signed-off-by: Bartosz Markowski <bartosz.markowski@tieto.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>