Prechádzať zdrojové kódy

qcacmn: skip bmi for srng based chips

SRNG based chips will use MHI based firmware download

Change-Id: I4125578a33315011075677a0ea7e4b48c914037f
CRs-Fixed: 1089874
Houston Hoffman 8 rokov pred
rodič
commit
6c0c3f95fa
1 zmenil súbory, kde vykonal 2 pridanie a 7 odobranie
  1. 2 7
      hif/src/hif_main.c

+ 2 - 7
hif/src/hif_main.c

@@ -750,13 +750,8 @@ bool hif_needs_bmi(struct hif_opaque_softc *hif_ctx)
 {
 	struct hif_softc *hif_sc = HIF_GET_SOFTC(hif_ctx);
 
-	if (hif_sc->bus_type == QDF_BUS_TYPE_SNOC)
-		return false;
-
-	if (hif_sc->target_info.target_type == TARGET_TYPE_QCA8074)
-		return false;
-
-	return true;
+	return (hif_sc->bus_type != QDF_BUS_TYPE_SNOC) &&
+		!ce_srng_based(hif_sc);
 }
 
 /**