Commit faab17ba authored by Alan Cox's avatar Alan Cox Committed by Linus Torvalds

[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: default avatarAlan Cox <alan@redhat.com>
Cc: <Jack.Lee@ite.com.tw>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 1d7e1d45
...@@ -650,6 +650,8 @@ static void __devinit init_hwif_it821x(ide_hwif_t *hwif) ...@@ -650,6 +650,8 @@ static void __devinit init_hwif_it821x(ide_hwif_t *hwif)
} }
ide_set_hwifdata(hwif, idev); ide_set_hwifdata(hwif, idev);
hwif->atapi_dma = 1;
pci_read_config_byte(hwif->pci_dev, 0x50, &conf); pci_read_config_byte(hwif->pci_dev, 0x50, &conf);
if(conf & 1) { if(conf & 1) {
idev->smart = 1; idev->smart = 1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment