From patchwork Wed Jan 13 13:25:34 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Pietrek, Markus" X-Patchwork-Id: 72625 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.2) with ESMTP id o0DDPiJ3011101 for ; Wed, 13 Jan 2010 13:25:44 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754369Ab0AMNZn (ORCPT ); Wed, 13 Jan 2010 08:25:43 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754455Ab0AMNZn (ORCPT ); Wed, 13 Jan 2010 08:25:43 -0500 Received: from mail3.emtrion.de ([80.150.99.69]:12979 "EHLO mail3.emtrion.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753587Ab0AMNZn convert rfc822-to-8bit (ORCPT ); Wed, 13 Jan 2010 08:25:43 -0500 Received: from BMK019S01.emtrion.local ([fe80::4a1:cedc:cab6:e9ce]) by BMK019S01.emtrion.local ([fe80::4a1:cedc:cab6:e9ce%10]) with mapi; Wed, 13 Jan 2010 14:25:36 +0100 From: "Pietrek, Markus" To: "linux-sh@vger.kernel.org" Date: Wed, 13 Jan 2010 14:25:34 +0100 Subject: [PATCH] sh-sci: using correct fifo size for SCIF and SCIFA Thread-Topic: [PATCH] sh-sci: using correct fifo size for SCIF and SCIFA Thread-Index: AcqUU+NCr/ri+2jcS4iOIS1hq9WKEQ== Message-ID: <95F51F4B902CAC40AF459205F6322F0164298E5C37@BMK019S01.emtrion.local> Accept-Language: de-DE Content-Language: de-DE X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: de-DE x-tm-as-product-ver: SMEX-8.0.0.1307-6.000.1038-17128.007 x-tm-as-result: No--44.274800-8.000000-31 x-tm-as-user-approved-sender: No x-tm-as-user-blocked-sender: No MIME-Version: 1.0 Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org 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;