qcacmn: Do runtime pm sync resume when printing ring stats

Printing ring stats from requesting txrx stats needs access PCIe link
so make sure it is resumed by doing a sync resume if it is runtime PM
suspended. Also response of h2t_ext_stats_msg from FW is not guaranteed
so tag it properly so that in HTC layer, corresponding "put" API will
be called right after sending the packet.

Change-Id: Idc5797b38557ed5779d920c72200b9d28769ab58
CRs-fixed: 2487521
This commit is contained in:
Yue Ma
2019-07-16 18:47:52 -07:00
committed by nshrivas
parent 8eda31cab3
commit e92fe029df
4 changed files with 49 additions and 1 deletions

View File

@@ -4587,6 +4587,9 @@ dp_print_ring_stats(struct dp_pdev *pdev)
uint32_t i;
int mac_id;
if (hif_pm_runtime_get_sync(pdev->soc->hif_handle))
return;
dp_print_ring_stat_from_hal(pdev->soc,
&pdev->soc->reo_exception_ring,
REO_EXCEPTION);
@@ -4645,6 +4648,8 @@ dp_print_ring_stats(struct dp_pdev *pdev)
dp_print_ring_stat_from_hal(pdev->soc,
&pdev->rxdma_err_dst_ring[i],
RXDMA_DST);
hif_pm_runtime_put(pdev->soc->hif_handle);
}
/**