]> git.baikalelectronics.ru Git - kernel.git/commit
serial: sh-sci: Fix up SCFCR handling.
authorPaul Mundt <lethal@linux-sh.org>
Thu, 24 Nov 2011 09:35:49 +0000 (18:35 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Thu, 24 Nov 2011 09:35:49 +0000 (18:35 +0900)
commit4d59cebc625bdeda46f9e6dcae3d240afb1d9124
tree0f91fe576992c8e95af6a7a43c39374a68f48d8e
parent4f655f0236187adb21185de62338325dd011dca5
serial: sh-sci: Fix up SCFCR handling.

Presently there are a few places that make assumptions about the
existence of SCFCR, which doesn't hold true for several port types. While
generally harmless, this does lead to bogus reads/writes in both the
termios/runtime PM cases that are better off simply never being made in
the first place.

While we're at it, also get rid of a straggling PORT_SCI check that
infers all non-SCI ports contain SCFCR. This doesn't presently have any
impact, but as we're now able to test for the existence of registers
without defering to the port type we future proof for additional port
types.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
drivers/tty/serial/sh-sci.c