[PATCH RFC v4 3/7] mfd: ls2kbmc: Redraw using exported functions
Miao Wang via B4 Relay <[email protected]> Fri, 31 Jul 2026 01:03:24 +0800
| Newsgroups | org.kernel.vger.linux-gpio,dev.linux.lists.mfd,org.kernel.feeds.b4-sent,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
From: Miao Wang <[email protected]> Use update_screen, i.e. redraw_screen() to trigger the redraw of the current vt. Fixes: d952bba3fbb5 ("mfd: ls2kbmc: Add Loongson-2K BMC reset function support") Signed-off-by: Miao Wang <[email protected]> --- drivers/mfd/ls2k-bmc-core.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/mfd/ls2k-bmc-core.c b/drivers/mfd/ls2k-bmc-core.c index b02e4955e9b04f517892a18b2ef103b5e481a238..a5465c42a77b8b7b81e3ad787d6036679c6ba6df 100644 --- a/drivers/mfd/ls2k-bmc-core.c +++ b/drivers/mfd/ls2k-bmc-core.c @@ -25,6 +25,7 @@ #include <linux/platform_device.h> #include <linux/stop_machine.h> #include <linux/vt_kern.h> +#include <linux/console.h> /* LS2K BMC resources */ #define LS2K_DISPLAY_RES_START (SZ_16M + SZ_2M) @@ -310,7 +311,9 @@ static void ls2k_bmc_events_fn(struct work_struct *work) if (IS_ENABLED(CONFIG_VT)) { /* Re-push the display due to previous PCI-E loss. */ - set_console(vt_move_to_console(MAX_NR_CONSOLES - 1, 1)); + console_lock(); + update_screen(vc_cons[fg_console].d); + console_unlock(); } } -- 2.49.0