1 Index: linux-2.4.35.4/drivers/ide/pci/pdc202xx_old.c
2 ===================================================================
3 --- linux-2.4.35.4.orig/drivers/ide/pci/pdc202xx_old.c 2007-12-15 05:19:35.922468144 +0100
4 +++ linux-2.4.35.4/drivers/ide/pci/pdc202xx_old.c 2007-12-15 05:20:17.136816813 +0100
6 pci_read_config_byte(dev, (drive_pci)|0x03, &DP);
8 if (speed < XFER_SW_DMA_0) {
9 - if ((AP & 0x0F) || (BP & 0x07)) {
10 + if ((AP & 0x0F) || (BP & 0x17)) {
11 /* clear PIO modes of lower 8421 bits of A Register */
12 pci_write_config_byte(dev, (drive_pci), AP &~0x0F);
13 pci_read_config_byte(dev, (drive_pci), &AP);
15 /* clear PIO modes of lower 421 bits of B Register */
16 - pci_write_config_byte(dev, (drive_pci)|0x01, BP &~0x07);
17 + pci_write_config_byte(dev, (drive_pci)|0x01, BP &~0x17);
18 pci_read_config_byte(dev, (drive_pci)|0x01, &BP);
20 pci_read_config_byte(dev, (drive_pci), &AP);
21 pci_read_config_byte(dev, (drive_pci)|0x01, &BP);
24 - if ((BP & 0xF0) && (CP & 0x0F)) {
25 + if ((BP & 0xE0) && (CP & 0x0F)) {
26 /* clear DMA modes of upper 842 bits of B Register */
27 /* clear PIO forced mode upper 1 bit of B Register */
28 - pci_write_config_byte(dev, (drive_pci)|0x01, BP &~0xF0);
29 + pci_write_config_byte(dev, (drive_pci)|0x01, BP &~0xE0);
30 pci_read_config_byte(dev, (drive_pci)|0x01, &BP);
32 /* clear DMA modes of lower 8421 bits of C Register */
34 u8 ultra_66 = ((id->dma_ultra & 0x0010) ||
35 (id->dma_ultra & 0x0008)) ? 1 : 0;
37 + if (hwif->rqsize != 256)
41 case PCI_DEVICE_ID_PROMISE_20267:
42 case PCI_DEVICE_ID_PROMISE_20265: