esoc: Check for modem status LOW prior to error handling

With the check for the modem status to come LOW, the APQ
could be sure that the modem has not landed into any other
problems on its way to the debug path. Currently, we wait
for the modem status to come LOW only for the situation
where the APQ panics. However, this check is also needed
when the modem panics. The necessary action to handle the
crash is now placed after the check is done.

Change-Id: I16cf1e3a4fdacd1fc98c6f2ec6173de7ea22933a
Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
Signed-off-by: Venkata Narendra Kumar Gutta <vnkgutta@codeaurora.org>
3 files changed