mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: David Daney <ddaney@avtrex.com>
To: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Subject: Patch: ATI Xilleon port 3/11 serial/8250 Set UART_CAP_FIFO in early_serial_setup
Date: Wed, 19 Oct 2005 23:03:16 -0700	[thread overview]
Message-ID: <17239.13092.785385.20266@dl2.hq2.avtrex.com> (raw)

This is the third part of my Xilleon port.

I am sending the full set of patches to linux-mips@linux-mips.org
which is archived at: http://www.linux-mips.org/archives/

Only the patches that touch generic parts of the kernel are coming
here.

The Xilleon's (32bit MIPS SOC) serial ports do not work right if the
fifo is not enabled.  This prevented early serial support from
working.

The fix is to set UART_CAP_FIFO in early_serial_setup iff the hardware
says it supports it.

Patch against 2.6.14-rc2 from linux-mips.org

Signed-off-by: David Daney <ddaney@avtrex.com>

Set UART_CAP_FIFO in early_serial_setup() if the port has that
capability.  Needed by xilleon port.

---
commit e65836c84865cbcf3abc445984bacc583624e347
tree 9c198c5858e4c8c500327e7947c69921355dea9b
parent 2a66e82b3d2b02aca88cc2f60286fba0c114139d
author David Daney <daney@dl2.hq2.avtrex.com> Tue, 04 Oct 2005 14:02:44 -0700
committer David Daney <daney@dl2.hq2.avtrex.com> Tue, 04 Oct 2005 14:02:44 -0700

 drivers/serial/8250.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/serial/8250.c b/drivers/serial/8250.c
--- a/drivers/serial/8250.c
+++ b/drivers/serial/8250.c
@@ -2283,6 +2283,8 @@ int __init early_serial_setup(struct uar
 	serial8250_isa_init_ports();
 	serial8250_ports[port->line].port	= *port;
 	serial8250_ports[port->line].port.ops	= &serial8250_pops;
+        if (uart_config[port->type].flags & UART_CAP_FIFO)
+            serial8250_ports[port->line].capabilities |= UART_CAP_FIFO;
 	return 0;
 }
 






                 reply	other threads:[~2005-10-20  6:03 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=17239.13092.785385.20266@dl2.hq2.avtrex.com \
    --to=ddaney@avtrex.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mips@linux-mips.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®