]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
firmware: google: framebuffer: Tie platform device to PCI hardware
authorThomas Zimmermann <tzimmermann@suse.de>
Tue, 17 Feb 2026 15:56:14 +0000 (16:56 +0100)
committerThomas Zimmermann <tzimmermann@suse.de>
Fri, 20 Feb 2026 13:38:19 +0000 (14:38 +0100)
commit0d847e16ca6c23a99a0228db6c2589d4b1898321
tree9e5ff8b2b1913806ec88700d06bbab5d79090b4d
parent94918485d266ea2b578f36955c8cc88a33706e28
firmware: google: framebuffer: Tie platform device to PCI hardware

Use the PCI device as parent of the system-framebuffer device instead
of the coreboot device. Prevents SIGBUS or SIGSEG after hot-unplug of
the PCI device while the framebuffer is active.

The simple-framebuffer device depends on the PCI hardware, so this
device needs to be its parent. The current coreboot parent is no
longer needed after the system-framebuffer device has been created.

On systems without PCI or if no PCI parent device could be found,
the platform device hangs on the platform bus directly.

The fix here is similar to code in sysfb, which contained that same
bug.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Acked-by: Tzung-Bi Shih <tzungbi@kernel.org>
Acked-by: Julius Werner <jwerner@chromium.org>
Link: https://patch.msgid.link/20260217155836.96267-5-tzimmermann@suse.de
drivers/firmware/google/framebuffer-coreboot.c