From: Mathias Kretschmer <posting@blx4.net>
To: Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: VIA VT610 IDE support for 2.4.28 (trivial)
Date: Mon, 22 Nov 2004 23:23:45 -0800 [thread overview]
Message-ID: <41A2E581.2010305@blx4.net> (raw)
[-- Attachment #1: Type: text/plain, Size: 343 bytes --]
hi,
I found an older version of this patch (against 2.4.22) on some website.
After a little bit of editing it applied cleanly to 2.4.27 (and now
2.4.28). It works fine for me on a ASUS P4P800-Deluxe with 4x 300GB disks.
Maybe someone finds this patch helpful. Any reason why the original
patch did not make it into the kernel ?
-Mathias
[-- Attachment #2: 2.4.28-vt610.patch --]
[-- Type: text/plain, Size: 2417 bytes --]
diff -u -r -N linux-2.4.28/drivers/ide/pci/generic.c linux-2.4.28-vt610/drivers/ide/pci/generic.c
--- linux-2.4.28/drivers/ide/pci/generic.c 2004-08-07 16:26:04.000000000 -0700
+++ linux-2.4.28-vt610/drivers/ide/pci/generic.c 2004-11-22 21:50:25.000000000 -0800
@@ -66,6 +66,9 @@
hwif->mwdma_mask = 0x07;
hwif->swdma_mask = 0x07;
+ if (hwif->pci_dev->device == PCI_DEVICE_ID_VIA_610)
+ hwif->udma_four = 1; /* mj */
+
if (!noautodma)
hwif->autodma = 1;
hwif->drives[0].autodma = hwif->autodma;
@@ -143,6 +146,7 @@
{ PCI_VENDOR_ID_TOSHIBA, PCI_DEVICE_ID_TOSHIBA_PICCOLO, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 9},
{ PCI_VENDOR_ID_TOSHIBA, PCI_DEVICE_ID_TOSHIBA_PICCOLO_1, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 10},
{ PCI_VENDOR_ID_TOSHIBA, PCI_DEVICE_ID_TOSHIBA_PICCOLO_2, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 11},
+ { PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_610, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 12},
{ 0, },
};
diff -u -r -N linux-2.4.28/drivers/ide/pci/generic.h linux-2.4.28-vt610/drivers/ide/pci/generic.h
--- linux-2.4.28/drivers/ide/pci/generic.h 2004-08-07 16:26:04.000000000 -0700
+++ linux-2.4.28-vt610/drivers/ide/pci/generic.h 2004-11-22 21:50:13.000000000 -0800
@@ -157,6 +157,19 @@
.channels = 2,
.autodma = NOAUTODMA,
.bootable = ON_BOARD,
+ },{ /* 12 */
+ .vendor = PCI_VENDOR_ID_VIA,
+ .device = PCI_DEVICE_ID_VIA_610,
+ .name = "VIA_610",
+ .init_chipset = init_chipset_generic,
+ .init_iops = NULL,
+ .init_hwif = init_hwif_generic,
+ .init_dma = init_dma_generic,
+ .channels = 2,
+ .autodma = AUTODMA,
+ .enablebits = {{0x00,0x00,0x00}, {0x00,0x00,0x00}},
+ .bootable = ON_BOARD,
+ .extra = 0,
},{
.vendor = 0,
.device = 0,
diff -u -r -N linux-2.4.28/include/linux/pci_ids.h linux-2.4.28-vt610/include/linux/pci_ids.h
--- linux-2.4.28/include/linux/pci_ids.h 2004-11-17 03:54:22.000000000 -0800
+++ linux-2.4.28-vt610/include/linux/pci_ids.h 2004-11-22 21:54:09.000000000 -0800
@@ -1123,6 +1123,7 @@
#define PCI_DEVICE_ID_VIA_8233A 0x3147
#define PCI_DEVICE_ID_VIA_P4M266 0x3148
#define PCI_DEVICE_ID_VIA_8237_SATA 0x3149
+#define PCI_DEVICE_ID_VIA_610 0x3164
#define PCI_DEVICE_ID_VIA_P4X333 0x3168
#define PCI_DEVICE_ID_VIA_8235 0x3177
#define PCI_DEVICE_ID_VIA_8377_0 0x3189
next reply other threads:[~2004-11-23 7:23 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-23 7:23 Mathias Kretschmer [this message]
2004-11-23 18:27 ` VIA VT610 IDE support for 2.4.28 (trivial) Jeff Garzik
2004-11-23 20:48 ` Mathias Kretschmer
2005-02-06 23:02 ` VIA VT610 IDE support for 2.4.28 (trivial) - now for 2.4.29/via82cxxx Mathias Kretschmer
2005-02-07 17:16 ` VIA VT6410 IDE support for 2.6.11-rc3/via82cxxx Mathias Kretschmer
2005-02-07 17:27 ` Jeff Garzik
2005-02-11 18:33 ` Bartlomiej Zolnierkiewicz
2005-08-15 11:50 ` Sergey Vlasov
2005-08-17 13:16 ` Sergey Vlasov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=41A2E581.2010305@blx4.net \
--to=posting@blx4.net \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.