public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [BUG] 2.4.18-pre/rc broke PLIP
@ 2002-02-24 23:20 Mikael Pettersson
  2002-03-05 16:36 ` Bill Davidsen
  0 siblings, 1 reply; 7+ messages in thread
From: Mikael Pettersson @ 2002-02-24 23:20 UTC (permalink / raw)
  To: linux-kernel

[sent to Tim Waugh and Marcelo previously, but of course
I managed to put a typo in the cc: to lkml]

Someone (sorry I forgot who) reported having problems with
PLIP in recent kernels. I've done some testing and can confirm
that PLIP worked up to 2.4.17 but broke in 2.4.18-pre/rc.
The only thing PLIP does is put "plip0: transmit timeout(1,87)"
messages in the kernel log.

After a lot of testing I've narrowed it down to the following
hunk in the 2.4.18-rc4 patch:

--- linux.orig/drivers/parport/parport_pc.c	Mon Feb 18 20:18:40 2002
+++ linux/drivers/parport/parport_pc.c	Mon Jan 14 19:08:50 2002
@@ -2212,7 +2233,7 @@
 	}
 	memcpy (ops, &parport_pc_ops, sizeof (struct parport_operations));
 	priv->ctr = 0xc;
-	priv->ctr_writable = 0xff;
+	priv->ctr_writable = ~0x10;
 	priv->ecr = 0;
 	priv->fifo_depth = 0;
 	priv->dma_buf = 0;

If I back this hunk out, PLIP starts working again.
Is this fix sufficient or is there something else that need fixing?

/Mikael

^ permalink raw reply	[flat|nested] 7+ messages in thread
* Re: [BUG] 2.4.18-pre/rc broke PLIP
@ 2002-03-07  3:47 Stas Sergeev
  0 siblings, 0 replies; 7+ messages in thread
From: Stas Sergeev @ 2002-03-07  3:47 UTC (permalink / raw)
  To: linux-kernel; +Cc: twaugh

[-- Attachment #1: Type: text/plain, Size: 647 bytes --]

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)?

[-- Attachment #2: plip.diff --]
[-- Type: text/plain, Size: 514 bytes --]

--- 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);
-\f
+
 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)

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2002-03-07  3:53 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-02-24 23:20 [BUG] 2.4.18-pre/rc broke PLIP Mikael Pettersson
2002-03-05 16:36 ` Bill Davidsen
2002-03-05 16:55   ` Tim Waugh
2002-03-05 21:20     ` Bill Davidsen
2002-03-05 22:04       ` Tim Waugh
2002-03-06 19:08         ` Bill Davidsen
  -- strict thread matches above, loose matches on Subject: below --
2002-03-07  3:47 Stas Sergeev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox