From 13e5613615a5512c5171107808af381b6fbc9c8e Mon Sep 17 00:00:00 2001 From: Nachiket Kukade Date: Thu, 30 Mar 2017 16:49:48 +0530 Subject: [PATCH] qcacmn: Remove QDF_BUG from htc_wait_recv_ctrl_message Currently if Firmware is down during probe, driver will BUG_ON and re-probe will not happen. Remove QDF_BUG to allow driver to fail gracefully, allowing re-probing by the platform driver. Change-Id: I65fca58168f1c8413eef4790c0f428e64a58f3a7 CRs-Fixed: 2027472 --- htc/htc_recv.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htc/htc_recv.c b/htc/htc_recv.c index 4475e649faa3..32fc785188ba 100644 --- a/htc/htc_recv.c +++ b/htc/htc_recv.c @@ -647,7 +647,8 @@ QDF_STATUS htc_wait_recv_ctrl_message(HTC_TARGET *target) /* Wait for BMI request/response transaction to complete */ if (qdf_wait_single_event(&target->ctrl_response_valid, HTC_CONTROL_RX_TIMEOUT)) { - QDF_BUG(0); + AR_DEBUG_PRINTF(ATH_DEBUG_ERR, + ("Failed to receive control message\n")); return QDF_STATUS_E_FAILURE; }