your code never gets triggered: /* fail the command if we are disconnecting */ US_DEBUGP("us->flags:%lx\n", us->flags); if (test_bit(US_FLIDX_DISCONNECTING, &us->flags)) {
us->flags is always 0 Oct 24 12:42:58 mm kernel: usb-storage: scsi cmd done, result=0x0 Oct 24 12:42:58 mm kernel: usb-storage: *** thread sleeping. Oct 24 12:42:58 mm kernel: usb-storage: queuecommand called Oct 24 12:42:58 mm kernel: usb-storage: us->flags:0 Oct 24 12:42:58 mm kernel: usb-storage: *** thread awakened. Oct 24 12:42:58 mm kernel: usb-storage: Command READ_10 (10 bytes) Oct 24 12:42:58 mm kernel: usb-storage: 28 00 00 00 00 4e 00 00 01 00 Oct 24 12:42:58 mm kernel: usb-storage: Bulk Command S 0x43425355 T 0x42 L 512 F 128 Trg 0 LUN 0 CL 10 Oct 24 12:42:58 mm kernel: usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes Oct 24 12:42:58 mm kernel: usb-storage: Status code 0; transferred 31/31 Oct 24 12:42:58 mm kernel: usb-storage: -- transfer complete Oct 24 12:42:58 mm kernel: usb-storage: Bulk command transfer result=0 Oct 24 12:42:58 mm kernel: usb-storage: usb_stor_bulk_transfer_sglist: xfer 512 bytes, 1 entries Oct 24 12:42:58 mm kernel: usb-storage: Status code 0; transferred 512/512 Oct 24 12:42:58 mm kernel: usb-storage: -- transfer complete Oct 24 12:42:58 mm kernel: usb-storage: Bulk data transfer result 0x0 Oct 24 12:42:58 mm kernel: usb-storage: Attempting to get CSW... Oct 24 12:42:58 mm kernel: usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes Oct 24 12:42:58 mm kernel: usb-storage: Status code 0; transferred 13/13 Oct 24 12:42:58 mm kernel: usb-storage: -- transfer complete Oct 24 12:42:58 mm kernel: usb-storage: Bulk status result = 0 Oct 24 12:42:58 mm kernel: usb-storage: Bulk Status S 0x53425355 T 0x42 R 0 Stat 0x0 Oct 24 12:42:58 mm kernel: usb-storage: scsi cmd done, result=0x0 Oct 24 12:42:58 mm kernel: usb-storage: *** thread sleeping. Oct 24 12:43:01 mm kernel: ohci_hcd 0000:00:03.1: GetStatus roothub.portstatus [1] = 0x00030100 PESC CSC PPS Oct 24 12:43:01 mm kernel: hub 2-0:1.0: port 2, status 0100, change 0003, 12 Mb/s Oct 24 12:43:01 mm kernel: usb 2-2: USB disconnect, address 2 Oct 24 12:43:01 mm kernel: usb 2-2: usb_disable_device nuking all URBs Oct 24 12:43:01 mm kernel: usb 2-2: unregistering interface 2-2:1.0 Oct 24 12:43:01 mm kernel: usb-storage: storage_disconnect() called Oct 24 12:43:01 mm kernel: usb-storage: usb_stor_stop_transport called Oct 24 12:43:01 mm kernel: sd 0:0:0:0: scsi_remove_device cancels Oct 24 12:43:01 mm kernel: sd 0:0:0:0: State transition running->cancel Oct 24 12:43:01 mm kernel: 0:0:0:0: scsi_remove_device between device_del and scsi_device_set_state Oct 24 12:43:01 mm kernel: 0:0:0:0: State transition cancel->deleted Oct 24 12:43:01 mm kernel: target0:0:0: scsi_device_cancel called with state 1515870810 / <NULL> Oct 24 12:43:01 mm kernel: target0:0:0: Illegal state transition <NULL>->cancel -- Wolfgang ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel