Date: Mon, 1 Mar 2010 18:05:20 GMT From: Hans Petter Selasky <hselasky@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 175253 for review Message-ID: <201003011805.o21I5Kmk082997@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://p4web.freebsd.org/chv.cgi?CH=175253 Change 175253 by hselasky@hselasky_laptop001 on 2010/03/01 18:04:20 USB controller (Device Side): - bugfix for USS820 driver. - need to manually reset TX FIFO at each SETUP transaction because the chip doesn't do this by itself. - patch by: HPS @ Affected files ... .. //depot/projects/usb/src/sys/dev/usb/controller/uss820dci.c#31 edit Differences ... ==== //depot/projects/usb/src/sys/dev/usb/controller/uss820dci.c#31 (text+ko) ==== @@ -333,6 +333,14 @@ } else { sc->sc_dv_addr = 0xFF; } + + /* reset TX FIFO */ + temp = USS820_READ_1(sc, USS820_TXCON); + temp |= USS820_TXCON_TXCLR; + USS820_WRITE_1(sc, USS820_TXCON, temp); + temp &= ~USS820_TXCON_TXCLR; + USS820_WRITE_1(sc, USS820_TXCON, temp); + return (0); /* complete */ setup_not_complete:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201003011805.o21I5Kmk082997>