From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io0-f196.google.com ([209.85.223.196]:35678 "EHLO mail-io0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1761283AbdAFKL6 (ORCPT ); Fri, 6 Jan 2017 05:11:58 -0500 MIME-Version: 1.0 In-Reply-To: <20170103230639.19660-5-laurent.pinchart+renesas@ideasonboard.com> References: <20170103230639.19660-1-laurent.pinchart+renesas@ideasonboard.com> <20170103230639.19660-5-laurent.pinchart+renesas@ideasonboard.com> From: Geert Uytterhoeven Date: Fri, 6 Jan 2017 11:11:56 +0100 Message-ID: Subject: Re: [PATCH 04/19] sh: Don't set sh-sci pdata scscr TIE and RIE bits To: Laurent Pinchart Cc: Linux-Renesas , Linux-sh list , "linux-serial@vger.kernel.org" , Geert Uytterhoeven Content-Type: text/plain; charset=UTF-8 Sender: linux-renesas-soc-owner@vger.kernel.org List-ID: On Wed, Jan 4, 2017 at 12:06 AM, Laurent Pinchart 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 Reviewed-by: Geert Uytterhoeven Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org 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