PERFORCE change 93811 for review
Olivier Houchard
cognet at FreeBSD.org
Wed Mar 22 21:09:58 UTC 2006
http://perforce.freebsd.org/chv.cgi?CH=93811
Change 93811 by cognet at cognet on 2006/03/22 21:09:31
We have to reset the error bits once we handled the break.
Affected files ...
.. //depot/projects/arm/src/sys/arm/at91/uart_dev_at91usart.c#13 edit
Differences ...
==== //depot/projects/arm/src/sys/arm/at91/uart_dev_at91usart.c#13 (text+ko) ====
@@ -366,8 +366,12 @@
ipend |= SER_INT_TXIDLE;
if (csr & USART_CSR_RXRDY)
ipend |= SER_INT_RXREADY;
- if (csr & USART_CSR_RXBRK)
+ if (csr & USART_CSR_RXBRK) {
+ unsigned int cr = USART_CR_RSTSTA;
+
ipend |= SER_INT_BREAK;
+ uart_setreg(&sc->sc_bas, USART_CR, cr);
+ }
mtx_unlock_spin(&sc->sc_hwmtx);
return (ipend);
}
More information about the p4-projects
mailing list