Hi Ian,
On Wed, 23 Feb 2005, Ian Campbell wrote:
> The device is detected and the driver is loaded, but once I try and ifup
> the device, which tries to do dhcp, I get lots of "Allowed data
> underrun" and eventually a failure.
>
> I've attached a trace made with DEBUG and URB_TRACE, it's quite big but
> compresses really well. The interesting parts, I think, are many
> messages similar to this one:
> 116x: Enqueue: FA 2 ep1in bulk: len 1544 short_not_ok
> [SNIP several successful ip3in int transfers]
> 116x: Allowed data underrun
> 116x: Finish: FA 2 ep1in bulk: len 72/1544 short_not_ok stat 0
> I'm a bit confused since the packet is short (72/1544) and short is not
> OK, but the stat is 0 (which means OK?).
I think the problems (more than one) are in my driver. You
may have hit the same problem as Konsti and Torsten few
weeks ago. But then it remained unresolved and I hope it'll
get fixed now.
For the starter, the reversed reporting of short_not_ok
(sigh) can be corrected with the following patch:
--- linux-2.6.10-isp/drivers/usb/host/isp116x.h.buggy 2005-02-23
18:45:55.000000000 +0200
+++ linux-2.6.10-isp/drivers/usb/host/isp116x.h 2005-02-23 18:49:17.000000000
+0200
@@ -529,7 +529,7 @@ static inline void isp116x_show_regs(str
__s;})
#define PIPEDIR(pipe) ({ usb_pipein(pipe) ? "in" : "out"; })
#define URB_NOTSHORT(urb) ({ (urb)->transfer_flags & URB_SHORT_NOT_OK ? \
- "" : "short_not_ok"; })
+ "short_not_ok" : ""; })
#else
#define PIPETYPE(pipe) do{}while(0)
#define PIPEDIR(pipe) do{}while(0)
As the short_not_ok reporting is just reversed, I will try
to analyze the logs you sent tonight and will let you know.
Unfortunately, I cannot access the hardware before Friday.
Olav
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel