Move source tree closer to the 2.6.32.17 mainline
/drivers/ata/pata_ali.c
blob:1432dc9d0ab819d899ac3a506606a6778b146f30 -> blob:9434114b2ca8cb6f42e40d4ed2091360cd2add9e
--- drivers/ata/pata_ali.c
+++ drivers/ata/pata_ali.c
@@ -453,7 +453,9 @@ static void ali_init_chipset(struct pci_
/* Clear CD-ROM DMA write bit */
tmp &= 0x7F;
/* Cable and UDMA */
- pci_write_config_byte(pdev, 0x4B, tmp | 0x09);
+ if (pdev->revision >= 0xc2)
+ tmp |= 0x01;
+ pci_write_config_byte(pdev, 0x4B, tmp | 0x08);
/*
* CD_ROM DMA on (0x53 bit 0). Enable this even if we want
* to use PIO. 0x53 bit 1 (rev 20 only) - enable FIFO control