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:
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user