ALI M1563 driver patch

From: Bardok - Jorge
Date: Thu Dec 04 2003 - 01:44:07 EST


This patch is intended to be used in order to make the ALI M1563 chipset work
with the 2.6 kernel series.

The original driver produces a kernel panic, as it always tries to initialize
the, sometimes, non-existent M1533 chipset (as it happens with my laptop).

This patch just defines the ALI M1563 symbol, and, if M1533 chipset is not
found, it tries to initialize the M1563 chipset.

I would like to apologize for writting and not being suscribed to the list, but
the 290-messages-in-a-day warning in the FAQ scared me a little bit... so
please, if anyone replies to this mail, I would like to be added as a CC to the
answers.

Thank you, and I hope this patch to be useful (and in the correct format, as I'm
new in this kernel-patching-thing):

Jorge García

-----------------------------------------------------------
patch to pci_ids.h
-----------------------------------------------------------

--- /usr/src/linux-2.6.0-test11/include/linux/pci_ids.h 2003-11-26
21:43:39.000000000 +0100
+++ /usr/src/linux/include/linux/pci_ids.h 2003-12-03 20:13:17.000000000
+0100
@@ -971,6 +971,7 @@
#define PCI_DEVICE_ID_AL_M1531 0x1531
#define PCI_DEVICE_ID_AL_M1533 0x1533
#define PCI_DEVICE_ID_AL_M1541 0x1541
+#define PCI_DEVICE_ID_AL_M1563 0x1563
#define PCI_DEVICE_ID_AL_M1621 0x1621
#define PCI_DEVICE_ID_AL_M1631 0x1631
#define PCI_DEVICE_ID_AL_M1632 0x1632


-----------------------------------------------------------
patch to alim15x3.c
-----------------------------------------------------------

--- /usr/src/linux-2.6.0-test11/drivers/ide/pci/alim15x3.c 2003-11-26
21:43:35.000000000 +0100
+++ /usr/src/linux/drivers/ide/pci/alim15x3.c 2003-12-03 20:16:48.000000000
+0100
@@ -584,6 +584,13 @@

isa_dev = pci_find_device(PCI_VENDOR_ID_AL, PCI_DEVICE_ID_AL_M1533,
NULL);

+ /*
+ * If ALI 1533 southbridge was not found,
+ * we try to find the ALI 1563 southbridge.
+ */
+ if (!isa_dev)
+ isa_dev = pci_find_device(PCI_VENDOR_ID_AL,
PCI_DEVICE_ID_AL_M1563, NULL);
+
#if defined(DISPLAY_ALI_TIMINGS) && defined(CONFIG_PROC_FS)
if (!ali_proc) {
ali_proc = 1;


---------------------------------------------------------------------------
| Jorge García Ochoa de Aspuru |
| e-mail: bardok@xxxxxxxxxxxxxx - shadow@xxxxxxxxxx |
---------------------------------------------------------------------------
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/