]> git.hungrycats.org Git - linux/commitdiff
[PATCH] hpt366.c: PLL fix needed for some HPT374
authorBartlomiej Zolnierkiewicz <b.zolnierkiewicz@elka.pw.edu.pl>
Tue, 16 Mar 2004 23:14:24 +0000 (15:14 -0800)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Tue, 16 Mar 2004 23:14:24 +0000 (15:14 -0800)
From: Boehm Olaf <olaf.boehm@lanner.de>
From: Jindrich Makovicka <makovick@kmlinux.fjfi.cvut.cz>

Wider range for 33MHz timing and PLL setup for HPT374
(using the HPT370A timing table, as it is the same as
used in the "opensource" driver by HighPoint).

fixes bugzilla bugs #2209 and #2271

drivers/ide/pci/hpt366.c

index 1e304e08a114c0f7ce037b20046ef700406a8968..c6b3ebf1d9abaf712dd885e61cd1c176ebf385e6 100644 (file)
@@ -821,7 +821,7 @@ static int __init init_hpt37x(struct pci_dev *dev)
         */
        pci_read_config_word(dev, 0x78, &freq);
        freq &= 0x1FF;
-       if (freq < 0x9c) {
+       if (freq < 0xa0) {
                pll = F_LOW_PCI_33;
                if (hpt_minimum_revision(dev,8))
                        pci_set_drvdata(dev, (void *) thirty_three_base_hpt374);
@@ -897,7 +897,7 @@ static int __init init_hpt37x(struct pci_dev *dev)
                                                       pll & ~0x100);
                                pci_write_config_byte(dev, 0x5b, 0x21);
                                if (hpt_minimum_revision(dev,8))
-                                       return -EOPNOTSUPP;
+                                       pci_set_drvdata(dev, (void *) fifty_base_hpt370a);
                                else if (hpt_minimum_revision(dev,5))
                                        pci_set_drvdata(dev, (void *) fifty_base_hpt372);
                                else if (hpt_minimum_revision(dev,4))