Revert "[Bugfix][T106][bug-view-149] UART sends single character, module does not receive it."
This reverts commit 866bd8fa787fbd04f08a1ab9593cc5c2309f1403.
Reason for revert: cpu load
Change-Id: Iaf511aa36d8e89c1863dd86106d94862904cf1f5
diff --git a/cap/zx297520v3/zxic_code/zxic_source/linux-5.10/drivers/tty/serial/zx29_uart.c b/cap/zx297520v3/zxic_code/zxic_source/linux-5.10/drivers/tty/serial/zx29_uart.c
index 85fd433..b29437a 100755
--- a/cap/zx297520v3/zxic_code/zxic_source/linux-5.10/drivers/tty/serial/zx29_uart.c
+++ b/cap/zx297520v3/zxic_code/zxic_source/linux-5.10/drivers/tty/serial/zx29_uart.c
@@ -2743,10 +2743,8 @@
}
dma_peripheral_id rx_id = uart_get_rx_dma_peripheral_id(zup);
pending = sgbuf->sg.length - zx29_dma_get_transfer_num(rx_id);
- /* yu.dong@20241017[bug-view-149]UART sends single character, module does not receive it start */
- if((pending == zup->pre_pending) || uart_dma_cycle[uart_id].from_resume
+ if(((pending == zup->pre_pending) && pending) || uart_dma_cycle[uart_id].from_resume
|| uart_dma_cycle[uart_id].from_unthrottle){
- /* yu.dong@20241017[bug-view-149]UART sends single character, module does not receive it end */
uart_dma_cycle[uart_id].from_resume = 0;
uart_dma_cycle[uart_id].from_unthrottle = false;
#if 0