[PATCH] libata: always use polling IDENTIFY
[linux-2.6.git] / drivers / ata / libata-core.c
index 8832763..f8ec389 100644 (file)
@@ -1473,16 +1473,12 @@ int ata_dev_read_id(struct ata_device *dev, unsigned int *p_class,
        }
 
        tf.protocol = ATA_PROT_PIO;
-
-       /* presence detection using polling IDENTIFY? */
-       if (flags & ATA_READID_DETECT)
-               tf.flags |= ATA_TFLAG_POLLING;
+       tf.flags |= ATA_TFLAG_POLLING; /* for polling presence detection */
 
        err_mask = ata_exec_internal(dev, &tf, NULL, DMA_FROM_DEVICE,
                                     id, sizeof(id[0]) * ATA_ID_WORDS);
        if (err_mask) {
-               if ((flags & ATA_READID_DETECT) &&
-                   (err_mask & AC_ERR_NODEV_HINT)) {
+               if (err_mask & AC_ERR_NODEV_HINT) {
                        DPRINTK("ata%u.%d: NODEV after polling detection\n",
                                ap->id, dev->devno);
                        return -ENOENT;