Re: usbtest test-14 failure: MUSBHDRC + Netchip2280

"Pandita, Vikram" <[email protected]>
Newsgroups gmane.linux.usb.devel
Message-ID <[email protected]>
> On Friday 23 March 2007 5:26 am, Pandita, Vikram wrote:
> > 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.
> 
> Does this help?  Against the current OMAP tree.  If this morphs the
> STALL (-32) into an EREMOTEIO (-121) that may be the same IN DATA ack
> error noted below.
> 

Thanks David for the patch. I had done almost the same fix to proceed.
Thanks Alan for the patch of Netchip. I have put both patches, however
the error still persists. 

On usbtest 14, the IN token sent by MUSBHDRC is being STALL'ed instead
of being NAK'ed by the Netchip device.

Interestingly, if I enable some logs on Netchip driver or Host side, the
test 14 passes. This points to some timing related issue. Is it that
Netchip needs some delay in handling consecutive control transfers? 

I could narrow down to the following netchip code that sets the STALL.
Is that expected behaviour on netchip side?


--- 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
                        }
                }
        }


-------------------------------------------------------------------------
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
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.