]> git.pld-linux.org Git - packages/kernel.git/blob - 2.6.6-serial-fifo-lkml.patch
- update for cset 20040707_...
[packages/kernel.git] / 2.6.6-serial-fifo-lkml.patch
1  When using register_serial the xmit_fifo_size parameter is accepted by the
2  8250 driver, and copied to the uart_port fifosize parameter, however
3  autoconfigure then comes along and overrides this from the
4  dfl_xmit_fifo_size,
5  
6  this patch checks if fifosize is 0 and if it is updates from the default,
7  otherwise it accepts the value,
8  
9  ignore the 2.6.4 in the patch, it is against 2.6.6.
10  
11  Dave.
12  
13  
14 --- linux26/drivers/serial/8250.c       2004-05-11 10:42:56.000000000 +1000
15 +++ linux-2.6.4/drivers/serial/8250.c   2004-05-11 14:02:45.000000000 +1000
16 @@ -697,7 +697,8 @@
17  #endif
18         serial_outp(up, UART_LCR, save_lcr);
19  
20 -       up->port.fifosize = uart_config[up->port.type].dfl_xmit_fifo_size;
21 +       if (up->port.fifosize==0)
22 +               up->port.fifosize = uart_config[up->port.type].dfl_xmit_fifo_size;
23         up->capabilities = uart_config[up->port.type].flags;
24  
25         if (up->port.type == PORT_UNKNOWN)
26
This page took 0.023466 seconds and 3 git commands to generate.