Use polling pio for identify device. This can save some time to detect the phantom device 1 during boot. Signed-off-by: Albert Lee <albertcc@xxxxxxxxxx> --- For the phantom slave device (found with some IBM DVD-RAM drive and Intel ICHx chip), irq-pio has to wait 30 seconds timeout to detect them. Use polling pio can detect the phantom slave quicker. (Verified ok by Tejun.) Patch again the current upstream branch (b74ba22f030eb7ab88f7d8954ad18ecc0ac5ce3c). For your review, thanks. --- upstream/drivers/scsi/libata-core.c 2006-05-22 10:04:12.000000000 +0800 +++ polling_identify/drivers/scsi/libata-core.c 2006-05-22 11:07:02.000000000 +0800 @@ -1196,6 +1196,8 @@ static int ata_dev_read_id(struct ata_de } tf.protocol = ATA_PROT_PIO; + /* Use polling for early detection of phantom dev 1 */ + tf.flags |= ATA_TFLAG_POLLING; err_mask = ata_exec_internal(dev, &tf, NULL, DMA_FROM_DEVICE, id, sizeof(id[0]) * ATA_ID_WORDS); - : send the line "unsubscribe linux-ide" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html