diff options
author | sos <sos@FreeBSD.org> | 2007-04-08 21:53:52 +0000 |
---|---|---|
committer | sos <sos@FreeBSD.org> | 2007-04-08 21:53:52 +0000 |
commit | 331106ea12ed200b0b0b1e3d7e142c9c05ad6b72 (patch) | |
tree | cfca5586a909b6a21c3a8a0c2329daaf2acccebd /sys/dev/ata | |
parent | 61e8c2791dec9f1f0ee325c5b5668039c07b3041 (diff) | |
download | FreeBSD-src-331106ea12ed200b0b0b1e3d7e142c9c05ad6b72.zip FreeBSD-src-331106ea12ed200b0b0b1e3d7e142c9c05ad6b72.tar.gz |
OK, this is not my day, fix the former fix :/
Diffstat (limited to 'sys/dev/ata')
-rw-r--r-- | sys/dev/ata/ata-dma.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/ata/ata-dma.c b/sys/dev/ata/ata-dma.c index a9b7a22..582cbd4 100644 --- a/sys/dev/ata/ata-dma.c +++ b/sys/dev/ata/ata-dma.c @@ -258,8 +258,7 @@ ata_dmaload(device_t dev, caddr_t data, int32_t count, int dir, dir ? BUS_DMASYNC_PREREAD : BUS_DMASYNC_PREWRITE); ch->dma->cur_iosize = count; - ch->dma->flags &= ATA_DMA_READ; - ch->dma->flags |= dir ? (ATA_DMA_LOADED | ATA_DMA_READ) : ATA_DMA_LOADED; + ch->dma->flags = dir ? (ATA_DMA_LOADED | ATA_DMA_READ) : ATA_DMA_LOADED; return 0; } |