]> git.karo-electronics.de Git - linux-beck.git/commit
atmel_serial: fix uart/console concurrent access
authorMarc Pignat <marc.pignat@hevs.ch>
Wed, 2 Apr 2008 20:04:42 +0000 (13:04 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 2 Apr 2008 22:28:19 +0000 (15:28 -0700)
commit39d4c922b596633da86878b1a5cc881785b8e5fa
treec2100914ee0c73e3703905db1818c5f5fd04f97a
parentba0657ff0527bab83387e19eb98b423fcc290674
atmel_serial: fix uart/console concurrent access

Strange chars appear on the serial port when a printk and a printf
happens at the same time.  This is caused by the pdc sending chars while
atmel_console_write (called from printk) is executing

Concurent access of uart and console to the same port leads to corrupted
data to be transmitted, so disable tx dma (PDC) while writing to the
console.

Signed-off-by: Marc Pignat <marc.pignat@hevs.ch>
Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/serial/atmel_serial.c