[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[linux-tr] PCMCIA ifconfig down / up fix



Here is the fix for the problems with the pcmcia driver not coming back up from a ifconfig down / up combination. It's a patch against 2.2.9 so includes the << 12 stuff as well.  I'm suprised this doesn't kill some isa pnp cards as well. 

Mike

--- ibmtr.c.orig	Tue May 18 10:00:56 1999
+++ ibmtr.c	Tue May 18 09:46:46 1999
@@ -513,7 +513,7 @@
 	/* How much shared RAM is on adapter ? */
 #ifdef PCMCIA
 	ti->avail_shared_ram = pcmcia_reality_check(get_sram_size(ti));
-	ibmtr_mem_base = ti->sram_base ; 
+	ibmtr_mem_base = ti->sram_base << 12 ; 
 #else
 	ti->avail_shared_ram = get_sram_size(ti);
 #endif
@@ -833,6 +833,9 @@
 			(int)readb(ti->srb + offsetof(struct srb_close_adapter, ret_code)));
 
         dev->start = 0;
+#ifdef PCMCIA
+	ti->sram = 0 ;
+#endif
 	DPRINTK("Adapter closed.\n");
 	MOD_DEC_USE_COUNT;