Re: [PATCH] Fix a potential issue in mpc52xx uart driver

2008-05-01 Thread Grant Likely
On Tue, Apr 29, 2008 at 1:36 AM, Andrew Liu <[EMAIL PROTECTED]> wrote: > 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

[PATCH] Fix a potential issue in mpc52xx uart driver

2008-04-29 Thread Andrew Liu
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 appl