PERFORCE change 100813 for review

Warner Losh imp at FreeBSD.org
Thu Jul 6 23:01:32 UTC 2006


http://perforce.freebsd.org/chv.cgi?CH=100813

Change 100813 by imp at imp_lighthouse on 2006/07/06 23:00:51

	Even when there's a timeout (especially?) you need to flush
	the cache properly.  Why I didn't see this before now, I don't
	know.

Affected files ...

.. //depot/projects/arm/src/sys/arm/at91/uart_dev_at91usart.c#34 edit

Differences ...

==== //depot/projects/arm/src/sys/arm/at91/uart_dev_at91usart.c#34 (text+ko) ====

@@ -568,6 +568,8 @@
 		// Not sure if there's a race here at fast baud rates
 		// we need to worry about.
 		WR4(&sc->sc_bas, PDC_PTCR, PDC_PTCR_RXTDIS);
+		bus_dmamap_sync(atsc->dmatag, atsc->ping->map,
+		    BUS_DMASYNC_POSTREAD);
 		len = sc->sc_rxfifosz - RD4(&sc->sc_bas, PDC_RCR);
 		for (i = 0; i < len; i++)
 			uart_rx_put(sc, atsc->ping->buffer[i]);


More information about the p4-projects mailing list