• R/O
  • HTTP
  • SSH
  • HTTPS

linux-2.4.36: Commit

2.4.36-stable kernel tree


Commit MetaInfo

Revisionf88c372a5033d0e764c1b910dc0bf4783ec2df3c (tree)
Time2007-11-12 02:54:12
Authorivaylo@bglans.net <ivaylo@bgla...>
CommiterWilly Tarreau

Log Message

[PATCH] IDE: enable support for JMicron 20363

Hello,

I have ASUS P5B-VM DO mobo with JMicron SATA/PATA controler. I write mail
to Alan Cox and he told me that PATA part of JMicron controler can be
pressant as generic ide. So I make some changes to generic ide driver in
kernel 2.4.35 to be support JMicron PATA controler, but I'm not advanced
in C programing and not sure what I did is right. It works for me.

If there are any interes I send you (see bellow) changes.

Best Regards.
Ivaylo Josifov

Change Summary

Incremental Difference

--- a/drivers/ide/pci/generic.c
+++ b/drivers/ide/pci/generic.c
@@ -143,6 +143,7 @@ static struct pci_device_id generic_pci_tbl[] __devinitdata = {
143143 { PCI_VENDOR_ID_TOSHIBA, PCI_DEVICE_ID_TOSHIBA_PICCOLO, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 9},
144144 { PCI_VENDOR_ID_TOSHIBA, PCI_DEVICE_ID_TOSHIBA_PICCOLO_1, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 10},
145145 { PCI_VENDOR_ID_TOSHIBA, PCI_DEVICE_ID_TOSHIBA_PICCOLO_2, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 11},
146+ { PCI_VENDOR_ID_JMICRON, PCI_DEVICE_ID_JMICRON_20363, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 12},
146147 { 0, },
147148 };
148149
--- a/drivers/ide/pci/generic.h
+++ b/drivers/ide/pci/generic.h
@@ -157,6 +157,16 @@ static ide_pci_device_t generic_chipsets[] __devinitdata = {
157157 .channels = 2,
158158 .autodma = NOAUTODMA,
159159 .bootable = ON_BOARD,
160+ },{ /* 12 */
161+ .vendor = PCI_VENDOR_ID_JMICRON,
162+ .device = PCI_DEVICE_ID_JMICRON_20363,
163+ .name = "JMICRON_20363",
164+ .init_chipset = init_chipset_generic,
165+ .init_hwif = init_hwif_generic,
166+ .init_dma = init_dma_generic,
167+ .channels = 1,
168+ .autodma = NOAUTODMA,
169+ .bootable = ON_BOARD,
160170 },{
161171 .vendor = 0,
162172 .device = 0,
--- a/include/linux/pci_ids.h
+++ b/include/linux/pci_ids.h
@@ -2100,3 +2100,7 @@
21002100
21012101 #define PCI_VENDOR_ID_WORKBIT 0x1145
21022102 #define PCI_DEVICE_ID_WORKBIT_CB 0xf021
2103+
2104+#define PCI_VENDOR_ID_JMICRON 0x197b
2105+#define PCI_DEVICE_ID_JMICRON_20363 0x2363
2106+
Show on old repository browser