Re: USB 1.0 IDE to ATAPI drive enclosure failure

From: Barney Wolff <barney_at_databus.com>
Date: Mon, 24 Nov 2003 18:01:06 -0500
On Mon, Nov 24, 2003 at 03:35:42PM -0700, M. Warner Losh wrote:
> : Why hasn't anything been committed?
> 
> Code freeze?

I understand the concept, but I haven't seen any reports of people
claiming that OHCI works for other than mice/keyboards without
the following patch (from "Brian F. Feldman" <green_at_freebsd.org>):
--- ohci.c      12 Nov 2003 01:40:11 -0000      1.138
+++ ohci.c      22 Nov 2003 03:28:42 -0000
_at__at_ -569,7 +569,7 _at__at_
                cur->td.td_cbp = htole32(dataphys);
                cur->nexttd = next;
                cur->td.td_nexttd = htole32(next->physaddr);
-               cur->td.td_be = htole32(DMAADDR(dma, curlen - 1));
+               cur->td.td_be = htole32(DMAADDR(dma, offset + curlen - 1));
                cur->len = curlen;
                cur->flags = OHCI_ADD_LEN;
                cur->xfer = xfer;

It cured my problems with a Sony DSC F707.  Maybe most people with
OHCI controllers haven't had problems, but if so they've been quietly
satisfied.

-- 
Barney Wolff         http://www.databus.com/bwresume.pdf
I'm available by contract or FT, in the NYC metro area or via the 'Net.
Received on Mon Nov 24 2003 - 14:01:15 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:30 UTC