소스 검색

msm: ipa: Fix to set holb discard

As part of HOLB monitoring, uc will clear the HOLB discard if
it was set as part of HOLB monitoring or it can clear if
peripheral recovers just before receiving HOLB_DEL command.
Make change to set HOLB discard back if it was intended to be
configured from AP as part of disconnect scenarios.

Change-Id: I6659a62499150844c3b540fadb4ba8b9535f5e45
Signed-off-by: Chaitanya Pratapa <[email protected]>
Chaitanya Pratapa 4 년 전
부모
커밋
cdca892ba0
1개의 변경된 파일7개의 추가작업 그리고 0개의 파일을 삭제
  1. 7 0
      drivers/platform/msm/ipa/ipa_v3/ipa_utils.c

+ 7 - 0
drivers/platform/msm/ipa/ipa_v3/ipa_utils.c

@@ -9055,6 +9055,13 @@ static int __ipa3_stop_gsi_channel(u32 clnt_hdl)
 		if (res)
 			IPAERR("Delete HOLB monitor failed for ch %d\n",
 					ep->gsi_chan_hdl);
+		/* Set HOLB back if it was set previously.
+		 * There is a possibility that uC will reset as part of HOLB
+		 * monitoring.
+		 */
+		 if (ep->holb.en) {
+		 	ipa3_cfg_ep_holb(clnt_hdl, &ep->holb);
+		 }
 	}
 	memset(&mem, 0, sizeof(mem));