Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 338381
b: refs/heads/master
c: 39aee51
h: refs/heads/master
i:
  338379: b73ff50
v: v3
  • Loading branch information
Shubhrajyoti D authored and Greg Kroah-Hartman committed Oct 25, 2012
1 parent c5b6584 commit d84dfed
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 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: 57cf50acbf5b153f331a966ecc08836324c1cd8d
refs/heads/master: 39aee51d439d8ad7339ee49dc3ccaf91ca61d8f0
12 changes: 8 additions & 4 deletions trunk/drivers/tty/serial/omap-serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ struct uart_omap_port {
unsigned char msr_saved_flags;
char name[20];
unsigned long port_activity;
u32 context_loss_cnt;
int context_loss_cnt;
u32 errata;
u8 wakeups_enabled;
unsigned int irq_pending:1;
Expand Down Expand Up @@ -1556,11 +1556,15 @@ static int serial_omap_runtime_resume(struct device *dev)
{
struct uart_omap_port *up = dev_get_drvdata(dev);

u32 loss_cnt = serial_omap_get_context_loss_count(up);
int loss_cnt = serial_omap_get_context_loss_count(up);

if (up->context_loss_cnt != loss_cnt)
if (loss_cnt < 0) {
dev_err(dev, "serial_omap_get_context_loss_count failed : %d\n",
loss_cnt);
serial_omap_restore_context(up);

} else if (up->context_loss_cnt != loss_cnt) {
serial_omap_restore_context(up);
}
up->latency = up->calc_latency;
schedule_work(&up->qos_work);

Expand Down

0 comments on commit d84dfed

Please sign in to comment.