]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
m68k: virt: Switch to qemu-virt-ctrl driver
authorKuan-Wei Chiu <visitorckw@gmail.com>
Sun, 12 Apr 2026 21:19:52 +0000 (21:19 +0000)
committerGeert Uytterhoeven <geert@linux-m68k.org>
Mon, 13 Apr 2026 10:16:10 +0000 (12:16 +0200)
commit56f295853f38d3202c20fd0d98939e7a4c56c3fb
tree159a307cbabf5a08496e02e5b70196548d9cbb7b
parentad9d2cd065d15c2ad992cb5db51a5bdc847e2909
m68k: virt: Switch to qemu-virt-ctrl driver

Register the "qemu-virt-ctrl" platform device during board
initialization to utilize the new generic power/reset driver.

Consequently, remove the legacy reset and power-off implementations
specific to the virt machine. The platform's mach_reset callback is
updated to call do_kernel_restart(), bridging the legacy m68k reboot
path to the generic kernel restart handler framework for this machine.

To prevent any regressions in reboot or power-off functionality when
the driver is not built-in, explicitly select POWER_RESET and
POWER_RESET_QEMU_VIRT_CTRL for the VIRT machine in Kconfig.machine.

Signed-off-by: Kuan-Wei Chiu <visitorckw@gmail.com>
Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
Link: https://patch.msgid.link/20260412211952.3564033-3-visitorckw@gmail.com
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
arch/m68k/Kconfig.machine
arch/m68k/virt/config.c
arch/m68k/virt/platform.c