From: Alan Cox Date: Sat, 1 Jul 2006 11:36:34 +0000 (-0700) Subject: [PATCH] Fix problem with ATAPI DMA on IT8212 in Linux X-Git-Tag: v2.6.18-rc1~196 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=faab17ba06d86adf5568f3e9ff914e124546d19e;p=linux-2.6 [PATCH] Fix problem with ATAPI DMA on IT8212 in Linux Missing variable initialisation would mean it would sometimes not put ATAPI devices into DMA by default. Signed-off-by: Alan Cox Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/ide/pci/it821x.c b/drivers/ide/pci/it821x.c index 7fb3635683..3cb04424d3 100644 --- a/drivers/ide/pci/it821x.c +++ b/drivers/ide/pci/it821x.c @@ -650,6 +650,8 @@ static void __devinit init_hwif_it821x(ide_hwif_t *hwif) } ide_set_hwifdata(hwif, idev); + hwif->atapi_dma = 1; + pci_read_config_byte(hwif->pci_dev, 0x50, &conf); if(conf & 1) { idev->smart = 1;