From: Christopher Alexander Tobias Schulze Date: Sun, 3 Aug 2014 14:01:53 +0000 (+0200) Subject: sunsab: Fix detection of BREAK on sunsab serial console X-Git-Tag: v3.2.64~119 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7b59ac2f23fbd2d1c59006da791fd0caa7c1a4b7;p=pandora-kernel.git sunsab: Fix detection of BREAK on sunsab serial console [ Upstream commit fe418231b195c205701c0cc550a03f6c9758fd9e ] Fix detection of BREAK on sunsab serial console: BREAK detection was only performed when there were also serial characters received simultaneously. To handle all BREAKs correctly, the check for BREAK and the corresponding call to uart_handle_break() must also be done if count == 0, therefore duplicate this code fragment and pull it out of the loop over the received characters. Patch applies to 3.16-rc6. Signed-off-by: Christopher Alexander Tobias Schulze Signed-off-by: David S. Miller Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed