Bläddra i källkod

qcacmn: print the value of register fw_indicator

For legacy PCIe chip like Rome, FW will use register 'fw_indicator'
to indicate more info, when failure occurs.

Here to print its value for debug purpose.

CRs-Fixed: 2242094
Change-Id: I9037dc29091ec5d7571414bb9e135dfaaf0f6dd9
Lin Bai 6 år sedan
förälder
incheckning
e2137870de
1 ändrade filer med 6 tillägg och 2 borttagningar
  1. 6 2
      hif/src/ce/ce_main.c

+ 6 - 2
hif/src/ce/ce_main.c

@@ -3494,10 +3494,14 @@ irqreturn_t hif_fw_interrupt_handler(int irq, void *arg)
 			/*
 			 * Probable Target failure before we're prepared
 			 * to handle it.  Generally unexpected.
+			 * fw_indicator used as bitmap, and defined as below:
+			 *     FW_IND_EVENT_PENDING    0x1
+			 *     FW_IND_INITIALIZED      0x2
+			 *     FW_IND_NEEDRECOVER      0x4
 			 */
 			AR_DEBUG_PRINTF(ATH_DEBUG_ERR,
-				("%s: Early firmware event indicated\n",
-				 __func__));
+				("%s: Early firmware event indicated 0x%x\n",
+				 __func__, fw_indicator));
 		}
 	} else {
 		if (Q_TARGET_ACCESS_END(scn) < 0)