Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 167130
b: refs/heads/master
c: 566b54c
h: refs/heads/master
v: v3
  • Loading branch information
Bartlomiej Zolnierkiewicz authored and Jeff Garzik committed Oct 7, 2009
1 parent a890c20 commit dee42c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 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: 3b761d3d437cffcaf160a5d37eb6b3b186e491d5
refs/heads/master: 566b54c8a491654b145b6ae246039e5b4a56e587
10 changes: 1 addition & 9 deletions trunk/drivers/ata/pata_atp867x.c
Original file line number Diff line number Diff line change
Expand Up @@ -118,20 +118,13 @@ struct atp867x_priv {
int pci66mhz;
};

static inline u8 atp867x_speed_to_mode(u8 speed)
{
return speed - XFER_UDMA_0 + 1;
}

static void atp867x_set_dmamode(struct ata_port *ap, struct ata_device *adev)
{
struct pci_dev *pdev = to_pci_dev(ap->host->dev);
struct atp867x_priv *dp = ap->private_data;
u8 speed = adev->dma_mode;
u8 b;
u8 mode;

mode = atp867x_speed_to_mode(speed);
u8 mode = speed - XFER_UDMA_0 + 1;

/*
* Doc 6.6.9: decrease the udma mode value by 1 for safer UDMA speed
Expand Down Expand Up @@ -471,7 +464,6 @@ static int atp867x_init_one(struct pci_dev *pdev,
static const struct ata_port_info info_867x = {
.flags = ATA_FLAG_SLAVE_POSS,
.pio_mask = ATA_PIO4,
.mwdma_mask = ATA_MWDMA2,
.udma_mask = ATA_UDMA6,
.port_ops = &atp867x_ops,
};
Expand Down

0 comments on commit dee42c7

Please sign in to comment.