From 211a0c13bc795766a26aa4f5899197690d38051a Mon Sep 17 00:00:00 2001 From: Arun Kumar Khandavalli Date: Fri, 28 Aug 2020 11:51:23 +0530 Subject: [PATCH] qcacmn: Return error incase of hif bus runtime resume For hif_bus_resume till now driver does panic whenever there is failure. This is now handled in the cnss driver which will collect the required dump to debug the link down. Remove the bug_on, just log and return the status. Change-Id: Ief4d86dd76c0bbde361b69b38894a944eec05aae CRs-Fixed: 2765117 --- hif/src/hif_runtime_pm.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/hif/src/hif_runtime_pm.c b/hif/src/hif_runtime_pm.c index f1bf9d0eb2e7..a3b9336991fd 100644 --- a/hif/src/hif_runtime_pm.c +++ b/hif/src/hif_runtime_pm.c @@ -873,9 +873,14 @@ void hif_fastpath_resume(struct hif_opaque_softc *hif_ctx) */ int hif_runtime_resume(struct hif_opaque_softc *hif_ctx) { + int errno; + QDF_BUG(!hif_bus_resume_noirq(hif_ctx)); - QDF_BUG(!hif_bus_resume(hif_ctx)); - return 0; + errno = hif_bus_resume(hif_ctx); + if (errno) + HIF_ERROR("%s: failed runtime resume: %d", __func__, errno); + + return errno; } /**