9e6077bd84
The RXBRK field in the AT91/AT32 USART status register has the following definition according to e.g. the AT32AP7000 data sheet: RXBRK: Break Received/End of Break 0: No Break received or End of Break detected since the last RSTSTA. 1: Break Received or End of Break detected since the last RSTSTA. Thus, for each break, the USART sets the RXBRK bit twice. This patch modifies the driver to report the break event to the serial core only once by keeping track of whether a break condition is currently active. The break_active flag is reset as soon as a character is received, so even if we miss the start-of-break interrupt this should do the right thing. Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com> Cc: Andrew Victor <andrew@sanpeople.com> Cc: Russell King <rmk@arm.linux.org.uk> Cc: Ivan Kuten <ivan.kuten@promwad.com> Cc: Nicolas Ferre <nicolas.ferre@rfo.atmel.com> Cc: Patrice Vilchez <patrice.vilchez@rfo.atmel.com> Cc: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> |
||
---|---|---|
.. | ||
cpm_uart | ||
jsm | ||
8250_accent.c | ||
8250_acorn.c | ||
8250_au1x00.c | ||
8250_boca.c | ||
8250_early.c | ||
8250_exar_st16c554.c | ||
8250_fourport.c | ||
8250_gsc.c | ||
8250_hp300.c | ||
8250_hub6.c | ||
8250_mca.c | ||
8250_pci.c | ||
8250_pnp.c | ||
8250.c | ||
8250.h | ||
21285.c | ||
68328serial.c | ||
68328serial.h | ||
68360serial.c | ||
amba-pl010.c | ||
amba-pl011.c | ||
atmel_serial.c | ||
atmel_serial.h | ||
bfin_5xx.c | ||
clps711x.c | ||
crisv10.c | ||
dz.c | ||
dz.h | ||
icom.c | ||
icom.h | ||
imx.c | ||
ioc3_serial.c | ||
ioc4_serial.c | ||
ip22zilog.c | ||
ip22zilog.h | ||
Kconfig | ||
m32r_sio_reg.h | ||
m32r_sio.c | ||
m32r_sio.h | ||
Makefile | ||
mcfserial.c | ||
mcfserial.h | ||
mpc52xx_uart.c | ||
mpsc.c | ||
mux.c | ||
netx-serial.c | ||
of_serial.c | ||
pmac_zilog.c | ||
pmac_zilog.h | ||
pnx8xxx_uart.c | ||
pxa.c | ||
s3c2410.c | ||
sa1100.c | ||
serial_core.c | ||
serial_cs.c | ||
serial_ks8695.c | ||
serial_lh7a40x.c | ||
serial_txx9.c | ||
sh-sci.c | ||
sh-sci.h | ||
sn_console.c | ||
suncore.c | ||
suncore.h | ||
sunhv.c | ||
sunsab.c | ||
sunsab.h | ||
sunsu.c | ||
sunzilog.c | ||
sunzilog.h | ||
uartlite.c | ||
v850e_uart.c | ||
vr41xx_siu.c |