serial: sprd: Add polling IO support
authorLanqing Liu <liuhhome@gmail.com>
Thu, 19 Sep 2019 03:10:37 +0000 (11:10 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 Oct 2019 12:50:01 +0000 (14:50 +0200)
commit39f809192661be91fabc3ee77c2e15f9123c11cf
treea7f472940490996f1c68db09c4fa3db338a9f1f0
parent76c38d30fee7907289c1951e6dc6e10ead12f4e1
serial: sprd: Add polling IO support

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 <liuhhome@gmail.com>
Reviewed-by: Baolin Wang <baolin.wang@linaro.org>
Tested-by: Baolin Wang <baolin.wang@linaro.org>
Link: https://lore.kernel.org/r/f112a741c053ac5fb0637e2f058be81e17f78ccc.1568862391.git.liuhhome@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/sprd_serial.c