From: tike64 Date: Tue, 18 Sep 2007 00:59:00 -0700 (PDT) Subject: [U-Boot-Users] isp116x-hcd and usb_storage Message-ID: <298803.70501.qm@web59210.mail.re1.yahoo.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear List, I'm trying to set usb host up on our board (LH7A400 + ISP1160). It already works to some extend; it detects my Kingston 1GB stick. But then it (usb reset) fails with "Request Sense returned 00 00 00". Funny thing is that it starts to work if I enable debugging messages in usb_storage.c and isp116x-hcd.c. If I enable them in usb_storage.c only, it doesn't work. Here is the debug message log with debugging enabled in usb_storage.c only till the first difference I can see: ================================ USB Mass Storage device detected Transport: Bulk/Bulk/Bulk Endpoints In 1 Out 2 Int 0 BBB_reset BBB_reset result 0: status 0 reset BBB_reset result 0: status 0 clearing IN endpoint BBB_reset result 0: status 0 clearing OUT endpoint BBB_reset done address 2 COMMAND phase dir 1 lun 0 cmdlen 12 cmd c1ff9514 datalen 36 pdata c1ff9314 cmd[0] 0x12 cmd[1] 0x0 cmd[2] 0x0 cmd[3] 0x0 cmd[4] 0x24 cmd[5] 0x0 cmd[6] 0x0 cmd[7] 0x0 cmd[8] 0x0 cmd[9] 0x0 cmd[10] 0x0 cmd[11] 0x0 DATA phase pdata[0] 0x0 pdata[1] 0x80 pdata[2] 0x0 pdata[3] 0x1 pdata[4] 0x1f pdata[5] 0x0 pdata[6] 0x0 pdata[7] 0x0 pdata[8] 0x4b pdata[9] 0x69 pdata[10] 0x6e pdata[11] 0x67 pdata[12] 0x73 pdata[13] 0x74 pdata[14] 0x6f pdata[15] 0x6e pdata[16] 0x44 pdata[17] 0x61 pdata[18] 0x74 pdata[19] 0x61 pdata[20] 0x54 pdata[21] 0x72 pdata[22] 0x61 pdata[23] 0x76 pdata[24] 0x65 pdata[25] 0x6c pdata[26] 0x65 pdata[27] 0x72 pdata[28] 0x20 pdata[29] 0x49 pdata[30] 0x49 pdata[31] 0x20 pdata[32] 0x31 pdata[33] 0x2e pdata[34] 0x31 pdata[35] 0x33 STATUS phase ptr[0] 0x55 ptr[1] 0x53 ptr[2] 0x42 ptr[3] 0x53 ptr[4] 0x17 ptr[5] 0x0 ptr[6] 0x0 ptr[7] 0x0 ptr[8] 0x0 ptr[9] 0x0 ptr[10] 0x0 ptr[11] 0x0 ptr[12] 0x0 inquiry returns 0 ================================ ptr[4] is different when I have debugging enabled in both files: ================================ - - isp116x-hcd.c: data(13): 55 53 42 53 00 00 00 00 00 00 00 00 00 ptr[0] 0x55 ptr[1] 0x53 ptr[2] 0x42 ptr[3] 0x53 ptr[4] 0x0 ptr[5] 0x0 ptr[6] 0x0 ptr[7] 0x0 ptr[8] 0x0 ptr[9] 0x0 ptr[10] 0x0 ptr[11] 0x0 ptr[12] 0x0 inquiry returns 0 ================================ Could someone please help in debugging this? -- Timo ____________________________________________________________________________________ Moody friends. Drama queens. Your life? Nope! - their life, your story. Play Sims Stories at Yahoo! Games. http://sims.yahoo.com/