diff options
author | Felix Fietkau <nbd@openwrt.org> | 2007-05-04 22:14:14 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2007-05-04 22:14:14 +0000 |
commit | c855d322c06879f5be552763137309b870982242 (patch) | |
tree | 9fc2185d00749d77203e8efff5b517de0ddbe584 /target/linux/brcm-2.4 | |
parent | 833bb8f485c66b226387a4c1416ae4b171cccef9 (diff) | |
download | upstream-c855d322c06879f5be552763137309b870982242.tar.gz upstream-c855d322c06879f5be552763137309b870982242.tar.bz2 upstream-c855d322c06879f5be552763137309b870982242.zip |
add wl-hdd ide workaround from #272
SVN-Revision: 7093
Diffstat (limited to 'target/linux/brcm-2.4')
-rw-r--r-- | target/linux/brcm-2.4/patches/013-wl_hdd_pdc202xx.patch | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/target/linux/brcm-2.4/patches/013-wl_hdd_pdc202xx.patch b/target/linux/brcm-2.4/patches/013-wl_hdd_pdc202xx.patch new file mode 100644 index 0000000000..63e0cd6037 --- /dev/null +++ b/target/linux/brcm-2.4/patches/013-wl_hdd_pdc202xx.patch @@ -0,0 +1,41 @@ +--- linux.old/drivers/ide/pci/pdc202xx_old.c 2006-12-23 21:34:20.000000000 +0100 ++++ linux.dev/drivers/ide/pci/pdc202xx_old.c 2007-01-24 18:03:28.000000000 +0100 +@@ -253,23 +253,23 @@ + pci_read_config_byte(dev, (drive_pci)|0x03, &DP); + + if (speed < XFER_SW_DMA_0) { +- if ((AP & 0x0F) || (BP & 0x07)) { ++ if ((AP & 0x0F) || (BP & 0x17)) { + /* clear PIO modes of lower 8421 bits of A Register */ + pci_write_config_byte(dev, (drive_pci), AP &~0x0F); + pci_read_config_byte(dev, (drive_pci), &AP); + + /* clear PIO modes of lower 421 bits of B Register */ +- pci_write_config_byte(dev, (drive_pci)|0x01, BP &~0x07); ++ pci_write_config_byte(dev, (drive_pci)|0x01, BP &~0x17); + pci_read_config_byte(dev, (drive_pci)|0x01, &BP); + + pci_read_config_byte(dev, (drive_pci), &AP); + pci_read_config_byte(dev, (drive_pci)|0x01, &BP); + } + } else { +- if ((BP & 0xF0) && (CP & 0x0F)) { ++ if ((BP & 0xE0) && (CP & 0x0F)) { + /* clear DMA modes of upper 842 bits of B Register */ + /* clear PIO forced mode upper 1 bit of B Register */ +- pci_write_config_byte(dev, (drive_pci)|0x01, BP &~0xF0); ++ pci_write_config_byte(dev, (drive_pci)|0x01, BP &~0xE0); + pci_read_config_byte(dev, (drive_pci)|0x01, &BP); + + /* clear DMA modes of lower 8421 bits of C Register */ +@@ -373,6 +373,9 @@ + u8 ultra_66 = ((id->dma_ultra & 0x0010) || + (id->dma_ultra & 0x0008)) ? 1 : 0; + ++ if (hwif->rqsize != 256) ++ hwif->rqsize = 256; ++ + switch(dev->device) { + case PCI_DEVICE_ID_PROMISE_20267: + case PCI_DEVICE_ID_PROMISE_20265: + |