summaryrefslogtreecommitdiff
path: root/target/linux/ixp4xx/patches/998-VT6421.patch
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2008-05-19 10:58:03 +0000
committerGabor Juhos <juhosg@openwrt.org>2008-05-19 10:58:03 +0000
commit7758bda7d0615a0fe185b527cb3f4f04a27eb82c (patch)
tree163c4e19a20aa9425d88f18c5fde2cf30e70dc09 /target/linux/ixp4xx/patches/998-VT6421.patch
parent51e45450f185c839ecab7062facbecc7cff9953c (diff)
downloadmtk-20170518-7758bda7d0615a0fe185b527cb3f4f04a27eb82c.zip
mtk-20170518-7758bda7d0615a0fe185b527cb3f4f04a27eb82c.tar.gz
mtk-20170518-7758bda7d0615a0fe185b527cb3f4f04a27eb82c.tar.bz2
refresh kernel patches
SVN-Revision: 11204
Diffstat (limited to 'target/linux/ixp4xx/patches/998-VT6421.patch')
-rw-r--r--target/linux/ixp4xx/patches/998-VT6421.patch12
1 files changed, 7 insertions, 5 deletions
diff --git a/target/linux/ixp4xx/patches/998-VT6421.patch b/target/linux/ixp4xx/patches/998-VT6421.patch
index 805880f..a7f28e9 100644
--- a/target/linux/ixp4xx/patches/998-VT6421.patch
+++ b/target/linux/ixp4xx/patches/998-VT6421.patch
@@ -6,14 +6,16 @@ PATA_UDMA_TIMING register.
This patch fixes a copy/paste bug that breaks DMA modes on VT6421 PATA port.
Signed-off-by: Ondrej Zary <linux@rain...>
-diff -Nur linux-2.6.21.6/drivers/ata/sata_via.c linux-2.6.21.6-new/drivers/ata/sata_via.c
---- linux-2.6.21.6/drivers/ata/sata_via.c 2007-07-07 06:47:55.000000000 +0200
-+++ linux-2.6.21.6-new/drivers/ata/sata_via.c 2007-09-29 11:05:07.000000000 +0200
-@@ -380,6 +380,6 @@
+Index: linux-2.6.21.7/drivers/ata/sata_via.c
+===================================================================
+--- linux-2.6.21.7.orig/drivers/ata/sata_via.c
++++ linux-2.6.21.7/drivers/ata/sata_via.c
+@@ -380,7 +380,7 @@ static void vt6421_set_dma_mode(struct a
{
struct pci_dev *pdev = to_pci_dev(ap->host->dev);
static const u8 udma_bits[] = { 0xEE, 0xE8, 0xE6, 0xE4, 0xE2, 0xE1, 0xE0, 0xE0 };
- pci_write_config_byte(pdev, PATA_UDMA_TIMING, udma_bits[adev->pio_mode - XFER_UDMA_0]);
+ pci_write_config_byte(pdev, PATA_UDMA_TIMING, udma_bits[adev->dma_mode - XFER_UDMA_0]);
}
-
+
+ static int vt6421_port_start(struct ata_port *ap)