* [patch] serial fifo size is ignored
@ 2004-05-11 3:57 Dave Airlie
0 siblings, 0 replies; only message in thread
From: Dave Airlie @ 2004-05-11 3:57 UTC (permalink / raw)
To: rmk+serial; +Cc: linux-kernel
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)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-05-11 3:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-11 3:57 [patch] serial fifo size is ignored Dave Airlie
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®