usbtest test-14 failure: MUSBHDRC + Netchip2280

"Pandita, Vikram" <[email protected]>
Newsgroups gmane.linux.usb.devel
Message-ID <[email protected]>
Hi 

  I am testing HS USB HOST controller of OMAP2430 (MUSBHDRC) with
Netchip2280 device using usbtest. When I run the test.sh control test on
the OMAP Host, the test 14 fails randomly after some iterations with
error no -32.

When I analyze the CATC traces, when it fails, the NetChip2280 device
STALLs the IN Token. Attached is the trace. It seems to be some timing
related problem with the Netchip device rather than the host because the
CATC trace does not show any misbehavior from Host side. 

Also when I add delays in either host or netchip driver, the problem
goes away.

 The netchip driver is stalling the endpoint in the following place. 
When I disable the STALL from netchip as follows, the problem vanishes,
but that may not be the solution.

Could any one identify if this is netchip or host side issue? 


--- a/drivers/usb/gadget/net2280.c 2007-03-23 16:40:44.000000000 +0530
+++ b/drivers/usb/gadget/net2280.c  2007-03-23 17:19:21.000000000 +0530
@@ -2204,12 +2206,16 @@ static void handle_ep_small (struct net2
                                        && req
                                        && req->req.actual ==
req->req.length)
                                        || !req) {
+printk("\n-->STALL\n");
+#if 0
                                ep->dev->protocol_stall = 1;
+
                                set_halt (ep);
                                ep->stopped = 1;
                                if (req)
                                        done (ep, req, -EOVERFLOW);
                                req = NULL;
+#endif
                        }
                }
        }



Regards,
Vikram Pandita

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
t14-fail.JPG (image/jpeg, 94.1 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.