Date: Wed, 22 Mar 2006 21:09:57 GMT From: Olivier Houchard <cognet@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 93811 for review Message-ID: <200603222109.k2ML9vUo097977@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=93811 Change 93811 by cognet@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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200603222109.k2ML9vUo097977>