Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 14461
b: refs/heads/master
c: a137ce8
h: refs/heads/master
i:
  14459: 85c69b9
v: v3
  • Loading branch information
Ryan Bradetich authored and Kyle McMartin committed Nov 17, 2005
1 parent 799b26d commit 6f29eaf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 83aceb5b6a561c7fd7cc2d481fb55a0a2ae37c12
refs/heads/master: a137ce8536f6124c42ac300be01b9b611c7db5a1
7 changes: 7 additions & 0 deletions trunk/drivers/serial/mux.c
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,13 @@ static int __init mux_probe(struct parisc_device *dev)
port->ops = &mux_pops;
port->flags = UPF_BOOT_AUTOCONF;
port->line = port_cnt;

/* The port->timeout needs to match what is present in
* uart_wait_until_sent in serial_core.c. Otherwise
* the time spent in msleep_interruptable will be very
* long, causing the appearance of a console hang.
*/
port->timeout = HZ / 50;
spin_lock_init(&port->lock);
status = uart_add_one_port(&mux_driver, port);
BUG_ON(status);
Expand Down

0 comments on commit 6f29eaf

Please sign in to comment.