]> git.kernelconcepts.de Git - karo-tx-linux.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)
commit0979e0e641d21d3bb318da90a64fc0024a95f50e
tree0f91fe576992c8e95af6a7a43c39374a68f48d8e
parenta9098b372606a15745cdeb012de4ee91c0df82c4
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