]> err.no Git - linux-2.6/commit
[Blackfin] serial driver: fix bug - cache the bits of the LSR on systems where the...
authorMike Frysinger <michael.frysinger@analog.com>
Mon, 24 Dec 2007 11:40:05 +0000 (19:40 +0800)
committerBryan Wu <cooloney@kernel.org>
Mon, 24 Dec 2007 11:40:05 +0000 (19:40 +0800)
commit0bcfd70ea11a5d6f2362be463513a60245a62baf
treefdf47e68cc5fc916da5d985f797b262c36997c4e
parent4c195ad88b7df54b2e7340dec3446aee6ca84cd1
[Blackfin] serial driver: fix bug - cache the bits of the LSR on systems where the LSR is read-to-clear

Cache the bits of the LSR on systems where the LSR is read-to-clear
so that we can safely read the LSR in random places.  this fixes
older parts where break/framing/parity/overflow was not being detected
at all in PIO mode, and this fixes newer parts where
break/framing/parity/overflow was being reported all the time
without being cleared.

Signed-off-by: Mike Frysinger <michael.frysinger@analog.com>
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
drivers/serial/bfin_5xx.c
include/asm-blackfin/mach-bf527/bfin_serial_5xx.h
include/asm-blackfin/mach-bf533/bfin_serial_5xx.h
include/asm-blackfin/mach-bf537/bfin_serial_5xx.h
include/asm-blackfin/mach-bf548/bfin_serial_5xx.h
include/asm-blackfin/mach-bf561/bfin_serial_5xx.h