]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/ide/ide-iops.c
amd74xx: workaround unreliable AltStatus register for nVidia controllers
[linux-2.6-omap-h63xx.git] / drivers / ide / ide-iops.c
index 5d6ba14e211df826f794693bf0c682c59a9e4c06..142b9573d64cb355ddb5a6b5fe678314baeb19f0 100644 (file)
@@ -468,7 +468,8 @@ int drive_is_ready (ide_drive_t *drive)
         * an interrupt with another pci card/device.  We make no assumptions
         * about possible isa-pnp and pci-pnp issues yet.
         */
-       if (hwif->io_ports.ctl_addr)
+       if (hwif->io_ports.ctl_addr &&
+           (hwif->host_flags & IDE_HFLAG_BROKEN_ALTSTATUS) == 0)
                stat = hwif->tp_ops->read_altstatus(hwif);
        else
                /* Note: this may clear a pending IRQ!! */