Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 35419
b: refs/heads/master
c: 76ff3c6
h: refs/heads/master
i:
  35417: 3b99146
  35415: ffd03aa
v: v3
  • Loading branch information
Alan Cox authored and Jeff Garzik committed Sep 12, 2006
1 parent 8a630f4 commit 1d491cb
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 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: af323a2fb508b0fa1c1fa91cbc6ec86fb0879c07
refs/heads/master: 76ff3c6e3b389a5a7692811dd456e0ff58340cac
13 changes: 12 additions & 1 deletion trunk/drivers/ata/pata_amd.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_amd"
#define DRV_VERSION "0.2.2"
#define DRV_VERSION "0.2.3"

/**
* timing_setup - shared timing computation and load
Expand Down Expand Up @@ -253,11 +253,22 @@ static void amd133_set_dmamode(struct ata_port *ap, struct ata_device *adev)

static int nv_pre_reset(struct ata_port *ap) {
static const u8 bitmask[2] = {0x03, 0xC0};
static const struct pci_bits nv_enable_bits[] = {
{ 0x50, 1, 0x02, 0x02 },
{ 0x50, 1, 0x01, 0x01 }
};

struct pci_dev *pdev = to_pci_dev(ap->host->dev);
u8 ata66;
u16 udma;

if (!pci_test_config_bits(pdev, &nv_enable_bits[ap->port_no])) {
ata_port_disable(ap);
printk(KERN_INFO "ata%u: port disabled. ignoring.\n", ap->id);
return 0;
}


pci_read_config_byte(pdev, 0x52, &ata66);
if (ata66 & bitmask[ap->port_no])
ap->cbl = ATA_CBL_PATA80;
Expand Down

0 comments on commit 1d491cb

Please sign in to comment.