Georg Acher wrote:
> 
> On Mon, Mar 27, 2000 at 04:45:56PM +0000, Johan Verrept wrote:
> > hello,
> >
> > i am still trying to write my driver, but i got into problems.
> >
> > When i try to do a bulk out operation, i get this error :
> >
> > usb-uhci.c: interrupt, status 3, frame# 945
> > usb-uhci-debug.h:   TD @ c15fbd20/015FBD20, MaxLen=34 DT0 EP=7 Dev=3
> > PID=( OUT ) buf=09cb77a0
> > usb-uhci-debug.h:     Len=34 e0 SPD IOC Stalled CRC/Timeo
> > usb-uhci-debug.h:    TD Link Terminate
> >
> > does this mean the endpoint is stalled ?
> > if so, what can cause this ?
> 
> This means that there ocurred a timeout for the requested action that is
> detected by the HC. The HC had 3 tries, and none were answered with
> ACK/NACK/STALL responses. This is an USB protocoll violation.
> 
> Either you are addressing the wrong device, the wrong EP (7?), or the
> device is simply dead.

device 3, endpoint 7, device still responds to control messages.
btw, what is that timeout ?

Mar 27 17:06:17 Infinity kernel: send_data entered, sending packet
cf573d40 with length 53
Mar 27 17:06:17 Infinity kernel: usb-uhci.c: interrupt, status 3, frame#
1627 
Mar 27 17:06:17 Infinity kernel: usb-uhci-debug.h:   TD @
c15fbf60/015FBF60, MaxLen=34 DT0 EP=7 Dev=3 PID=( OUT ) buf=0ff49aa0
Mar 27 17:06:17 Infinity kernel: usb-uhci-debug.h:     Len=34 e0 SPD IOC
Stalled CRC/Timeo
Mar 27 17:06:17 Infinity kernel: usb-uhci-debug.h:    TD Link Terminate 
Mar 27 17:06:17 Infinity kernel: send_data done (retval = -110)

Does this protocol violation have any consequences in the HC ?

        J.

PS: the code :

int send_data (struct instance_data *instance, struct sk_buff *skb) {
  int err;
  printk(KERN_DEBUG "send_data entered, sending packet %p with length
%d\n", skb, skb->len);
  err = usb_bulk_msg(
      instance->usb_dev, 
      usb_sndbulkpipe(instance->usb_dev, 7),
      skb->data,
      skb->len,
      NULL,
      5 * HZ
      );

  printk(KERN_DEBUG "send_data done (retval = %d)\n", err);
  return err;
  }

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to