On Wed, Jan 23, 2002 at 10:21:25PM +1100, Drew Parsons wrote:
It's also conditionally defined in hp8200e_transport() while processing any command: // Write the 12-byte command header.
// If the command is BLANK then set the timer for 75 minutes. // Otherwise set it for 10 minutes.
// NOTE: THE 8200 DOCUMENTATION STATES THAT BLANKING A CDRW // AT SPEED 4 IS UNRELIABLE!!!
if ( (result = usbat_write_block(us, USBAT_ATA, 0x10, srb->cmnd, 12, 0, srb->cmnd[0]==GPCMD_BLANK ? 75 : 10)) != USB_STOR_TRANSPORT_GOOD) { return result; } My gut feeling is this is the source of the "10 minutes" that I'm timing out on.
Would it therefore make sense to test for FORMAT_UNIT alongside the current test for GPCMD_BLANK, making the timeout 75 minutes for FORMAT_UNIT ?
Ya, something like: if ( (result = usbat_write_block(us, USBAT_ATA, 0x10, srb->cmnd, 12, 0, (srb->cmnd[0]==GPCMD_BLANK||srb->cmnd[0]==GPCMD_FORMAT_UNIT) ? 75 : 10)) != USB_STOR_TRANSPORT_GOOD) { return result; } Ben