diff options
-rw-r--r-- | drivers/ide/ide-dma.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/ide/ide-dma.c b/drivers/ide/ide-dma.c index de33e6f88f17..ada2a3ea9430 100644 --- a/drivers/ide/ide-dma.c +++ b/drivers/ide/ide-dma.c | |||
@@ -731,10 +731,12 @@ static unsigned int ide_get_mode_mask(ide_drive_t *drive, u8 base) | |||
731 | mask &= 0x07; | 731 | mask &= 0x07; |
732 | break; | 732 | break; |
733 | case XFER_MW_DMA_0: | 733 | case XFER_MW_DMA_0: |
734 | mask = id->dma_mword & hwif->mwdma_mask; | 734 | if (id->field_valid & 2) |
735 | mask = id->dma_mword & hwif->mwdma_mask; | ||
735 | break; | 736 | break; |
736 | case XFER_SW_DMA_0: | 737 | case XFER_SW_DMA_0: |
737 | mask = id->dma_1word & hwif->swdma_mask; | 738 | if (id->field_valid & 2) |
739 | mask = id->dma_1word & hwif->swdma_mask; | ||
738 | break; | 740 | break; |
739 | default: | 741 | default: |
740 | BUG(); | 742 | BUG(); |