Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 99247
b: refs/heads/master
c: e1c609e
h: refs/heads/master
i:
  99245: 8dbbc52
  99243: 58e0d04
  99239: 7e9d9b5
  99231: 9f0921a
v: v3
  • Loading branch information
Haavard Skinnemoen committed Jul 2, 2008
1 parent 9138a27 commit 5f3cbb0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f826caa44902ddbe93174f0b642d8abf9698c08e
refs/heads/master: e1c609efbc0333840f2af2d875ca52ed8ee18587
6 changes: 6 additions & 0 deletions trunk/drivers/serial/atmel_serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -1454,6 +1454,12 @@ static int atmel_serial_suspend(struct platform_device *pdev,
struct uart_port *port = platform_get_drvdata(pdev);
struct atmel_uart_port *atmel_port = to_atmel_uart_port(port);

if (atmel_is_console_port(port) && console_suspend_enabled) {
/* Drain the TX shifter */
while (!(UART_GET_CSR(port) & ATMEL_US_TXEMPTY))
cpu_relax();
}

if (device_may_wakeup(&pdev->dev)
&& !atmel_serial_clk_will_stop())
enable_irq_wake(port->irq);
Expand Down

0 comments on commit 5f3cbb0

Please sign in to comment.