[PATCH v2] serial: sprd: Add polling IO support

2019-09-18 Thread Lanqing Liu
In order to access the UART without the interrupts, the kernel uses the basic polling methods for IO with the device. With these methods implemented, it is now possible to enable kgdb during early boot over serial. Signed-off-by: Lanqing Liu --- Change from v1: - Add poll_init() support

[PATCH] serial: sprd: Add polling IO support

2019-09-18 Thread Lanqing Liu
In order to access the UART without the interrupts, the kernel uses the basic polling methods for IO with the device. With these methods implemented, it is now possible to enable kgdb during early boot over serial. Signed-off-by: Lanqing Liu --- drivers/tty/serial/sprd_serial.c | 22

[PATCH] tty: serial_core: Fix the incorrect configuration of baud rate and data length at the console serial port resume

2019-05-08 Thread Lanqing Liu
is, assigning the TTY->termios.c_cflag value to uport->cons->cflag before the userspace closes this console serial port. It will ensure that the correct cflag value can be gotten when the console serial port was resumed. Signed-off-by: Lanqing Liu --- drivers/tty/serial/serial_core.c | 4 1 file