From: Thomas Abraham Date: Thu, 22 Nov 2012 12:36:28 +0000 (+0530) Subject: serial: samsung: fix potential soft lockup during uart write X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~83^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c15c3747ee32b6969f3cfbc86dc94923e3742d0a;p=pandora-kernel.git serial: samsung: fix potential soft lockup during uart write Certain tty line discipline implementations such slip and bluetooth hci invoke the serial core uart_write() api in their write_wakeup callback. This leads to a soft lockup with samsung serial driver since the uart port lock is taken in the driver's interrupt handler and uart_write() attempts to take the same lock again. Fix this issue by releasing the uart port lock before the call to uart_write_wakeup() in the tx handler. Also move the spin-lock/unlock sequence from s3c64xx_serial_handle_irq() function into the tx and rx irq handlers so that this change is applicable to s3c24xx platforms as well. Reported-by: Kyungmin Park Reported-by: Hyeonkook Kim Signed-off-by: Thomas Abraham Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed