Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 269338
b: refs/heads/master
c: 73222c2
h: refs/heads/master
v: v3
  • Loading branch information
Bartlomiej Zolnierkiewicz authored and Jeff Garzik committed Oct 14, 2011
1 parent 8e217b1 commit f900bcd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 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: f4c6ae50209a4405b2b0bc99eb449060877eef42
refs/heads/master: 73222c2ddf5e2da2223d0b7329bad85c7e6ae1f8
12 changes: 0 additions & 12 deletions trunk/drivers/ata/pata_cs5535.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,6 @@

#define CS5535_CABLE_DETECT 0x48

#define CS5535_BAD_PIO(timings) ( (timings&~0x80000000UL)==0x00009172 )

/**
* cs5535_cable_detect - detect cable type
* @ap: Port to detect on
Expand Down Expand Up @@ -188,16 +186,6 @@ static int cs5535_init_one(struct pci_dev *dev, const struct pci_device_id *id)
};
const struct ata_port_info *ppi[] = { &info, &ata_dummy_port_info };

u32 timings, dummy;

/* Check the BIOS set the initial timing clock. If not set the
timings for PIO0 */
rdmsr(ATAC_CH0D0_PIO, timings, dummy);
if (CS5535_BAD_PIO(timings))
wrmsr(ATAC_CH0D0_PIO, 0xF7F4F7F4UL, 0);
rdmsr(ATAC_CH0D1_PIO, timings, dummy);
if (CS5535_BAD_PIO(timings))
wrmsr(ATAC_CH0D1_PIO, 0xF7F4F7F4UL, 0);
return ata_pci_bmdma_init_one(dev, ppi, &cs5535_sht, NULL, 0);
}

Expand Down

0 comments on commit f900bcd

Please sign in to comment.