Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 848b312e authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm_serial_hs: update the DMA inflight indicator optimally"

parents b4129f7f 05d5848a
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -1388,12 +1388,11 @@ static void msm_hs_submit_tx_locked(struct uart_port *uport)
	int ret;

	if (uart_circ_empty(tx_buf) || uport->state->port.tty->stopped) {
		tx->dma_in_flight = false;
		msm_hs_stop_tx_locked(uport);
		return;
	}

	tx->dma_in_flight = true;

	tx_count = uart_circ_chars_pending(tx_buf);

	if (UARTDM_TX_BUF_SIZE < tx_count)
@@ -1872,7 +1871,6 @@ static void msm_serial_hs_tx_work(struct kthread_work *work)
	else
		MSM_HS_DBG("%s:circ buffer is empty\n", __func__);

	tx->dma_in_flight = false;
	wake_up(&msm_uport->tx.wait);

	uport->icount.tx += tx->tx_count;