linux/arch/sh/kernel/cpu
Laurent Pinchart 203a1aeb5d sh: Don't set sh-sci pdata scscr TIE and RIE bits
The scscr platform data field is used by the driver in three locations.
One of them masks out all bits except SCSCR_REIE. The two other are the
set_termios handler and the console write handler.

The set_termios handler calls sci_start_rx() to enable the receiver,
which sets the RIE bit unconditionally. It then calls sci_port_disable()
that effectively disables both the transmitter and the receiver. The
TIE bit will thus get set later when the serial cores reenables the
serial port.

The console write handler runs with interrupts disabled, and saves and
restores the SCSCR register value. The RIE and TIE bits are thus not
needed there.

The bits are thus not necessary in platform data, remove them.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-01-19 14:17:04 +01:00
..
irq treewide: Fix printk() message errors 2016-12-14 10:54:27 +01:00
sh2 sh: Don't set sh-sci pdata scscr TE and RE bits 2017-01-19 14:17:04 +01:00
sh2a sh: Don't set sh-sci pdata scscr TIE and RIE bits 2017-01-19 14:17:04 +01:00
sh3 sh: Don't set sh-sci pdata scscr TIE and RIE bits 2017-01-19 14:17:04 +01:00
sh4 sh: Don't set sh-sci pdata scscr TE and RE bits 2017-01-19 14:17:04 +01:00
sh4a sh: Don't set sh-sci pdata scscr TE and RE bits 2017-01-19 14:17:04 +01:00
sh5 sh: Don't set sh-sci pdata scscr TE and RE bits 2017-01-19 14:17:04 +01:00
shmobile Replace <asm/uaccess.h> with <linux/uaccess.h> globally 2016-12-24 11:46:01 -08:00
adc.c sh: Mass ctrl_in/outX to __raw_read/writeX conversion. 2010-01-26 12:58:40 +09:00
clock-cpg.c sh: Remove sci_ick clock alias 2015-12-17 11:19:05 +01:00
clock.c sh: use common clock framework with device tree boards 2016-08-05 03:29:45 +00:00
fpu.c sh: move fpu_counter into ARCH specific thread_struct 2013-11-13 12:09:13 +09:00
init.c Replace <asm/uaccess.h> with <linux/uaccess.h> globally 2016-12-24 11:46:01 -08:00
Makefile treewide: Fix printk() message errors 2016-12-14 10:54:27 +01:00
pfc.c sh: Remove unused sh_pfc_register_info() function 2013-01-25 09:24:30 +09:00
proc.c sh: add support for J-Core J2 processor 2016-08-05 03:29:31 +00:00