Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 29213
b: refs/heads/master
c: 4f65977
h: refs/heads/master
i:
  29211: 7458fda
v: v3
  • Loading branch information
Tejun Heo authored and Jeff Garzik committed Apr 1, 2006
1 parent be55df8 commit e7ba92f
Show file tree
Hide file tree
Showing 2 changed files with 5 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: e1211e3fa7fd05ff0d4f597fd37e40de8acc6784
refs/heads/master: 4f65977df0b9a667fdcd85b95d457a220c94113f
5 changes: 4 additions & 1 deletion trunk/drivers/scsi/libata-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1823,7 +1823,7 @@ static void ata_host_set_dma(struct ata_port *ap)
*/
static void ata_set_mode(struct ata_port *ap)
{
int i, rc, used_dma = 0;
int i, rc, used_dma = 0, found = 0;

/* step 1: calculate xfer_mask */
for (i = 0; i < ATA_MAX_DEVICES; i++) {
Expand All @@ -1842,9 +1842,12 @@ static void ata_set_mode(struct ata_port *ap)
dev->pio_mode = ata_xfer_mask2mode(pio_mask);
dev->dma_mode = ata_xfer_mask2mode(dma_mask);

found = 1;
if (dev->dma_mode)
used_dma = 1;
}
if (!found)
return;

/* step 2: always set host PIO timings */
rc = ata_host_set_pio(ap);
Expand Down

0 comments on commit e7ba92f

Please sign in to comment.