From: Dave Airlie <airlied@linux.ie>
To: rmk+serial@arm.linux.org.uk
Cc: linux-kernel@vger.kernel.org
Subject: [patch] serial fifo size is ignored
Date: Tue, 11 May 2004 04:57:00 +0100 (IST) [thread overview]
Message-ID: <Pine.LNX.4.58.0405110453540.3427@skynet> (raw)
When using register_serial the xmit_fifo_size parameter is accepted by the
8250 driver, and copied to the uart_port fifosize parameter, however
autoconfigure then comes along and overrides this from the
dfl_xmit_fifo_size,
this patch checks if fifosize is 0 and if it is updates from the default,
otherwise it accepts the value,
ignore the 2.6.4 in the patch, it is against 2.6.6.
Dave.
--
David Airlie, Software Engineer
http://www.skynet.ie/~airlied / airlied at skynet.ie
pam_smb / Linux DECstation / Linux VAX / ILUG person
--- linux26/drivers/serial/8250.c 2004-05-11 10:42:56.000000000 +1000
+++ linux-2.6.4/drivers/serial/8250.c 2004-05-11 14:02:45.000000000 +1000
@@ -697,7 +697,8 @@
#endif
serial_outp(up, UART_LCR, save_lcr);
- up->port.fifosize = uart_config[up->port.type].dfl_xmit_fifo_size;
+ if (up->port.fifosize==0)
+ up->port.fifosize = uart_config[up->port.type].dfl_xmit_fifo_size;
up->capabilities = uart_config[up->port.type].flags;
if (up->port.type == PORT_UNKNOWN)
reply other threads:[~2004-05-11 3:57 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=Pine.LNX.4.58.0405110453540.3427@skynet \
--to=airlied@linux.ie \
--cc=linux-kernel@vger.kernel.org \
--cc=rmk+serial@arm.linux.org.uk \
/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®