瀏覽代碼

msm: ipa: cancel timer after EOT packet sent

Canceling the nop descriptor timer in case we eventually
do send an EOT packet since we cross the threshold

Change-Id: Ifcf8615c19cf8ce36a2198d214c7c7ff68501e43
Acked-by: Tal Gelbard <[email protected]>
Signed-off-by: Amir Levy <[email protected]>
Amir Levy 5 年之前
父節點
當前提交
ec17a7f341
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      drivers/platform/msm/ipa/ipa_v3/ipa_dp.c

+ 2 - 0
drivers/platform/msm/ipa/ipa_v3/ipa_dp.c

@@ -534,6 +534,8 @@ int ipa3_send(struct ipa3_sys_context *sys,
 					GSI_XFER_FLAG_EOT;
 				gsi_xfer[i].flags |=
 					GSI_XFER_FLAG_BEI;
+				hrtimer_try_to_cancel(&sys->db_timer);
+				sys->nop_pending = false;
 			} else {
 				send_nop = true;
 			}