Files
twx-linux/kernel
Douglas Anderson fbe6811852 kgdb: Make "kgdbcon" work properly with "kgdb_earlycon"
[ Upstream commit b18b099e04 ]

On my system the kernel processes the "kgdb_earlycon" parameter before
the "kgdbcon" parameter.  When we setup "kgdb_earlycon" we'll end up
in kgdb_register_callbacks() and "kgdb_use_con" won't have been set
yet so we'll never get around to starting "kgdbcon".  Let's remedy
this by detecting that the IO module was already registered when
setting "kgdb_use_con" and registering the console then.

As part of this, to avoid pre-declaring things, move the handling of
the "kgdbcon" further down in the file.

Signed-off-by: Douglas Anderson <dianders@chromium.org>
Link: https://lore.kernel.org/r/20200630151422.1.I4aa062751ff5e281f5116655c976dff545c09a46@changeid
Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-11-05 11:06:55 +01:00
..
2020-09-23 10:46:32 +02:00
…
…
2019-12-01 09:14:03 +01:00
…
2018-08-03 07:50:38 +02:00
…
…
…
…
…
2018-08-03 07:50:22 +02:00
…
…
2020-04-02 16:34:20 +02:00
…
…
…
…
…
…
2020-04-24 08:00:38 +02:00
…
…
…
2020-01-09 10:17:53 +01:00
…
2018-05-09 09:51:50 +02:00
…
…
…
…
…
…