Files
linux-stable-mirror/include/linux
Hans de Goede 408dcd7c38 efi: sysfb_efi: Fix DMI quirks not working for simpledrm
commit 3615c78673 upstream.

Commit 8633ef82f1 ("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: 8633ef82f1 ("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>
2023-03-30 12:47:55 +02:00
..
2023-02-01 08:27:20 +01:00
2022-08-17 14:23:11 +02:00
2022-10-26 12:35:12 +02:00
2022-08-31 17:16:34 +02:00
2021-12-14 10:57:11 +01:00
2022-07-07 17:53:26 +02:00
2023-03-30 12:47:50 +02:00
2022-10-26 12:35:26 +02:00
2022-04-13 20:59:03 +02:00
2022-08-17 14:24:08 +02:00
2022-07-12 16:35:08 +02:00
2022-06-09 10:23:32 +02:00
2023-03-17 08:49:02 +01:00
2022-11-03 23:59:15 +09:00
2022-07-02 16:41:17 +02:00
2022-07-12 16:35:08 +02:00
2022-07-29 17:25:32 +02:00
2022-09-15 11:30:05 +02:00