浏览代码

[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 <alan@redhat.com>
Cc: <Jack.Lee@ite.com.tw>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Alan Cox 19 年之前
父节点
当前提交
faab17ba06
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      drivers/ide/pci/it821x.c

+ 2 - 0
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;