All of lore.kernel.org
 help / color / mirror / Atom feed
* sunzilog possible bug
@ 2004-11-06 23:34 Benjamin Herrenschmidt
  2004-11-06 23:42 ` William Lee Irwin III
  2004-11-10  0:49 ` David S. Miller
  0 siblings, 2 replies; 3+ messages in thread
From: Benjamin Herrenschmidt @ 2004-11-06 23:34 UTC (permalink / raw)
  To: sparclinux

Hi !

I found recently a bug in pmac_zilog, which originates from sunzilog who so might
have the same problem. The "timeout" member of the port structure was never
initialized, causing very long pauses to happen on port close, that is pretty much
all the time when hitting userland.

Quick untested patch (I don't have a sparc)

=== drivers/serial/sunzilog.c 1.46 vs edited ==--- 1.46/drivers/serial/sunzilog.c	2004-09-21 06:46:03 +10:00
+++ edited/drivers/serial/sunzilog.c	2004-11-07 10:05:37 +11:00
@@ -974,6 +974,8 @@
 
 	sunzilog_maybe_update_regs(up, ZILOG_CHANNEL_FROM_PORT(port));
 
+	uart_update_timeout(port, termios->c_cflag, baud);
+
 	spin_unlock_irqrestore(&up->port.lock, flags);
 }
 




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

* Re: sunzilog possible bug
  2004-11-06 23:34 sunzilog possible bug Benjamin Herrenschmidt
@ 2004-11-06 23:42 ` William Lee Irwin III
  2004-11-10  0:49 ` David S. Miller
  1 sibling, 0 replies; 3+ messages in thread
From: William Lee Irwin III @ 2004-11-06 23:42 UTC (permalink / raw)
  To: sparclinux

On Sun, Nov 07, 2004 at 10:34:49AM +1100, Benjamin Herrenschmidt wrote:
> I found recently a bug in pmac_zilog, which originates from sunzilog
> who so might have the same problem. The "timeout" member of the port
> structure was never initialized, causing very long pauses to happen
> on port close, that is pretty much all the time when hitting userland.
> Quick untested patch (I don't have a sparc)

Thanks ben.

If those having trouble with serial ports could try this patch and report
success (or failure if that's the case) I would be much obliged.


-- wli

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

* Re: sunzilog possible bug
  2004-11-06 23:34 sunzilog possible bug Benjamin Herrenschmidt
  2004-11-06 23:42 ` William Lee Irwin III
@ 2004-11-10  0:49 ` David S. Miller
  1 sibling, 0 replies; 3+ messages in thread
From: David S. Miller @ 2004-11-10  0:49 UTC (permalink / raw)
  To: sparclinux

On Sun, 07 Nov 2004 10:34:49 +1100
Benjamin Herrenschmidt <benh@kernel.crashing.org> wrote:

> I found recently a bug in pmac_zilog, which originates from sunzilog who so might
> have the same problem. The "timeout" member of the port structure was never
> initialized, causing very long pauses to happen on port close, that is pretty much
> all the time when hitting userland.
> 
> Quick untested patch (I don't have a sparc)

Looks good to me, I'll apply this to my tree.

Thanks Benjamic.

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

end of thread, other threads:[~2004-11-10  0:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-06 23:34 sunzilog possible bug Benjamin Herrenschmidt
2004-11-06 23:42 ` William Lee Irwin III
2004-11-10  0:49 ` David S. Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.