patch-2.3.26 linux/drivers/block/ide-disk.c
Next file: linux/drivers/block/ide-dma.c
Previous file: linux/drivers/block/ide-cd.c
Back to the patch index
Back to the overall index
- Lines: 57
- Date:
Fri Nov 5 10:40:23 1999
- Orig file:
v2.3.25/linux/drivers/block/ide-disk.c
- Orig date:
Fri Oct 22 13:21:47 1999
diff -u --recursive --new-file v2.3.25/linux/drivers/block/ide-disk.c linux/drivers/block/ide-disk.c
@@ -175,7 +175,7 @@
if (i > 0) {
if (msect)
goto read_next;
- ide_set_handler (drive, &read_intr);
+ ide_set_handler (drive, &read_intr, WAIT_CMD, NULL);
}
}
@@ -206,7 +206,7 @@
ide_end_request(1, hwgroup);
if (i > 0) {
idedisk_output_data (drive, rq->buffer, SECTOR_WORDS);
- ide_set_handler (drive, &write_intr);
+ ide_set_handler (drive, &write_intr, WAIT_CMD, NULL);
}
goto out;
}
@@ -271,7 +271,7 @@
if (stat & DRQ_STAT) {
if (rq->nr_sectors) {
ide_multwrite(drive, drive->mult_count);
- ide_set_handler (drive, &multwrite_intr);
+ ide_set_handler (drive, &multwrite_intr, WAIT_CMD, NULL);
goto out;
}
} else {
@@ -385,7 +385,7 @@
if (drive->using_dma && !(HWIF(drive)->dmaproc(ide_dma_read, drive)))
return;
#endif /* CONFIG_BLK_DEV_IDEDMA */
- ide_set_handler(drive, &read_intr);
+ ide_set_handler(drive, &read_intr, WAIT_CMD, NULL);
OUT_BYTE(drive->mult_count ? WIN_MULTREAD : WIN_READ, IDE_COMMAND_REG);
return;
}
@@ -404,10 +404,10 @@
__cli(); /* local CPU only */
if (drive->mult_count) {
HWGROUP(drive)->wrq = *rq; /* scratchpad */
- ide_set_handler (drive, &multwrite_intr);
+ ide_set_handler (drive, &multwrite_intr, WAIT_CMD, NULL);
ide_multwrite(drive, drive->mult_count);
} else {
- ide_set_handler (drive, &write_intr);
+ ide_set_handler (drive, &write_intr, WAIT_CMD, NULL);
idedisk_output_data(drive, rq->buffer, SECTOR_WORDS);
}
return;
@@ -506,7 +506,6 @@
drive->special.all = 0;
drive->special.b.set_geometry = 1;
drive->special.b.recalibrate = 1;
- drive->timeout = WAIT_CMD;
if (OK_TO_RESET_CONTROLLER)
drive->mult_count = 0;
if (!drive->keep_settings)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)