atmel_serial: Drain console TX shifter before suspending
authorHaavard Skinnemoen <haavard.skinnemoen@atmel.com>
Fri, 14 Mar 2008 13:54:13 +0000 (14:54 +0100)
committerHaavard Skinnemoen <haavard.skinnemoen@atmel.com>
Wed, 2 Jul 2008 09:05:00 +0000 (11:05 +0200)
commite1c609efbc0333840f2af2d875ca52ed8ee18587
tree29839e026441063433828813b6758a16aa88e9a6
parentf826caa44902ddbe93174f0b642d8abf9698c08e
atmel_serial: Drain console TX shifter before suspending

Funny things may happen if we stop the USART clock before the shifter is
empty. Prevent this from happening by waiting until the shifter is
completely drained before allowing suspend to continue.

Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
Cc: Andrew Victor <linux@maxim.org.za>
drivers/serial/atmel_serial.c