Re: [PATCH 4.4.y-cip] serial: sh-sci: Make sure status register SCxSR is read in correct sequence

Pavel Machek


From: Kazuhiro Fujita <kazuhiro.fujita.jg@...>

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.

Cc: <stable@...>
Signed-off-by: Kazuhiro Fujita <kazuhiro.fujita.jg@...>
Signed-off-by: Hao Bui <hao.bui.yg@...>
Signed-off-by: KAZUMI HARADA <kazumi.harada.rh@...>
Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@...>
Tested-by: Geert Uytterhoeven <geert+renesas@...>
Signed-off-by: Greg Kroah-Hartman <gregkh@...>
Signed-off-by: Biju Das <biju.das.jz@...>
Looks good to me.
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).

Best regards,
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany

Join to automatically receive all group messages.