Date: Mon, 9 Jun 2008 01:37:50 GMT From: Hans Petter Selasky <hselasky@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 143142 for review Message-ID: <200806090137.m591bolR041454@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=143142 Change 143142 by hselasky@hselasky_laptop001 on 2008/06/09 01:37:00 USB cache sync bugfix. After countless hours of debugging I finally saw the light why the OHCI did not work on ARM. I had switched flush and invalidate on the SETUP packet! Grrr. Now it finally works like it should! Affected files ... .. //depot/projects/usb/src/sys/dev/usb/usb_transfer.c#126 edit Differences ... ==== //depot/projects/usb/src/sys/dev/usb/usb_transfer.c#126 (text+ko) ==== @@ -1990,9 +1990,11 @@ xfer->flags_int.control_hdr) { /* special case */ if (xfer->flags_int.usb_mode == USB_MODE_DEVICE) { + /* The device controller writes to memory */ + xfer->frbuffers[0].isread = 1; + } else { + /* The host controller reads from memory */ xfer->frbuffers[0].isread = 0; - } else { - xfer->frbuffers[0].isread = 1; } } else { /* default case */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200806090137.m591bolR041454>