struct scatterlist *sg = hwif->sg_table;
int nents;
- BUG_ON(hwif->sg_dma_active);
-
if (rq->flags & REQ_DRIVE_TASKFILE) {
ide_task_t *args = rq->special;
dma_unmap_sg(state->dev, hwif->sg_table, hwif->sg_nents,
hwif->sg_dma_direction);
- hwif->sg_dma_active = 0;
-
return get_dma_residue(hwif->hw.dma) != 0;
}
/*
* We can not enable DMA on both channels.
*/
- BUG_ON(hwif->sg_dma_active);
BUG_ON(dma_channel_active(hwif->hw.dma));
icside_build_sglist(drive, rq);