Merge "msm: ipa: set SSR TAG process timeout to 150msec"

This commit is contained in:
Linux Build Service Account 2015-01-13 02:35:33 -08:00 committed by Gerrit - the friendly Code Review server
commit 8a749c2498
2 changed files with 5 additions and 8 deletions

View File

@ -1,4 +1,4 @@
/* Copyright (c) 2012-2014, The Linux Foundation. All rights reserved.
/* Copyright (c) 2012-2015, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
@ -48,7 +48,7 @@
#define IPA_AGGR_MAX_STR_LENGTH (10)
#define CLEANUP_TAG_PROCESS_TIMEOUT 20
#define CLEANUP_TAG_PROCESS_TIMEOUT 150
#define IPA_AGGR_STR_IN_BYTES(str) \
(strnlen((str), IPA_AGGR_MAX_STR_LENGTH - 1) + 1)
@ -1486,7 +1486,7 @@ static int ipa_q6_set_ex_path_dis_agg(void)
}
}
/* Will wait 20msecs for IPA tag process completion */
/* Will wait 150msecs for IPA tag process completion */
retval = ipa_tag_process(desc, num_descs,
msecs_to_jiffies(CLEANUP_TAG_PROCESS_TIMEOUT));
if (retval) {
@ -1497,10 +1497,6 @@ static int ipa_q6_set_ex_path_dis_agg(void)
kfree(desc[index].user1);
retval = -EINVAL;
}
/* Ignoring TAG process timeout */
if (retval == -ETIME)
retval = 0;
}
kfree(desc);

View File

@ -4230,7 +4230,8 @@ int ipa_tag_process(struct ipa_desc desc[],
IPADBG("waiting for TAG response\n");
res = wait_for_completion_timeout(&comp->comp, timeout);
if (res == 0) {
IPAERR("timeout for waiting for TAG response\n");
IPAERR("timeout (%lu msec) on waiting for TAG response\n",
timeout);
WARN_ON(1);
if (atomic_dec_return(&comp->cnt) == 0)
kfree(comp);