]> git.baikalelectronics.ru Git - kernel.git/commit
serial: 8250_early: Support kgdboc_earlycon
authorDouglas Anderson <dianders@chromium.org>
Thu, 7 May 2020 20:08:49 +0000 (13:08 -0700)
committerDaniel Thompson <daniel.thompson@linaro.org>
Tue, 2 Jun 2020 14:15:46 +0000 (15:15 +0100)
commitda2c15ea41b3316fce33c135aacecfc715e718ec
tree72dffcbaf4aa297998ef8be531ce6ecbdc921071
parentdf084f8c7d1367fe2d0112a312301c770c6fca00
serial: 8250_early: 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>
Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org>
Link: https://lore.kernel.org/r/20200507130644.v4.11.I8f668556c244776523320a95b09373a86eda11b7@changeid
Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org>
drivers/tty/serial/8250/8250_early.c