]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
serial: qcom_geni_serial: Support kgdboc_earlycon
authorDouglas Anderson <dianders@chromium.org>
Thu, 7 May 2020 20:08:48 +0000 (13:08 -0700)
committerDaniel Thompson <daniel.thompson@linaro.org>
Tue, 2 Jun 2020 14:15:46 +0000 (15:15 +0100)
commit205b5bdda2090d4730dabf9c0d9646cb32f2551d
treef7543d43a640f7e1a97080b96e016760bd3ea88d
parenta4912303ac6fede434acf5c23a9108cdaf79844a
serial: qcom_geni_serial: Support kgdboc_earlycon

Implement the read() function in the early console driver.  With
recent kgdb patches 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: Douglas Anderson <dianders@chromium.org>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://lore.kernel.org/r/20200507130644.v4.10.If2deff9679a62c1ce1b8f2558a8635dc837adf8c@changeid
Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org>
drivers/tty/serial/qcom_geni_serial.c