Hi,
I'm trying to port the gadget driver to my Samsung S3C2410 board with kernel 2.4.18. The board is configured as a storage device. But, the gadget driver always reports errors when handling the "TEST UNIT READY" SCSI command. The error message is like: sending command-failure status ... error in submission: ep0 --> -51 The detail log message is below, any suggestions! Thanks in advance. [snip] g_file_storage s3c2410_udc: full speed config #1 g_file_storage s3c2410_udc: ep0_complete --> -108, 0/0 g_file_storage s3c2410_udc: get device descriptor g_file_storage s3c2410_udc: get configuration descriptor g_file_storage s3c2410_udc: get configuration descriptor g_file_storage s3c2410_udc: get string descriptor g_file_storage s3c2410_udc: get string descriptor g_file_storage s3c2410_udc: get string descriptor g_file_storage s3c2410_udc: get string descriptor g_file_storage s3c2410_udc: get max LUN g_file_storage s3c2410_udc: SCSI CDB: 12 00 00 00 ff 00 g_file_storage s3c2410_udc: SCSI command: INQUIRY; Dc=6, Di=255; Hc=6, Hi=255 g_file_storage s3c2410_udc: bulk-in set halt g_file_storage s3c2410_udc: bulk_in_complete --> -75, 13/13 g_file_storage s3c2410_udc: SCSI CDB: 00 00 00 00 00 00 g_file_storage s3c2410_udc: SCSI command: TEST UNIT READY; Dc=6, Dn=0; Hc=6, Hn=0 g_file_storage s3c2410_udc: sending command-failure status g_file_storage s3c2410_udc: sense data: SK x06, ASC x29, ASCQ x00; info x0 g_file_storage s3c2410_udc: bulk reset request s3c2410_dequeue(ep=c4952250,req=c02f39a8) g_file_storage s3c2410_udc: bulk_out_complete --> -104, 0/31 g_file_storage s3c2410_udc: bulk_out_complete --> -104, 0/31 g_file_storage s3c2410_udc: error in ep0_queue submission: ep0 --> -51 g_file_storage s3c2410_udc: unknown control req 02.01 v0000 i0081 l0 g_file_storage s3c2410_udc: unknown control req 02.01 v0000 i0002 l0 g_file_storage s3c2410_udc: SCSI CDB: 00 00 00 00 00 00 g_file_storage s3c2410_udc: SCSI command: TEST UNIT READY; Dc=6, Dn=0; Hc=6, Hn=0 g_file_storage s3c2410_udc: sending command-failure status g_file_storage s3c2410_udc: sense data: SK x02, ASC x3a, ASCQ x00; info x0 g_file_storage s3c2410_udc: SCSI CDB: 03 00 00 00 12 00 g_file_storage s3c2410_udc: SCSI command: REQUEST SENSE; Dc=6, Di=18; Hc=6, Hi=18 g_file_storage s3c2410_udc: bulk_in_complete --> -75, 13/13 g_file_storage s3c2410_udc: get device descriptor g_file_storage s3c2410_udc: bulk_out_complete --> -108, 0/31 g_file_storage s3c2410_udc: set configuration g_file_storage s3c2410_udc: reset config g_file_storage s3c2410_udc: reset interface s3c2410_free_request(ep=c4952218,req=c02f38e8) s3c2410_free_request(ep=c4952250,req=c02f3928) s3c2410_free_request(ep=c4952218,req=c02f3968) s3c2410_free_request(ep=c4952250,req=c02f39a8) g_file_storage s3c2410_udc: set interface 0 s3c2410_alloc_request(ep=c4952218,flags=32) s3c2410_alloc_request(ep=c4952250,flags=32) s3c2410_alloc_request(ep=c4952218,flags=32) s3c2410_alloc_request(ep=c4952250,flags=32) g_file_storage s3c2410_udc: full speed config #1 g_file_storage s3c2410_udc: ep0_complete --> -108, 0/0 g_file_storage s3c2410_udc: get device descriptor g_file_storage s3c2410_udc: get device descriptor g_file_storage s3c2410_udc: get configuration descriptor g_file_storage s3c2410_udc: get configuration descriptor g_file_storage s3c2410_udc: bulk_out_complete --> -108, 0/31 g_file_storage s3c2410_udc: set configuration g_file_storage s3c2410_udc: reset config g_file_storage s3c2410_udc: reset interface s3c2410_free_request(ep=c4952218,req=c02f39a8) s3c2410_free_request(ep=c4952250,req=c02f3968) s3c2410_free_request(ep=c4952218,req=c02f3928) s3c2410_free_request(ep=c4952250,req=c02f38e8) g_file_storage s3c2410_udc: set interface 0 s3c2410_alloc_request(ep=c4952218,flags=32) s3c2410_alloc_request(ep=c4952250,flags=32) s3c2410_alloc_request(ep=c4952218,flags=32) s3c2410_alloc_request(ep=c4952250,flags=32) g_file_storage s3c2410_udc: full speed config #1 g_file_storage s3c2410_udc: ep0_complete --> -108, 0/0 g_file_storage s3c2410_udc: get string descriptor g_file_storage s3c2410_udc: get string descriptor g_file_storage s3c2410_udc: get string descriptor g_file_storage s3c2410_udc: get string descriptor g_file_storage s3c2410_udc: get max LUN g_file_storage s3c2410_udc: SCSI CDB: 12 00 00 00 ff 00 g_file_storage s3c2410_udc: SCSI command: INQUIRY; Dc=6, Di=255; Hc=6, Hi=255 g_file_storage s3c2410_udc: bulk-in set halt g_file_storage s3c2410_udc: bulk_in_complete --> -75, 13/13 g_file_storage s3c2410_udc: SCSI CDB: 00 00 00 00 00 00 g_file_storage s3c2410_udc: SCSI command: TEST UNIT READY; Dc=6, Dn=0; Hc=6, Hn=0 g_file_storage s3c2410_udc: sending command-failure status g_file_storage s3c2410_udc: sense data: SK x06, ASC x29, ASCQ x00; info x0 g_file_storage s3c2410_udc: bulk reset request s3c2410_dequeue(ep=c4952250,req=c02f39a8) g_file_storage s3c2410_udc: bulk_out_complete --> -104, 0/31 g_file_storage s3c2410_udc: bulk_out_complete --> -104, 0/31 g_file_storage s3c2410_udc: error in ep0_queue submission: ep0 --> -51 g_file_storage s3c2410_udc: unknown control req 02.01 v0000 i0081 l0 g_file_storage s3c2410_udc: unknown control req 02.01 v0000 i0002 l0 g_file_storage s3c2410_udc: SCSI CDB: 00 00 00 00 00 00 g_file_storage s3c2410_udc: SCSI command: TEST UNIT READY; Dc=6, Dn=0; Hc=6, Hn=0 g_file_storage s3c2410_udc: sending command-failure status g_file_storage s3c2410_udc: sense data: SK x02, ASC x3a, ASCQ x00; info x0 g_file_storage s3c2410_udc: SCSI CDB: 03 00 00 00 12 00 g_file_storage s3c2410_udc: SCSI command: REQUEST SENSE; Dc=6, Di=18; Hc=6, Hi=18 g_file_storage s3c2410_udc: bulk_in_complete --> -75, 13/13 [snip] Regards, Forrest ______________________________________ =================================================================== ------------------------------------------------------- This SF.Net email is sponsored by Yahoo. Introducing Yahoo! Search Developer Network - Create apps using Yahoo! Search APIs Find out how you can build Yahoo! directly into your own Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005 _______________________________________________ [email protected] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
