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

[linux-tr] 2.0 tokenring patch



I'm still stuck at a 2.0 kernel because I'm using DHCP over tr (any update on
this for 2.2?) and have been experiencing problems similar to the hangs
described in ibmtr.c.patch.0518 on both PCMCIA and MCA systems. So I had a
quick poke at the driver and came up with this simple patch (just putting
the 2.2 fixes into the 2.0 driver) which works very nicely for me.

If no-one has any problems I'll send it to Alan so it can go in the next
(and probably final) 2.0 drop.

Steve

*** ibmtr.c.ORIG        Tue Jun  8 14:29:00 1999
--- ibmtr.c     Tue Jun  8 09:37:47 1999
***************
*** 636,641 ****
--- 636,647 ----
                DPRINTK("close adapter failed: %02X\n",
                        (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;

        return 0;