From: Jeff Garzik Date: Sat, 28 Jan 2006 17:26:23 +0000 (-0500) Subject: [libata ata_piix] Fix ICH6/7 map value interpretation X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b376bc1f6b4258112d714fb4ee8e5d57b53625f2;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git [libata ata_piix] Fix ICH6/7 map value interpretation The previous change failed to properly mask out unrelated bits, which resulted in a failure to detect devices. --- diff --git a/drivers/scsi/ata_piix.c b/drivers/scsi/ata_piix.c index 19d8d4ba6a1..2d984b090b2 100644 --- a/drivers/scsi/ata_piix.c +++ b/drivers/scsi/ata_piix.c @@ -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: