libata: Use new id_to_dma_mode function to tidy reporting in more drivers (minimally tested)

Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>

authored by Alan and committed by Jeff Garzik 616ece2e cc70991d

+4 -2
+2 -2
drivers/ata/ata_generic.c
··· 90 /* We do need the right mode information for DMA or PIO 91 and this comes from the current configuration flags */ 92 if (dma_enabled & (1 << (5 + i))) { 93 - dev->xfer_mode = XFER_MW_DMA_0; 94 - dev->xfer_shift = ATA_SHIFT_MWDMA; 95 dev->flags &= ~ATA_DFLAG_PIO; 96 } else { 97 dev->xfer_mode = XFER_PIO_0; 98 dev->xfer_shift = ATA_SHIFT_PIO; 99 dev->flags |= ATA_DFLAG_PIO;
··· 90 /* We do need the right mode information for DMA or PIO 91 and this comes from the current configuration flags */ 92 if (dma_enabled & (1 << (5 + i))) { 93 + ata_id_to_dma_mode(dev, XFER_MW_DMA_0); 94 dev->flags &= ~ATA_DFLAG_PIO; 95 } else { 96 + ata_dev_printk(dev, KERN_INFO, "configured for PIO\n"); 97 dev->xfer_mode = XFER_PIO_0; 98 dev->xfer_shift = ATA_SHIFT_PIO; 99 dev->flags |= ATA_DFLAG_PIO;
+2
drivers/ata/pata_it821x.c
··· 503 /* We do need the right mode information for DMA or PIO 504 and this comes from the current configuration flags */ 505 if (dma_enabled & (1 << (5 + i))) { 506 dev->xfer_mode = XFER_MW_DMA_0; 507 dev->xfer_shift = ATA_SHIFT_MWDMA; 508 dev->flags &= ~ATA_DFLAG_PIO; 509 } else { 510 dev->xfer_mode = XFER_PIO_0; 511 dev->xfer_shift = ATA_SHIFT_PIO; 512 dev->flags |= ATA_DFLAG_PIO;
··· 503 /* We do need the right mode information for DMA or PIO 504 and this comes from the current configuration flags */ 505 if (dma_enabled & (1 << (5 + i))) { 506 + ata_dev_printk(dev, KERN_INFO, "configured for DMA\n"); 507 dev->xfer_mode = XFER_MW_DMA_0; 508 dev->xfer_shift = ATA_SHIFT_MWDMA; 509 dev->flags &= ~ATA_DFLAG_PIO; 510 } else { 511 + ata_dev_printk(dev, KERN_INFO, "configured for PIO\n"); 512 dev->xfer_mode = XFER_PIO_0; 513 dev->xfer_shift = ATA_SHIFT_PIO; 514 dev->flags |= ATA_DFLAG_PIO;