summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorArun Murthy <arun.murthy@stericsson.com>2012-01-24 15:57:26 +0530
committerPhilippe Langlais <philippe.langlais@stericsson.com>2012-05-22 11:07:25 +0200
commit90f2a2c4152a251b0bfad40d7fdc512f543cd5ce (patch)
treedcfa761033871f5c0bbbd7459f5b28a38f8a4734 /include
parent5c509223e311766d48f03e1be403cf33ddd526de (diff)
u8500-shrm: add timer to check if modem has stuck or hang
On APE sending msg_pend notification, the only way when APE gets to know that modem is not responsive, is when it ends up with a FIFO full. In order to get this FIFO full on common channel it might take 30min. Hence add a timer and start the timer on msg_pend_notification and cancel the timer at read_noti. If timer expires within this time then its for sure that modem is not responsive. Initiate MSR in that case. The current timer value is 6sec. Since there are two timers and on expiry of either of the timer, modem_reset is called, have added flag so as to ensure that modem_rest is not called simultaneously on exit of both the timer in short span of time. ST-Ericsson Linux next: NA ST-Ericsson ID: 407459 ST-Ericsson FOSS-OUT ID: Trivial Change-Id: If3e7b61ee57ea4b1d386a50c8c4b99c2cd701e13 Signed-off-by: Arun Murthy <arun.murthy@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/46337 Reviewed-by: Ashok G X <ashok.g@stericsson.com> Tested-by: Ashok G X <ashok.g@stericsson.com> Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/modem/shrm/shrm_driver.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/modem/shrm/shrm_driver.h b/include/linux/modem/shrm/shrm_driver.h
index 96b5c594d34..072a232d53d 100644
--- a/include/linux/modem/shrm/shrm_driver.h
+++ b/include/linux/modem/shrm/shrm_driver.h
@@ -76,6 +76,8 @@
* @shm_ca_wake_kw_task: task for receiving cmt-ape wake requests
* @shm_ac_sleep_kw: kthread worker for recieving ape-cmt sleep requests
* @shm_ac_sleep_kw_task: task for recieving ape-cmt sleep requests
+ * @shm_mod_stuck_kw: kthread worker to reset the modem
+ * &shm_mod_stuck_kw_task: task for sending modem reset request
* @send_ac_msg_pend_notify_0: work for handling pending message on common
* channel
* @send_ac_msg_pend_notify_1: work for handling pending message on audio
@@ -134,6 +136,8 @@ struct shrm_dev {
struct task_struct *shm_ca_wake_kw_task;
struct kthread_worker shm_ac_sleep_kw;
struct task_struct *shm_ac_sleep_kw_task;
+ struct kthread_worker shm_mod_stuck_kw;
+ struct task_struct *shm_mod_stuck_kw_task;
struct kthread_work send_ac_msg_pend_notify_0;
struct kthread_work send_ac_msg_pend_notify_1;
struct kthread_work shm_ac_wake_req;