From mboxrd@z Thu Jan 1 00:00:00 1970 From: narmstrong@baylibre.com (Neil Armstrong) Date: Mon, 17 Apr 2017 17:27:56 +0200 Subject: [PATCH 3/6] serial: meson: remove unneeded variable assignment in meson_serial_port_write In-Reply-To: References: Message-ID: <369dac4f-7c48-3e64-fef5-72e6aa28b0f0@baylibre.com> To: linus-amlogic@lists.infradead.org List-Id: linus-amlogic.lists.infradead.org On 04/17/2017 03:58 PM, Ben Dooks wrote: > On 16/04/17 21:13, Heiner Kallweit wrote: >> AML_UART_TX_EN is set in meson_uart_startup and there's no place in >> the driver where it gets cleared. Therefore we don't have to set it >> here. > > I think this is a leftover of the patches I did when trying to fix > the UART driver when using debian/systemd and having strange console > problems. > > The only comment is it might be worth leaving this in as it isn't > a high cost to the driver and it is possible someone might accidentally > clear it later. > >> Signed-off-by: Heiner Kallweit >> --- >> drivers/tty/serial/meson_uart.c | 1 - >> 1 file changed, 1 deletion(-) >> >> diff --git a/drivers/tty/serial/meson_uart.c b/drivers/tty/serial/meson_uart.c >> index 22857f1e..714b29ad 100644 >> --- a/drivers/tty/serial/meson_uart.c >> +++ b/drivers/tty/serial/meson_uart.c >> @@ -497,7 +497,6 @@ static void meson_serial_port_write(struct uart_port *port, const char *s, >> } >> >> val = readl(port->membase + AML_UART_CONTROL); >> - val |= AML_UART_TX_EN; >> tmp = val & ~(AML_UART_TX_INT_EN | AML_UART_RX_INT_EN); >> writel(tmp, port->membase + AML_UART_CONTROL); >> >> > > I'm ok to remove it, having it in uart_startup is enough. Reviewed-by: Neil Armstrong