The first part can be found here[1]. The proposed changes do not change the functionality of printk, but were suggestions made by Petr Mladek. I already have more patches for a part 3 ,but I would like to see these ones merged first.
I did the testing with VMs, checking suspend and resume cycles, and it worked as expected. Thanks for reviewing! [1]: https://lore.kernel.org/lkml/[email protected]/ Signed-off-by: Marcos Paulo de Souza <[email protected]> --- Changes in v2: - Squashed patches 1 and 3 (CON_SUSPEND usage) and now is the last patch of the series, suggested by Petr Mladek - Moved commit 4 as the first one in the series, and it was changed to use console_is_usable helper, suggested by Petr Mladek - Moved commit 5 as the second commit in the series, and adjusted to use console_is_usable helper, suggested by Petr Mladek - The patch 6 was dropped, since it was implemented in a different patchset (https://lore.kernel.org/lkml/[email protected]/) - Patch 7 was moved as third patch, and is using the console_is_usable, suggested by Petr Mladek - Patch 2 was dropped from this patchset, and will be included in the next cleanup patchset. - Link to v1: https://lore.kernel.org/r/[email protected] --- Marcos Paulo de Souza (4): drivers: serial: kgdboc: Drop checks for CON_ENABLED and CON_BOOT arch: um: kmsg_dump: Use console_is_usable printk: Use console_is_usable on console_unblank printk: Make console_{suspend,resume} handle CON_SUSPENDED arch/um/kernel/kmsg_dump.c | 2 +- drivers/tty/serial/kgdboc.c | 1 - drivers/tty/tty_io.c | 2 +- kernel/printk/printk.c | 17 +++++++---------- 4 files changed, 9 insertions(+), 13 deletions(-) --- base-commit: 887c7f05d40eb51ba3f38fd71d5e6b4aff4bb8a2 change-id: 20250601-printk-cleanup-part2-38f8d5108099 Best regards, -- Marcos Paulo de Souza <[email protected]>
