libata: Use new id_to_dma_mode function to tidy reporting in more drivers (minimally tested)
PATCH 1/1 libata: Use new id_to_dma_mode function to tidy reporting in more drivers (minimally tested)
Signed-off-by Alan Cox <[email protected]>
drivers/ata/pata_it821x.c +2 -0
@@ -503,10 +503,12 @@/* We do need the right mode information for DMA or PIO and this comes from the current configuration flags */ if (dma_enabled & (1 << (5 + i))) { +ata_dev_printk (dev,KERN_INFO ,"configured for DMA\n" ); dev->xfer_mode =XFER_MW_DMA_0 ; dev->xfer_shift =ATA_SHIFT_MWDMA ; dev->flags &= ~ATA_DFLAG_PIO ; }else { +ata_dev_printk (dev,KERN_INFO ,"configured for PIO\n" ); dev->xfer_mode =XFER_PIO_0 ; dev->xfer_shift =ATA_SHIFT_PIO ; dev->flags |=ATA_DFLAG_PIO ;
drivers/ata/ata_generic.c +2 -2
@@ -90,10 +90,10 @@/* We do need the right mode information for DMA or PIO and this comes from the current configuration flags */ if (dma_enabled & (1 << (5 + i))) { - dev->xfer_mode =XFER_MW_DMA_0 ; - dev->xfer_shift =ATA_SHIFT_MWDMA ; +ata_id_to_dma_mode (dev,XFER_MW_DMA_0 ); dev->flags &= ~ATA_DFLAG_PIO ; }else { +ata_dev_printk (dev,KERN_INFO ,"configured for PIO\n" ); dev->xfer_mode =XFER_PIO_0 ; dev->xfer_shift =ATA_SHIFT_PIO ; dev->flags |=ATA_DFLAG_PIO ;
Jeff Garzik
AppliedQuoted 1 line · Alan
Signed-off-by Alan Cox <[email protected]>
applied