diff options
Diffstat (limited to 'drivers/serial')
-rw-r--r-- | drivers/serial/mux.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/serial/mux.c b/drivers/serial/mux.c index 36e3bcb1ebf0..7633132a10aa 100644 --- a/drivers/serial/mux.c +++ b/drivers/serial/mux.c | |||
@@ -477,6 +477,13 @@ static int __init mux_probe(struct parisc_device *dev) | |||
477 | port->ops = &mux_pops; | 477 | port->ops = &mux_pops; |
478 | port->flags = UPF_BOOT_AUTOCONF; | 478 | port->flags = UPF_BOOT_AUTOCONF; |
479 | port->line = port_cnt; | 479 | port->line = port_cnt; |
480 | |||
481 | /* The port->timeout needs to match what is present in | ||
482 | * uart_wait_until_sent in serial_core.c. Otherwise | ||
483 | * the time spent in msleep_interruptable will be very | ||
484 | * long, causing the appearance of a console hang. | ||
485 | */ | ||
486 | port->timeout = HZ / 50; | ||
480 | spin_lock_init(&port->lock); | 487 | spin_lock_init(&port->lock); |
481 | status = uart_add_one_port(&mux_driver, port); | 488 | status = uart_add_one_port(&mux_driver, port); |
482 | BUG_ON(status); | 489 | BUG_ON(status); |