]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
serial: qcom-geni: fix polled console initialisation
authorJohan Hovold <johan+linaro@kernel.org>
Wed, 9 Oct 2024 14:51:02 +0000 (16:51 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 Oct 2024 06:39:23 +0000 (08:39 +0200)
commit4bef7c6f299910f19876ad8e7f5897514855f1d2
tree62246bb429f5dc44c2c7c7cd2a3039bc1d6e0a7c
parent40d7903386df4d18f04d90510ba90eedee260085
serial: qcom-geni: fix polled console initialisation

The polled console (KGDB/KDB) implementation must not call port setup
unconditionally as the port may already be in use by the console or a
getty.

Only make sure that the receiver is enabled, but do not enable any
device interrupts.

Fixes: d8851a96ba25 ("tty: serial: qcom-geni-serial: Add a poll_init() function")
Cc: stable@vger.kernel.org # 6.4
Cc: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Link: https://lore.kernel.org/r/20241009145110.16847-2-johan+linaro@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/qcom_geni_serial.c