Ticket #9589: usb_disk_retry.patch

File usb_disk_retry.patch, 605 bytes (added by markh, 11 years ago)

Fix for devices that don't respond immediately

  • src/add-ons/kernel/drivers/disk/usb/usb_disk/usb_disk.cpp

    diff --git a/src/add-ons/kernel/drivers/disk/usb/usb_disk/usb_disk.cpp b/src/add-ons/kernel/drivers/disk/usb/usb_disk/usb_disk.cpp
    index ddc02b4..fe82cc95 100644
    a b usb_disk_request_sense(device_lun *lun)  
    487487                parameter.additional_sense_code_qualifier);
    488488            lun->media_present = false;
    489489            usb_disk_reset_capacity(lun);
    490             return B_DEV_NO_MEDIA;
     490            return B_ERROR;
    491491
    492492        case SCSI_SENSE_KEY_DATA_PROTECT:
    493493            TRACE_ALWAYS("request_sense: write protected\n");