* ALI M1563 driver patch
@ 2003-12-03 21:44 Bardok - Jorge
0 siblings, 0 replies; only message in thread
From: Bardok - Jorge @ 2003-12-03 21:44 UTC (permalink / raw)
To: linux-kernel
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@telefonica.net - shadow@bardok.net |
---------------------------------------------------------------------------
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-12-04 6:43 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-03 21:44 ALI M1563 driver patch Bardok - Jorge
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®