Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 62832
b: refs/heads/master
c: 64a8170
h: refs/heads/master
v: v3
  • Loading branch information
Alan Cox authored and Jeff Garzik committed Jul 24, 2007
1 parent c3fbfd4 commit 18239b3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5c8d52015c09b42632a73896f8a80cff64c5c1d1
refs/heads/master: 64a8170975947978ea4094dd6c4b1f41119d6ae6
14 changes: 7 additions & 7 deletions trunk/drivers/ata/pata_hpt37x.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#include <linux/libata.h>

#define DRV_NAME "pata_hpt37x"
#define DRV_VERSION "0.6.6"
#define DRV_VERSION "0.6.7"

struct hpt_clock {
u8 xfer_speed;
Expand Down Expand Up @@ -1103,17 +1103,17 @@ static int hpt37x_init_one(struct pci_dev *dev, const struct pci_device_id *id)

/* Select the DPLL clock. */
pci_write_config_byte(dev, 0x5b, 0x21);
pci_write_config_dword(dev, 0x5C, (f_high << 16) | f_low);
pci_write_config_dword(dev, 0x5C, (f_high << 16) | f_low | 0x100);

for(adjust = 0; adjust < 8; adjust++) {
if (hpt37x_calibrate_dpll(dev))
break;
/* See if it'll settle at a fractionally different clock */
if ((adjust & 3) == 3) {
f_low --;
f_high ++;
}
pci_write_config_dword(dev, 0x5C, (f_high << 16) | f_low);
if (adjust & 1)
f_low -= adjust >> 1;
else
f_high += adjust >> 1;
pci_write_config_dword(dev, 0x5C, (f_high << 16) | f_low | 0x100);
}
if (adjust == 8) {
printk(KERN_WARNING "hpt37x: DPLL did not stabilize.\n");
Expand Down

0 comments on commit 18239b3

Please sign in to comment.