summaryrefslogtreecommitdiff
path: root/fs/nls/nls_cp860.c
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert+renesas@glider.be>2015-04-30 19:21:32 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-05-10 20:06:39 +0300
commit2e0842a154f63ae222ececd6b6b1db4c75426516 (patch)
treee30d6bfe0604dd71c39f9fa04b53c12ad5f8474d /fs/nls/nls_cp860.c
parent75c249fd7cb9097c58e44bc82f61b1f72ef79b3a (diff)
downloadlinux-2e0842a154f63ae222ececd6b6b1db4c75426516.tar.xz
serial: sh-sci: Use the correct register for overrun checks
The various SCI implementations use 3 different methods to signal overrun errors: - Bit SCI_ORER in register SCxSR on SCI, - Bit SCIFA_ORER in register SCxSR on SCIFA and SCIFB, and SCIF on SH7705/SH7720/SH7721, - Bit SCLSR_ORER in (optional!) register SCLSR on (H)SCIF. However: 1. sci_handle_fifo_overrun() a. handles (H)SCIF and SCIFA/SCIFB only, b. treats SCIF on SH7705/SH7720/SH7721 incorrectly, 2. sci_mpxed_interrupt() a. treats SCIF on SH7705/SH7720/SH7721 incorrectly, b. ignores that not all SCIFs have the SCLSR register, causing "Invalid register access" WARN()ings. To fix the above: 1. Determine and store the correct register enum during initialization, 2. Replace the duplicated buggy switch statements by using the stored register enum, 3. Add the missing existence check to sci_mpxed_interrupt(). Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/nls/nls_cp860.c')
0 files changed, 0 insertions, 0 deletions