Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Sep 2006 11:53:06 +0200
From:      Hans Petter Selasky <hselasky@c2i.net>
To:        Juergen Lock <nox@jelal.kn-bremen.de>
Cc:        freebsd-usb@freebsd.org
Subject:   Re: umass0: BBB reset failed, TIMEOUT (again)
Message-ID:  <200609221153.07575.hselasky@c2i.net>
In-Reply-To: <200609220834.30428.hselasky@c2i.net>
References:  <20060920011107.GA9379@saturn.kn-bremen.de> <20060921220447.GA10135@saturn.kn-bremen.de> <200609220834.30428.hselasky@c2i.net>

next in thread | previous in thread | raw e-mail | index | archive | help

On Friday 22 September 2006 08:34, Hans Petter Selasky wrote:
> On Friday 22 September 2006 00:04, Juergen Lock wrote:
> > On Wed, Sep 20, 2006 at 11:18:32AM +0200, Hans Petter Selasky wrote:
> > > On Wednesday 20 September 2006 03:11, Juergen Lock wrote:
...

Could you have tried the following patch:

Lookup the following piece of code in /sys/dev/usb/umass.c :

static void
umass_t_bbb_data_read_callback(struct usbd_xfer *xfer)
{
        struct umass_softc *sc = xfer->priv_sc; 
        u_int32_t max_bulk = (UMASS_BULK_SIZE - 
                              (UMASS_BULK_SIZE % xfer->max_packet_size));
        USBD_CHECK_STATUS(xfer);

 tr_error:
        if (xfer->error == USBD_CANCELLED) {
            umass_tr_error(xfer);
        } else {
            umass_transfer_start(sc, UMASS_T_BBB_DATA_RD_CS);
        }
        return;

 tr_transferred:

Change:
   umass_transfer_start(sc, UMASS_T_BBB_DATA_RD_CS);
Into:
   umass_transfer_start(sc, UMASS_T_BBB_STATUS);

Then recompile the umass module and/or the kernel, depending on how you load 
umass.

Then try to read from your umass device.
 
--HPS



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200609221153.07575.hselasky>