提交 d8aca2f9 编写于 作者: B Bartosz Golaszewski 提交者: Greg Kroah-Hartman

tty: serial: qcom-geni-serial: stop operations in progress at shutdown

We don't stop transmissions in progress at shutdown. This is fine with
FIFO SE mode but with DMA (support for which we'll introduce later) it
causes trouble so fix it now.

Fixes: e8376633 ("tty: serial: qcom_geni_serial: No need to stop tx/rx on UART shutdown")
Signed-off-by: NBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Reviewed-by: NKonrad Dybcio <konrad.dybcio@linaro.org>
Link: https://lore.kernel.org/r/20221229155030.418800-2-brgl@bgdev.plSigned-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 bf8baa00
...@@ -880,6 +880,8 @@ static void get_tx_fifo_size(struct qcom_geni_serial_port *port) ...@@ -880,6 +880,8 @@ static void get_tx_fifo_size(struct qcom_geni_serial_port *port)
static void qcom_geni_serial_shutdown(struct uart_port *uport) static void qcom_geni_serial_shutdown(struct uart_port *uport)
{ {
disable_irq(uport->irq); disable_irq(uport->irq);
qcom_geni_serial_stop_tx(uport);
qcom_geni_serial_stop_rx(uport);
} }
static int qcom_geni_serial_port_setup(struct uart_port *uport) static int qcom_geni_serial_port_setup(struct uart_port *uport)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册