Re: [BUG] 2.4.18-pre/rc broke PLIP

Stas Sergeev (stssppnn@yahoo.com)
Thu, 07 Mar 2002 06:47:51 +0300


This is a multi-part message in MIME format.
--------------060602040100010805050307
Content-Type: text/plain; charset=KOI8-R; format=flowed
Content-Transfer-Encoding: 7bit

Hello.

Tim Waugh wrote:
> Does 2.4.19-pre2 not work for you?

I had the similar problem with plip at 2.4.18
and 2.4.19-pre2 seems to fix it for me (though
I have seen a comments that it doesn't work for
others).
But I had another problem with plip for years,
which was not fixed by 2.4.19-pre2:
if I do `ifdown plip0` and then `ifup plip0`,
plip no longer works and the kernel logs timeouts,
just like in 2.4.18.
To work around the problem I removed "DISABLE(dev-irq);"
from plip_close(), and it works nice since.
So, if you are already on this, could you please
look at the attached "patch" and make a real fix
(if this is not the one already)?

--------------060602040100010805050307
Content-Type: text/plain;
name="plip.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="plip.diff"

--- linux/drivers/net/plip.c Sun Sep 30 23:26:07 2001
+++ linux/drivers/net/plip.c Thu Mar 7 02:47:43 2002
@@ -163,7 +163,7 @@
static int plip_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd);
static int plip_preempt(void *handle);
static void plip_wakeup(void *handle);
-
+
enum plip_connection_state {
PLIP_CN_NONE=0,
PLIP_CN_RECEIVE,
@@ -1177,7 +1177,6 @@
struct plip_local *rcv = &nl->rcv_data;

netif_stop_queue (dev);
- DISABLE(dev->irq);
synchronize_irq();

if (dev->irq == -1)

--------------060602040100010805050307--

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/