]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
atmel_serial: filter out FP during baud rate detection
authorHaavard Skinnemoen <haavard.skinnemoen@atmel.com>
Fri, 6 Jun 2008 05:46:39 +0000 (22:46 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 6 Jun 2008 18:29:12 +0000 (11:29 -0700)
commit9c81c5c95c00c35a328e1757ca45a66647105f6c
tree1854f2b91e64a3a7bd7f5b1c7f8d52a8ee75204c
parent81c6ce9bd3ed3a88caeb9ed97d874450d53339dc
atmel_serial: filter out FP during baud rate detection

I made a change to u-boot that used the FP (Fractional Part) field of BRGR
to achieve more accurate baud rate generation.  Unfortunately, the
atmel_serial driver looks at the whole BRGR register when trying to detect
the baud rate that the port is currently running at, so setting FP to a
nonzero value breaks the baud rate detection.

I'll sit on the u-boot patch for a while longer, but this is clearly a
bug in the atmel_serial driver which should be fixed.

Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
Acked-by: Andrew Victor <linux@maxim.org.za>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/serial/atmel_serial.c