serial: amba-pl011: Support kgdboc_earlycon
authorSumit Garg <sumit.garg@linaro.org>
Thu, 7 May 2020 20:08:50 +0000 (13:08 -0700)
committerDaniel Thompson <daniel.thompson@linaro.org>
Tue, 2 Jun 2020 14:15:46 +0000 (15:15 +0100)
commit195867ffea13b755dc727b47eaa5beb0ffa6e0ce
treeb4fdc6b7def8f20e9e08239c34f2408dbbc83554
parentc5e7467d92b849450bd03d9215afb09665d76af6
serial: amba-pl011: Support kgdboc_earlycon

Implement the read() function in the early console driver. With
recently added kgdboc_earlycon feature, this allows you to use kgdb
to debug fairly early into the system boot.

We only bother implementing this if polling is enabled since kgdb can't
be enabled without that.

Signed-off-by: Sumit Garg <sumit.garg@linaro.org>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org>
Signed-off-by: Douglas Anderson <dianders@chromium.org>
Link: https://lore.kernel.org/r/20200507130644.v4.12.I8ee0811f0e0816dd8bfe7f2f5540b3dba074fae8@changeid
Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org>
drivers/tty/serial/amba-pl011.c