Skip to content
Snippets Groups Projects
Commit 7c791b3f authored by Tetsuyuki Kobayashi's avatar Tetsuyuki Kobayashi Committed by Nobuhiro Iwamatsu
Browse files

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: default avatarTetsuyuki Kobayashi <koba@kmckk.co.jp>
Signed-off-by: default avatarNobuhiro Iwamatsu <iwamatsu@nigauri.org>
parent 867da0d4
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment