[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <48D3C319.4040605@artecdesign.ee>
Date: Fri, 19 Sep 2008 18:19:53 +0300
From: Anti Sullin <anti.sullin@...ecdesign.ee>
To: Haavard Skinnemoen <haavard.skinnemoen@...el.com>
CC: linux-serial@...r.kernel.org, linux-kernel@...r.kernel.org,
Andrew Victor <linux@...im.org.za>
Subject: Re: [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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists