[brcm47xx] Build against 2.6.25.4
[openwrt.git] / target / linux / brcm-2.4 / patches / 013-wl_hdd_pdc202xx.patch
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
4 +++ linux-2.4.35.4/drivers/ide/pci/pdc202xx_old.c
5 @@ -253,23 +253,23 @@ static int pdc202xx_tune_chipset (ide_dr
6 pci_read_config_byte(dev, (drive_pci)|0x03, &DP);
7
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);
14
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);
19
20 pci_read_config_byte(dev, (drive_pci), &AP);
21 pci_read_config_byte(dev, (drive_pci)|0x01, &BP);
22 }
23 } else {
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);
31
32 /* clear DMA modes of lower 8421 bits of C Register */
33 @@ -373,6 +373,9 @@ static int config_chipset_for_dma (ide_d
34 u8 ultra_66 = ((id->dma_ultra & 0x0010) ||
35 (id->dma_ultra & 0x0008)) ? 1 : 0;
36
37 + if (hwif->rqsize != 256)
38 + hwif->rqsize = 256;
39 +
40 switch(dev->device) {
41 case PCI_DEVICE_ID_PROMISE_20267:
42 case PCI_DEVICE_ID_PROMISE_20265:
This page took 0.048459 seconds and 5 git commands to generate.