760ed yenta patch

From ThinkWiki
Revision as of 09:14, 11 April 2007 by GaiI44 (Talk | contribs)
Jump to: navigation, search

This is a kernel patch for a IBM Thinkpad 760ED notebook.

The pci irq pin of the ti1130 pcmcia bridge is not connected. To use the cardbus, the kernel has to route the cardbus irq to an isa irq. This patch detects an valid irq and route cardbus interupts to isa instead of pci. (If a valid pci irq is detected it should use it and not the isa irq.)

<nowiki>
diff -u linux-2.6.15.1/drivers/pcmcia/i82365.h linux-2.6.15.1-jck/drivers/pcmcia/i82365.h
--- linux-2.6.15.1/drivers/pcmcia/i82365.h	2006-01-15 07:16:02.000000000  0100
    linux-2.6.15.1-jck/drivers/pcmcia/i82365.h	2006-02-18 17:34:35.000000000  0100
@@ -88,13  88,14 @@
 #define I365_IRQ_MASK	0x0F
 
 /* Flags for I365_CSC and I365_CSCINT*/
-#define I365_CSC_BVD1	0x01
-#define I365_CSC_STSCHG	0x01
-#define I365_CSC_BVD2	0x02
-#define I365_CSC_READY	0x04
-#define I365_CSC_DETECT	0x08
-#define I365_CSC_ANY	0x0F
-#define I365_CSC_GPI	0x10
 #define I365_CSC_BVD1		0x01
 #define I365_CSC_STSCHG		0x01
 #define I365_CSC_BVD2		0x02
 #define I365_CSC_READY		0x04
 #define I365_CSC_DETECT		0x08
 #define I365_CSC_ANY		0x0F
 #define I365_CSC_GPI		0x10
 #define I365_CSC_IRQ_MASK	0xF0
 
 /* Flags for I365_ADDRWIN */
 #define I365_ENA_IO(map)	(0x40 << (map))
diff -u linux-2.6.15.1/drivers/pcmcia/ti113x.h linux-2.6.15.1-jck/drivers/pcmcia/ti113x.h
--- linux-2.6.15.1/drivers/pcmcia/ti113x.h	2006-01-15 07:16:02.000000000  0100
    linux-2.6.15.1-jck/drivers/pcmcia/ti113x.h	2006-03-15 10:13:32.000000000  0100
@@ -304,6  304,18 @@
 	return 0;
 }
 
 static int ti113x_init(struct yenta_socket *socket)
 {
         u8 new, reg = exca_readb(socket, I365_INTCTL);
 
         new = reg