Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b376bc1f authored by Jeff Garzik's avatar Jeff Garzik
Browse files

[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.
parent c2bd5804
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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: