mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 02:21:52 +09:00
UPSTREAM: 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:e83766334f("tty: serial: qcom_geni_serial: No need to stop tx/rx on UART shutdown") Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org> Link: https://lore.kernel.org/r/20221229155030.418800-2-brgl@bgdev.pl Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Bug: 370629635 Change-Id: I8ca4171bf25b530e7fc4bb91fad93358d753b746 (cherry picked from commitd8aca2f968) Signed-off-by: Praveen Talari <quic_ptalari@quicinc.com>
This commit is contained in:
committed by
John Stultz
parent
481220c5b9
commit
d75a50763e
@@ -892,6 +892,8 @@ static int setup_fifos(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)
|
||||||
|
|||||||
Reference in New Issue
Block a user