lkml.org 
[lkml]   [2008]   [Sep]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] atmel_serial: update the powersave handler to match serial core
One more bug of mine...

Haavard Skinnemoen wrote:
> }
> @@ -1491,11 +1498,9 @@ static int atmel_serial_resume(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_port->suspended) {
> - uart_resume_port(&atmel_uart, port);
> - atmel_port->suspended = 0;
> - } else
> - disable_irq_wake(port->irq);
> + device_set_wakeup_enable(&pdev->dev, atmel_port->may_wakeup);
> +
> + uart_resume_port(&atmel_uart, port);
Just now noticed - these two lines should be switched.
>
> return 0;
> }



--
Anti Sullin
Embedded Software Engineer
Artec Design LLC
Akadeemia tee 23A, 12618, Tallinn, Estonia
http://www.artecdesign.ee


\
 
 \ /
  Last update: 2008-09-19 17:47    [W:0.035 / U:0.448 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site