]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
[libata ata_piix] Fix ICH6/7 map value interpretation
authorJeff Garzik <jgarzik@pobox.com>
Sat, 28 Jan 2006 17:26:23 +0000 (12:26 -0500)
committerJeff Garzik <jgarzik@pobox.com>
Sat, 28 Jan 2006 17:26:23 +0000 (12:26 -0500)
The previous change failed to properly mask out unrelated bits, which
resulted in a failure to detect devices.

drivers/scsi/ata_piix.c

index 19d8d4ba6a1eb27f8315d474c4d3915d32d8bd21..2d984b090b23075dceb6f1980e498b6ac1479c9b 100644 (file)
@@ -713,7 +713,7 @@ static int piix_init_one (struct pci_dev *pdev, const struct pci_device_id *ent)
                pci_read_config_byte(pdev, ICH5_PMR, &tmp);
 
                if (host_flags & PIIX_FLAG_COMBINED_ICH6) {
-                       switch (tmp) {
+                       switch (tmp & 0x3) {
                        case 0:
                                break;
                        case 1: