Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 227633
b: refs/heads/master
c: dfc7e3e
h: refs/heads/master
i:
  227631: 68ac562
v: v3
  • Loading branch information
Sergei Shtylyov authored and Jeff Garzik committed Jan 8, 2011
1 parent 80f36fa commit bf81645
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 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: 0ca646db68d1bd7184dfc41362d0dd9d56c0e57e
refs/heads/master: dfc7e3e37d4a22ed5fd3f6e8c9842cb1246fee4f
17 changes: 14 additions & 3 deletions trunk/drivers/ata/pata_hpt3x2n.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include <linux/libata.h>

#define DRV_NAME "pata_hpt3x2n"
#define DRV_VERSION "0.3.11"
#define DRV_VERSION "0.3.12"

enum {
HPT_PCI_FAST = (1 << 31),
Expand Down Expand Up @@ -413,8 +413,19 @@ static int hpt3x2n_pci_clock(struct pci_dev *pdev)

fcnt = inl(iobase + 0x90); /* Not PCI readable for some chips */
if ((fcnt >> 12) != 0xABCDE) {
printk(KERN_WARNING "hpt3xn: BIOS clock data not set.\n");
return 33; /* Not BIOS set */
int i;
u16 sr;
u32 total = 0;

printk(KERN_WARNING "pata_hpt3x2n: BIOS clock data not set.\n");

/* This is the process the HPT371 BIOS is reported to use */
for (i = 0; i < 128; i++) {
pci_read_config_word(pdev, 0x78, &sr);
total += sr & 0x1FF;
udelay(15);
}
fcnt = total / 128;
}
fcnt &= 0x1FF;

Expand Down

0 comments on commit bf81645

Please sign in to comment.