Skip to content
Commit 441c68f6 authored by Kazuhiro Fujita's avatar Kazuhiro Fujita Committed by bgman111111
Browse files

serial: sh-sci: Make sure status register SCxSR is read in correct sequence



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@vger.kernel.org>
Signed-off-by: default avatarKazuhiro Fujita <kazuhiro.fujita.jg@renesas.com>
Signed-off-by: default avatarHao Bui <hao.bui.yg@renesas.com>
Signed-off-by: default avatarKAZUMI HARADA <kazumi.harada.rh@renesas.com>
Signed-off-by: default avatarLad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Tested-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/1585333048-31828-1-git-send-email-kazuhiro.fujita.jg@renesas.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f5c3d69a
Loading
Loading
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