Thread (39 messages) 39 messages, 5 authors, 2022-01-05

Re: [PATCH V3 5/6] tty: serial: meson: meson_uart_shutdown omit clear AML_UART_TX_EN bit

From: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Date: 2021-12-30 22:44:52
Also in: linux-amlogic, linux-serial, lkml

On Thu, Dec 30, 2021 at 11:22 AM Yu Tu [off-list ref] wrote:
[...]
        val = readl(port->membase + AML_UART_CONTROL);
-       val &= ~AML_UART_RX_EN;
+       val &= ~(AML_UART_RX_EN | AML_UART_TX_EN);
        val &= ~(AML_UART_RX_INT_EN | AML_UART_TX_INT_EN);
        writel(val, port->membase + AML_UART_CONTROL);
This looks fine to me but I think it would be good to Cc the author of
commit 855ddcab352c15 ("ARM: meson: serial: only disable tx irq on
stop")
The meson_uart driver which Carlo added eight years ago did clear
AML_UART_TX_EN here, but it was changed with the commit I mentioned
above.


Best regards,
Martin

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help