summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArun Murthy <arun.murthy@stericsson.com>2012-01-10 15:23:49 +0530
committerPhilippe Langlais <philippe.langlais@stericsson.com>2012-06-05 10:40:25 +0200
commit24477ef0ab93dc81f4b4937b39a3296f1f7aa87d (patch)
tree68df656328b6cdf65700c0566c20eaf1e0e70313
parent5291976ef6237af47e1644ce1f526315887265f1 (diff)
u8500-shrm: inactivity timer
change the inactivity timer of audio and common messages to 25ms. Since there is audio patch every 20ms, the inactivity timer can be 25ms. ST-Ericsson Linux next: NA ST-Ericsson ID: 410076 ST-Ericsson FOSS-OUT ID: Trivial Change-Id: I9c66012b7283bcf60786ef3475111ce398cf9044 Signed-off-by: Arun Murthy <arun.murthy@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/45200 Reviewed-by: Bibek BASU <bibek.basu@stericsson.com> Reviewed-by: QATOOLS Reviewed-by: QABUILD Tested-by: Bibek BASU <bibek.basu@stericsson.com> Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
-rw-r--r--drivers/modem/shrm/shrm_fifo.c4
-rw-r--r--drivers/modem/shrm/shrm_protocol.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/drivers/modem/shrm/shrm_fifo.c b/drivers/modem/shrm/shrm_fifo.c
index 1804c1be69e..5fe9f3c5724 100644
--- a/drivers/modem/shrm/shrm_fifo.c
+++ b/drivers/modem/shrm/shrm_fifo.c
@@ -30,8 +30,8 @@
#define MASK_8_16_BIT 0x0000FF00
#define MSG_LEN_OFFSET 16
#define SHRM_VER 2
-#define ca_ist_inactivity_timer 100 /*100ms */
-#define ca_csc_inactivity_timer 100 /*100ms */
+#define ca_ist_inactivity_timer 25 /*25ms */
+#define ca_csc_inactivity_timer 25 /*25ms */
static u8 msg_audio_counter;
static u8 msg_common_counter;
diff --git a/drivers/modem/shrm/shrm_protocol.c b/drivers/modem/shrm/shrm_protocol.c
index cfa65cda18f..dfb8f14f0e2 100644
--- a/drivers/modem/shrm/shrm_protocol.c
+++ b/drivers/modem/shrm/shrm_protocol.c
@@ -400,7 +400,7 @@ void shm_ac_read_notif_0_tasklet(unsigned long tasklet_data)
dev_err(shrm->dev, "Invalid boot state\n");
}
/* start timer here */
- hrtimer_start(&timer, ktime_set(0, 10*NSEC_PER_MSEC),
+ hrtimer_start(&timer, ktime_set(0, 25*NSEC_PER_MSEC),
HRTIMER_MODE_REL);
atomic_dec(&ac_sleep_disable_count);
@@ -438,7 +438,7 @@ void shm_ac_read_notif_1_tasklet(unsigned long tasklet_data)
shrm_audio_tx_state = SHRM_IDLE;
}
/* start timer here */
- hrtimer_start(&timer, ktime_set(0, 10*NSEC_PER_MSEC),
+ hrtimer_start(&timer, ktime_set(0, 25*NSEC_PER_MSEC),
HRTIMER_MODE_REL);
atomic_dec(&ac_sleep_disable_count);
atomic_dec(&ac_msg_pend_1);