summaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2023-03-14 13:31:02 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-03-30 12:49:22 +0200
commita6766e457d4cde7ffe3ea0c91afe26a0be8dd21d (patch)
tree59cabfcb2e17ce7dc4ab50b48be22e8971154093 /mm
parent608901a77c945ac15dea23f6098c9882ef19d9f0 (diff)
downloadlinux-stable-a6766e457d4cde7ffe3ea0c91afe26a0be8dd21d.tar.gz
linux-stable-a6766e457d4cde7ffe3ea0c91afe26a0be8dd21d.tar.bz2
linux-stable-a6766e457d4cde7ffe3ea0c91afe26a0be8dd21d.zip
efi: sysfb_efi: Fix DMI quirks not working for simpledrm
commit 3615c78673c332b69aaacefbcde5937c5c706686 upstream. Commit 8633ef82f101 ("drivers/firmware: consolidate EFI framebuffer setup for all arches") moved the sysfb_apply_efi_quirks() call in sysfb_init() from before the [sysfb_]parse_mode() call to after it. But sysfb_apply_efi_quirks() modifies the global screen_info struct which [sysfb_]parse_mode() parses, so doing it later is too late. This has broken all DMI based quirks for correcting wrong firmware efifb settings when simpledrm is used. To fix this move the sysfb_apply_efi_quirks() call back to its old place and split the new setup of the efifb_fwnode (which requires the platform_device) into its own function and call that at the place of the moved sysfb_apply_efi_quirks(pd) calls. Fixes: 8633ef82f101 ("drivers/firmware: consolidate EFI framebuffer setup for all arches") Cc: stable@vger.kernel.org Cc: Javier Martinez Canillas <javierm@redhat.com> Cc: Thomas Zimmermann <tzimmermann@suse.de> Signed-off-by: Hans de Goede <hdegoede@redhat.com> Reviewed-by: Javier Martinez Canillas <javierm@redhat.com> Signed-off-by: Ard Biesheuvel <ardb@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions