aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty
diff options
context:
space:
mode:
authorRobert Baldyga <r.baldyga@samsung.com>2014-11-24 01:56:24 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-11-25 20:06:40 -0500
commit57850a50c1f91c6136fe0b4b27301ebbe848b2ce (patch)
treec051d9b56f07752911d9fc63f62dc8eb76050421 /drivers/tty
parent2f1ba72d23a2fa0cdcb4f034a059ce97e6a17696 (diff)
serial: samsung: use port->fifosize instead of hardcoded values
Hardcoded FIFO size can cause hardware performance limitation. Using real size value provides better FIFO usage. Signed-off-by: Robert Baldyga <r.baldyga@samsung.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty')
-rw-r--r--drivers/tty/serial/samsung.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/tty/serial/samsung.c b/drivers/tty/serial/samsung.c
index 34db16715efc..7ed76773c274 100644
--- a/drivers/tty/serial/samsung.c
+++ b/drivers/tty/serial/samsung.c
@@ -239,7 +239,7 @@ s3c24xx_serial_rx_chars(int irq, void *dev_id)
239 struct uart_port *port = &ourport->port; 239 struct uart_port *port = &ourport->port;
240 unsigned int ufcon, ch, flag, ufstat, uerstat; 240 unsigned int ufcon, ch, flag, ufstat, uerstat;
241 unsigned long flags; 241 unsigned long flags;
242 int max_count = 64; 242 int max_count = port->fifosize;
243 243
244 spin_lock_irqsave(&port->lock, flags); 244 spin_lock_irqsave(&port->lock, flags);
245 245
@@ -330,7 +330,7 @@ static irqreturn_t s3c24xx_serial_tx_chars(int irq, void *id)
330 struct uart_port *port = &ourport->port; 330 struct uart_port *port = &ourport->port;
331 struct circ_buf *xmit = &port->state->xmit; 331 struct circ_buf *xmit = &port->state->xmit;
332 unsigned long flags; 332 unsigned long flags;
333 int count = 256; 333 int count = port->fifosize;
334 334
335 spin_lock_irqsave(&port->lock, flags); 335 spin_lock_irqsave(&port->lock, flags);
336 336