Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 325774
b: refs/heads/master
c: ac57e7f
h: refs/heads/master
v: v3
  • Loading branch information
Sourav Poddar authored and Greg Kroah-Hartman committed Sep 21, 2012
1 parent e2cdb4f commit 75c4d2f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 15 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 034dc4db6fefa8b9b55a20e816a05f132fdd56bc
refs/heads/master: ac57e7f38ea6fe7358cd0b7a2f2d21aef5ab70cd
23 changes: 9 additions & 14 deletions trunk/drivers/tty/serial/omap-serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -1222,10 +1222,8 @@ static int serial_omap_suspend(struct device *dev)
{
struct uart_omap_port *up = dev_get_drvdata(dev);

if (up) {
uart_suspend_port(&serial_omap_reg, &up->port);
flush_work_sync(&up->qos_work);
}
uart_suspend_port(&serial_omap_reg, &up->port);
flush_work_sync(&up->qos_work);

return 0;
}
Expand All @@ -1234,8 +1232,8 @@ static int serial_omap_resume(struct device *dev)
{
struct uart_omap_port *up = dev_get_drvdata(dev);

if (up)
uart_resume_port(&serial_omap_reg, &up->port);
uart_resume_port(&serial_omap_reg, &up->port);

return 0;
}
#endif
Expand Down Expand Up @@ -1553,17 +1551,14 @@ static int serial_omap_runtime_suspend(struct device *dev)
static int serial_omap_runtime_resume(struct device *dev)
{
struct uart_omap_port *up = dev_get_drvdata(dev);
struct omap_uart_port_info *pdata = dev->platform_data;

if (up && pdata) {
u32 loss_cnt = serial_omap_get_context_loss_count(up);
u32 loss_cnt = serial_omap_get_context_loss_count(up);

if (up->context_loss_cnt != loss_cnt)
serial_omap_restore_context(up);
if (up->context_loss_cnt != loss_cnt)
serial_omap_restore_context(up);

up->latency = up->calc_latency;
schedule_work(&up->qos_work);
}
up->latency = up->calc_latency;
schedule_work(&up->qos_work);

return 0;
}
Expand Down

0 comments on commit 75c4d2f

Please sign in to comment.