From: Andrew Liu Date: Tue, 29 Apr 2008 07:36:25 +0000 (+1000) Subject: Fix a potential issue in mpc52xx uart driver X-Git-Tag: v2.6.26-rc1~7^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fbe543b412cef02350fab35526a6d4dc3d20d182;p=pandora-kernel.git 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 Signed-off-by: Grant Likely --- Reading git-diff-tree failed