[Bugfix][T106][bug-view-149] UART sends single character, module does not receive it.
Only Configure: Yes
Affected branch: master
Affected module: uart
Is it affected on both ZXIC and MTK: only ZXIC
Self-test: yes
Doc Update: No
Change-Id: I65c209315932944219543287b0c42bd5a4459f74
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 b29437a..85fd433 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,8 +2743,10 @@
}
dma_peripheral_id rx_id = uart_get_rx_dma_peripheral_id(zup);
pending = sgbuf->sg.length - zx29_dma_get_transfer_num(rx_id);
- if(((pending == zup->pre_pending) && pending) || uart_dma_cycle[uart_id].from_resume
+ /* 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
|| 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