Parcourir la source

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 il y a 4 ans
Parent
commit
ec17a7f341
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  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;
 			}