From: Tejun Heo Date: Mon, 8 Dec 2008 09:48:42 +0000 (+0900) Subject: pata_hpt366: fix clock detection X-Git-Tag: MMI-PSA29.97-13-9~30581^2~4 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2456eb819be7aa2cac73359c2855dfa30e46d75a;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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: Tejun Heo Signed-off-by: Jeff Garzik --- diff --git a/drivers/ata/pata_hpt366.c b/drivers/ata/pata_hpt366.c index f2b83eabc7c7..a098ba8eaab6 100644 --- a/drivers/ata/pata_hpt366.c +++ b/drivers/ata/pata_hpt366.c @@ -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: