Andrew Liu fbe543b412 Fix a potential issue in mpc52xx uart driver
mpc52xx_uart_int and __uart_put_char both try to acquire the
port->lock. Therefore the function sequence of:

mpc52xx_uart_int--> ...-->flush_to_ldisc-->...-->__uart_put_char

can potentially trigger a deadlock. To avoid this deadlock a fix
similar to that found in the 8250.c serial driver is applied. The
deadlock is avoided by releasing the lock before pushing a buffer
and reacquiring it when completed.

Signed-off-by: Andrew Liu <shengping.liu@windriver.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
2008-05-01 11:59:12 -06:00
..
2007-10-17 08:42:52 -07:00
2008-02-08 09:22:25 -08:00
2008-02-08 09:22:25 -08:00
2008-02-08 09:22:25 -08:00
2008-02-08 09:22:25 -08:00
2008-02-04 13:14:06 +00:00
2008-04-17 20:05:39 +02:00
2008-04-28 08:58:28 -07:00
2007-11-14 18:45:46 -08:00
2008-02-03 14:47:38 +02:00
2008-04-19 17:17:34 +01:00
2007-11-29 09:24:53 -08:00
2008-02-03 17:29:25 +02:00
2007-09-11 17:21:19 -07:00
2008-04-17 01:01:38 -05:00
2007-07-18 08:38:22 -07:00
2007-07-18 08:38:22 -07:00