Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 126463
b: refs/heads/master
c: c2ce5ca
h: refs/heads/master
i:
  126461: 0f577c9
  126459: 30f94ad
  126455: 65a4cc8
  126447: c1dcb9f
  126431: 030a87e
  126399: 00dee87
  126335: 7c9003f
  126207: 430159b
  125951: 68ba505
v: v3
  • Loading branch information
Sergei Shtylyov authored and Bartlomiej Zolnierkiewicz committed Jan 6, 2009
1 parent 6ffca88 commit f55fdeb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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: 05789634ef84c78494c61124e69da49441735146
refs/heads/master: c2ce5ca047ff6bbc41d491451c39e597c4537cd3
6 changes: 3 additions & 3 deletions trunk/drivers/ide/scc_pata.c
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ static void scc_dma_host_set(ide_drive_t *drive, int on)
{
ide_hwif_t *hwif = drive->hwif;
u8 unit = drive->dn & 1;
u8 dma_stat = scc_ide_inb(hwif->dma_base + 4);
u8 dma_stat = scc_dma_sff_read_status(hwif);

if (on)
dma_stat |= (1 << (5 + unit));
Expand Down Expand Up @@ -338,7 +338,7 @@ static int scc_dma_setup(ide_drive_t *drive)
out_be32((void __iomem *)hwif->dma_base, reading);

/* read DMA status for INTR & ERROR flags */
dma_stat = in_be32((void __iomem *)(hwif->dma_base + 4));
dma_stat = scc_dma_sff_read_status(hwif);

/* clear INTR & ERROR flags */
out_be32((void __iomem *)(hwif->dma_base + 4), dma_stat | 6);
Expand Down Expand Up @@ -367,7 +367,7 @@ static int __scc_dma_end(ide_drive_t *drive)
/* stop DMA */
scc_ide_outb(dma_cmd & ~1, hwif->dma_base);
/* get DMA status */
dma_stat = scc_ide_inb(hwif->dma_base + 4);
dma_stat = scc_dma_sff_read_status(hwif);
/* clear the INTR & ERROR bits */
scc_ide_outb(dma_stat | 6, hwif->dma_base + 4);
/* purge DMA mappings */
Expand Down

0 comments on commit f55fdeb

Please sign in to comment.