Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 185783
b: refs/heads/master
c: 22cabc2
h: refs/heads/master
i:
  185781: 0dbe38e
  185779: 315d930
  185775: 47cabdd
v: v3
  • Loading branch information
Bartlomiej Zolnierkiewicz authored and David S. Miller committed Jan 19, 2010
1 parent 3bba2fb commit ce12bcb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 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: 60349ab99f2742a6f04da86724740498c7b1f885
refs/heads/master: 22cabc2619a58d3e5f95bb8df823da535e103bf4
9 changes: 3 additions & 6 deletions trunk/drivers/ide/cmd64x.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,8 @@ static void cmd64x_set_dma_mode(ide_drive_t *drive, const u8 speed)
u8 unit = drive->dn & 0x01;
u8 regU = 0, pciU = hwif->channel ? UDIDETCR1 : UDIDETCR0;

if (speed >= XFER_SW_DMA_0) {
(void) pci_read_config_byte(dev, pciU, &regU);
regU &= ~(unit ? 0xCA : 0x35);
}
pci_read_config_byte(dev, pciU, &regU);
regU &= ~(unit ? 0xCA : 0x35);

switch(speed) {
case XFER_UDMA_5:
Expand Down Expand Up @@ -177,8 +175,7 @@ static void cmd64x_set_dma_mode(ide_drive_t *drive, const u8 speed)
break;
}

if (speed >= XFER_SW_DMA_0)
(void) pci_write_config_byte(dev, pciU, regU);
pci_write_config_byte(dev, pciU, regU);
}

static void cmd648_clear_irq(ide_drive_t *drive)
Expand Down

0 comments on commit ce12bcb

Please sign in to comment.