From: Kazuhiro Fujita <email@example.com>Looks good to me.
commit 3dc4db3662366306e54ddcbda4804acb1258e4ba upstream.
For SCIF and HSCIF interfaces the SCxSR register holds the status of
data that is to be read next from SCxRDR register, But where as for
SCIFA and SCIFB interfaces SCxSR register holds status of data that is
previously read from SCxRDR register.
This patch makes sure the status register is read depending on the port
types so that errors are caught accordingly.
Signed-off-by: Kazuhiro Fujita <firstname.lastname@example.org>
Signed-off-by: Hao Bui <email@example.com>
Signed-off-by: KAZUMI HARADA <firstname.lastname@example.org>
Signed-off-by: Lad Prabhakar <email@example.com>
Tested-by: Geert Uytterhoeven <firstname.lastname@example.org>
Signed-off-by: Greg Kroah-Hartman <email@example.com>
Signed-off-by: Biju Das <firstname.lastname@example.org>
I will merge if nothing else is mentioned.
It looks good to me, and it passed basic testing -- so I applied the
patch and am pushing it. (I hope you don't mind).
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany