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

Commit 2456eb81 authored by Tejun Heo's avatar Tejun Heo Committed by Jeff Garzik
Browse files

pata_hpt366: fix clock detection



pata_hpt366 had its clock detection wrong and detected 25Mhz as 40Mhz
and vice-versa.  Fix it.

Signed-off-by: default avatarTejun Heo <tj@kernel.org>
Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
parent f7a8db89
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -382,10 +382,10 @@ static int hpt36x_init_one(struct pci_dev *dev, const struct pci_device_id *id)
	/* PCI clocking determines the ATA timing values to use */
	/* info_hpt366 is safe against re-entry so we can scribble on it */
	switch((reg1 & 0x700) >> 8) {
		case 5:
		case 9:
			hpriv = &hpt366_40;
			break;
		case 9:
		case 5:
			hpriv = &hpt366_25;
			break;
		default: