Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 294053
b: refs/heads/master
c: 8fcfa7b
h: refs/heads/master
i:
  294051: b621c4c
v: v3
  • Loading branch information
Sergei Shtylyov authored and Jeff Garzik committed Mar 13, 2012
1 parent 134251f commit d6119d7
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 12 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: d01159dffa15e3a734e43cf58c5d9f04c4106d83
refs/heads/master: 8fcfa7bd1b77514cfdce77751c980460535f56b4
28 changes: 17 additions & 11 deletions trunk/drivers/ata/pata_cmd64x.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
#include <linux/libata.h>

#define DRV_NAME "pata_cmd64x"
#define DRV_VERSION "0.2.5"
#define DRV_VERSION "0.2.15"

/*
* CMD64x specific registers definition.
Expand Down Expand Up @@ -368,21 +368,27 @@ static int cmd64x_init_one(struct pci_dev *pdev, const struct pci_device_id *id)
if (id->driver_data == 0) /* 643 */
ata_pci_bmdma_clear_simplex(pdev);

if (pdev->device == PCI_DEVICE_ID_CMD_646) {
/* Does UDMA work ? */
if (pdev->revision > 4) {
if (pdev->device == PCI_DEVICE_ID_CMD_646)
switch (pdev->revision) {
/* UDMA works since rev 5 */
default:
ppi[0] = &cmd_info[2];
ppi[1] = &cmd_info[2];
}
/* Early rev with other problems ? */
else if (pdev->revision == 1) {
break;
case 3:
case 4:
break;
/* Rev 1 with other problems? */
case 1:
ppi[0] = &cmd_info[3];
ppi[1] = &cmd_info[3];
}
/* revs 1,2 have no CNTRL_CH0 */
if (pdev->revision < 3)
/* FALL THRU */
/* Early revs have no CNTRL_CH0 */
case 2:
case 0:
cntrl_ch0_ok = 0;
}
break;
}

cmd64x_fixup(pdev);

Expand Down

0 comments on commit d6119d7

Please sign in to comment.