Skip to content
Commit 3dc4db36 authored by Kazuhiro Fujita's avatar Kazuhiro Fujita Committed by Greg Kroah-Hartman
Browse files

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



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 0f87aa66
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment