[Feature][ZXW-266]UART1 cannot be used normally after waking up after hibernation
Only Configure :No
Affected branch: master
Affected module: UART
Is it affected on both ZXIC and MTK:only ZXIC
Self-test: Yes
Doc Update: No
Change-Id: I45fdbd1cc3481fba5994deb4da6e6b236a63e45f
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 bfa5cc4..e228e11 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
@@ -3788,12 +3788,10 @@
if (!zup)
return -EINVAL;
- if(zup->port.line != 0)
- return 0;
-
- if(zup->irq_state == 0 || zup->imr== 0)
+ //wz.wang@20240408 modify for ZXW-266 start
+ if(zup->port.line == UART1)
return 0;
-
+ //wz.wang@20240408 modify for ZXW-266 end
printk("zx29_uart_resume\n");
//pcu_int_clear(PCU_UART0_RXD_INT);
//if(zup->rxd_int_depth){
@@ -3806,6 +3804,9 @@
pinctrl_pm_select_default_state(dev);
#endif
//xf.li@20240327 modify for T106BUG-567 end
+//wz.wang@20240408 modify for ZXW-266 start
+ zup->enter_suspend = 0;
+//wz.wang@20240408 modify for ZXW-266 end
return 0;
}
#endif