]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - glsdk/glsdk-u-boot.git/commit
serial: serial_sh: bugfix: autoboot fails if serial console is not connected
authorTetsuyuki Kobayashi <koba@kmckk.co.jp>
Mon, 19 Nov 2012 21:37:38 +0000 (21:37 +0000)
committerNobuhiro Iwamatsu <iwamatsu@nigauri.org>
Fri, 30 Nov 2012 06:06:05 +0000 (15:06 +0900)
commit7c791b3f0a8e42f8012f782ef56ad6e88858e7c4
tree8e0e8935ab39212801cc68c19fe7d28ead5b7e05
parent867da0d4fe79baf78b7320b99eea4c7a78b15581
serial: serial_sh: bugfix: autoboot fails if serial console is not connected

On kzm9g board (rmobile SoC), autoboot fails if serial console cable is not
connected.  When serial cable is not connected, serial error occurs and
some garbage comes in data register.
sh_serial_tstc() in serial_sh.c does not check error status and misunderstand
there is some input data.  It is the reason that autoboot fails.
This patch adds checking error status in sh_serial_tstc().

This patch is based on v2013.01-rc1 tag of u-boot master git.

Signed-off-by: Tetsuyuki Kobayashi <koba@kmckk.co.jp>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
drivers/serial/serial_sh.c