summaryrefslogtreecommitdiff
path: root/drivers/tty/serial/omap-serial.c
diff options
context:
space:
mode:
authorJim Wylder <jwylder@motorola.com>2014-05-19 10:09:13 -0500
committerJames Wylder <jwylder@motorola.com>2014-05-22 18:18:41 +0000
commit7fb111ad4ca5198bd26401a3c097e4c58dda1935 (patch)
tree5d12f54a203fbf9d9852b26c43d480f2f61d60db /drivers/tty/serial/omap-serial.c
parenta5a90122c8ec4876373511fd369fd5100ce881f7 (diff)
downloadolio-linux-3.10-7fb111ad4ca5198bd26401a3c097e4c58dda1935.tar.xz
olio-linux-3.10-7fb111ad4ca5198bd26401a3c097e4c58dda1935.zip
IKXCLOCK-1302 tty: omap: reset latency in rt suspend
If platform data is not set (the device was configured throught the device tree) we still need to reset the latency during suspend. Change-Id: I28ed7838d44d9d3aa9fe83687cdbb914c64d2358 Signed-off-by: Jim Wylder <jwylder@motorola.com>
Diffstat (limited to 'drivers/tty/serial/omap-serial.c')
-rw-r--r--drivers/tty/serial/omap-serial.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/tty/serial/omap-serial.c b/drivers/tty/serial/omap-serial.c
index 4c338759f05..93a6329be81 100644
--- a/drivers/tty/serial/omap-serial.c
+++ b/drivers/tty/serial/omap-serial.c
@@ -1635,7 +1635,7 @@ static int serial_omap_runtime_suspend(struct device *dev)
return -EINVAL;
if (!pdata)
- return 0;
+ goto qos;
up->context_loss_cnt = serial_omap_get_context_loss_count(up);
@@ -1651,6 +1651,7 @@ static int serial_omap_runtime_suspend(struct device *dev)
}
}
+qos:
up->latency = PM_QOS_CPU_DMA_LAT_DEFAULT_VALUE;
schedule_work(&up->qos_work);