On Wed, Jan 4, 2017 at 12:06 AM, Laurent Pinchart <laurent.pinchart+renesas@xxxxxxxxxxxxxxxx> wrote: > 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@xxxxxxxxxxxxxxxx> Reviewed-by: Geert Uytterhoeven <geert+renesas@xxxxxxxxx> Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds