-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Friday 17 October 2003 11:31 am, David Brownell wrote: > And that looks like the problem ... your host for some reason closed > the link, got a pair of "-ENOENT" errors (synchronous unlink) and > stopped writing. Could be the "ipaqboot.c" code. That would explain > why it doesn't matter what gadget driver you use ... :)
It Worked Before(tm)... It's just serial/ipaq.c except able to send big packets. > That looks odd too. The gadget code was using config #2... Yeah... I have another interesting set of logs to send you, I'll do so in a second. > Here's where the host closed things and stopped writing/reading: > > usbserial.c: serial_close - port 0 > > ipaqboot.c: ipaq_close - port 0 > > ipaqboot.c: ipaq_write_bulk_callback - port 0 > > ipaqboot.c: ipaq_write_bulk_callback - nonzero write bulk status > > received: -2 usbserial.c: port_softint - port 0 > > ipaqboot.c: ipaq_read_bulk_callback - port 0 > > ipaqboot.c: ipaq_read_bulk_callback - nonzero read bulk status received: > > -2 usbserial.c: serial_open > > ipaqboot.c: ipaq_open - port 0 I manually closed it and reopened it there. > Then SET_CONFIGURATION to #2 after those descriptor fetches: > > <7>udc: SETUP 00.09 v0002 i0000 l0000 > > <7>udc: ep11in-bulk using dma8 > > <7>udc: enabled ep11in-bulk > > <7>udc: enabled ep12out-bulk > > <6>gs_set_config: Gadget Serial configured for full speed > > <7>udc: ep0 config ack raced > > <7>udc: SETUP 00.00 v0000 i0000 l0000 > > <3>gs_setup: unknown request, type=00, request=00, value=0000, > > index=0000, length=0 > > <7>udc: protocol STALL, 81 err -95 > > Do you happen to know what this request should have been? > Was it maybe changing the config to #1, from #2? Don't know.. > Your particular hardware doesn't have the UDCCFR register > (new in PXA 255) so SET_CONFIGURATION requests have no way > to hold off the next request (NAK) till they're done. So > the next request gets mangled sometimes. If it's a problem, > making the host delay a few msec after SET_CONFIGURATION > might help. Plus this is B1 silicon, so other problems in > that area wouldn't surprise me much. Nothing I can do about it... > Other than that, and the host side oddness, it looks > like it initialized fine. I have another interesting set of logs, which I'll enclose here. This time the host doesn't even seem to be able to identify the 'paq. > - Dave /j Relevant iPAQ messages: <6>pxa2xx_udc: version alpha (15-Oct-2003) <6>pxa2xx_udc: IRQ 4 (!cfr) (broken dma-out) (pio only) <7>udc: host EP0_IDLE, uicr FF.FF, usir 00.00, ufnr 40.00 <7>udc: udccr A0 = rem srm <7>udc: no gadget driver bound <7>udc: registered gadget driver 'char' <7>udc: USB reset done, gadget driver 'char' <7>udc: host EP0_IDLE, uicr FF.FE, usir 00.00, ufnr 40.00 <7>udc: USB suspend <7>udc: udccr 03 = uda ude <7>udc: ep0 driver 'char' <7>udc: udccs0 EP0_IDLE 00 = <7>udc: ep0 IN 0/0, OUT 0/0 <7>udc: USB resume <7>udc: USB reset start <7>udc: USB reset done, gadget driver 'char' <7>udc: irq 00.01 <7>udc: SETUP 80.06 v0100 i0000 l0008 <7>udc: ep0 queue req c3ffe4e0, len 8 buf c3ed9980 <7>udc: ep0in 8 bytes 0 left c3ffe4e0 <7>udc: ep0start short IN, 00/02 <7>udc: irq 00.01 <7>udc: SETUP 80.06 v0100 i0000 l0012 <7>udc: ep0 queue req c3ffe4e0, len 18 buf c3ed9980 <7>udc: ep0in 16 bytes 2 left c3ffe4e0 <7>udc: ep0start IN, 00/00 <6>lab: Starting LAB [Linux As Bootloader] <6>lab: Attempting to connect using USB... <6>lab: Please plug in the cable. <7>udc: irq 00.01 <7>gchar: setup complete --> 0, 16/18 <7>udc: SETUP 80.06 v0100 i0000 l0012 <7>udc: ep0 queue req c3ffe4e0, len 18 buf c3ed9980 <7>udc: ep0in 16 bytes 2 left c3ffe4e0 <7>udc: ep0start IN, 00/00 (repeat last 5 messages ad nauseum) On host side: hub.c: USB new device connect on bus1/1/2, assigned device number 5 usb_control/bulk_msg: timeout usb_control/bulk_msg: timeout usb_control/bulk_msg: timeout usb_control/bulk_msg: timeout usb_control/bulk_msg: timeout usb.c: unable to get device descriptor (error=-110) /joshua - -- Joshua Wise | www.joshuawise.com GPG Key | 0xEA80E0B3 Quote | <lilo> I akilled [EMAIL PROTECTED] by mistake -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQE/kGQIPn9tWOqA4LMRAhILAJ9Zp8UX1JRy/MN309AuMXkksszfDgCgrijj 9SSqcHrSrilv9ePiiM4GfaQ= =9/IS -----END PGP SIGNATURE----- ------------------------------------------------------- This SF.net email sponsored by: Enterprise Linux Forum Conference & Expo The Event For Linux Datacenter Solutions & Strategies in The Enterprise Linux in the Boardroom; in the Front Office; & in the Server Room http://www.enterpriselinuxforum.com _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel