ide-cd: add error message for DMA error to cdrom_read_intr()
PATCH 7/63 ide-cd: add error message for DMA error to cdrom_read_intr()
Signed-off-by Bartlomiej Zolnierkiewicz <[email protected]>
--- drivers/ide/ide-cd.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
drivers/ide/ide-cd.c +4 -1
@@ -1106,8 +1106,11 @@ static ide_startstop_t cdrom_read_intr (*/ if (dma) { info->dma =0 ; -if ((dma_error =HWIF (drive)->ide_dma_end (drive))) + dma_error =HWIF (drive)->ide_dma_end (drive); +if (dma_error) { +printk (KERN_ERR "%s: DMA read error\n" , drive->name);ide_dma_off (drive); + } }if (cdrom_decode_status (drive,0 , &stat))
Quoted 1 line · Bartlomiej Zolnierkiewicz
Signed-off-by Bartlomiej Zolnierkiewicz <[email protected]>
Acked-by Sergei Shtylyov <[email protected]>
MBR, Sergei