linux-sh.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] sh-sci: using correct fifo size for SCIF and SCIFA
@ 2010-01-13 13:25 Pietrek, Markus
  2010-01-14 23:30 ` Paul Mundt
  0 siblings, 1 reply; 2+ messages in thread
From: Pietrek, Markus @ 2010-01-13 13:25 UTC (permalink / raw)
  To: linux-sh

Hi,

the sh-sci driver used the wrong fifosize for PORT_SCIFA and PORT_SCIF. If an incorrect size is used, the serial core will enforce a shutdown of a device too early, especially on baudrates < 9600.

diff --git a/drivers/serial/sh-sci.c b/drivers/serial/sh-sci.c
index e218000..ff86ffb 100644
--- a/drivers/serial/sh-sci.c
+++ b/drivers/serial/sh-sci.c
@@ -1156,7 +1156,11 @@ static void __devinit sci_init_single(struct platform_device *dev,
        sci_port->port.ops      = &sci_uart_ops;
        sci_port->port.iotype   = UPIO_MEM;
        sci_port->port.line     = index;
-       sci_port->port.fifosize = 1;
+       switch (p->type) {
+           case PORT_SCIFA: sci_port->port.fifosize = 64; break;
+           case PORT_SCIF:  sci_port->port.fifosize = 16; break;
+           default:         sci_port->port.fifosize = 1;  break;
+       }

        if (dev) {
                sci_port->iclk = p->clk ? clk_get(&dev->dev, p->clk) : NULL;

_____________________________________

Amtsgericht Mannheim
HRB 110 300
Gesch?ftsf?hrer: Dieter Baur, Ramona Maurer
_____________________________________

Important Note:
- This e-mail may contain trade secrets or privileged, undisclosed or otherwise confidential information.
- If you have received this e-mail in error, you are hereby notified that any review, copying or distribution of it is strictly prohibited.
- Please inform us immediately and destroy the original transmittal.

Thank you for your cooperation.

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

* Re: [PATCH] sh-sci: using correct fifo size for SCIF and SCIFA
  2010-01-13 13:25 [PATCH] sh-sci: using correct fifo size for SCIF and SCIFA Pietrek, Markus
@ 2010-01-14 23:30 ` Paul Mundt
  0 siblings, 0 replies; 2+ messages in thread
From: Paul Mundt @ 2010-01-14 23:30 UTC (permalink / raw)
  To: linux-sh

On Wed, Jan 13, 2010 at 02:25:34PM +0100, Pietrek, Markus wrote:
> the sh-sci driver used the wrong fifosize for PORT_SCIFA and PORT_SCIF.
> If an incorrect size is used, the serial core will enforce a shutdown
> of a device too early, especially on baudrates < 9600.
> 
Good catch, I'll roll this in to the 2.6.33 queue, thanks.

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

end of thread, other threads:[~2010-01-14 23:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-13 13:25 [PATCH] sh-sci: using correct fifo size for SCIF and SCIFA Pietrek, Markus
2010-01-14 23:30 ` Paul Mundt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).