linux-yocto/drivers/firmware
Thomas Zimmermann 337bf0bbb0 sysfb: Fix screen_info type check for VGA
commit f670b50ef5 upstream.

Use the helper screen_info_video_type() to get the framebuffer
type from struct screen_info. Handle supported values in sorted
switch statement.

Reading orig_video_isVGA is unreliable. On most systems it is a
VIDEO_TYPE_ constant. On some systems with VGA it is simply set
to 1 to signal the presence of a VGA output. See vga_probe() for
an example. Retrieving the screen_info type with the helper
screen_info_video_type() detects these cases and returns the
appropriate VIDEO_TYPE_ constant. For VGA, sysfb creates a device
named "vga-framebuffer".

The sysfb code has been taken from vga16fb, where it likely didn't
work correctly either. With this bugfix applied, vga16fb loads for
compatible vga-framebuffer devices.

Fixes: 0db5b61e0d ("fbdev/vga16fb: Create EGA/VGA devices in sysfb code")
Cc: Thomas Zimmermann <tzimmermann@suse.de>
Cc: Javier Martinez Canillas <javierm@redhat.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: Tzung-Bi Shih <tzungbi@kernel.org>
Cc: Helge Deller <deller@gmx.de>
Cc: "Uwe Kleine-König" <u.kleine-koenig@baylibre.com>
Cc: Zsolt Kajtar <soci@c64.rulez.org>
Cc: <stable@vger.kernel.org> # v6.1+
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Tzung-Bi Shih <tzungbi@kernel.org>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Link: https://lore.kernel.org/r/20250603154838.401882-1-tzimmermann@suse.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-06-27 11:11:23 +01:00
..
arm_ffa firmware: arm_ffa: Handle the presence of host partition in the partition info 2025-05-29 11:02:47 +02:00
arm_scmi firmware: arm_scmi: Ensure that the message-id supports fastchannel 2025-06-27 11:11:22 +01:00
broadcom
cirrus firmware: cs_dsp: Ensure cs_dsp_load[_coeff]() returns 0 on success 2025-04-10 14:39:32 +02:00
efi efi/libstub: Describe missing 'out' parameter in efi_load_initrd 2025-06-19 15:31:48 +02:00
google
imx
meson
microchip
psci firmware: psci: Fix refcount leak in psci_dt_init 2025-06-19 15:31:37 +02:00
qcom firmware: qcom: uefisecapp: fix efivars registration race 2025-03-28 22:03:30 +01:00
smccc
tegra
xilinx firmware: xilinx: Dont send linux address to get fpga config get status 2025-05-29 11:02:47 +02:00
arm_scpi.c
arm_sdei.c firmware: SDEI: Allow sdei initialization without ACPI_APEI_GHES 2025-06-19 15:31:38 +02:00
dmi_scan.c
dmi-id.c
dmi-sysfs.c
edd.c
iscsi_ibft_find.c
iscsi_ibft.c
Kconfig firmware: SDEI: Allow sdei initialization without ACPI_APEI_GHES 2025-06-19 15:31:38 +02:00
Makefile
memmap.c
mtk-adsp-ipc.c
qemu_fw_cfg.c
raspberrypi.c
stratix10-rsu.c
stratix10-svc.c firmware: stratix10-svc: Add of_platform_default_populate() 2025-05-02 07:59:10 +02:00
sysfb_simplefb.c
sysfb.c sysfb: Fix screen_info type check for VGA 2025-06-27 11:11:23 +01:00
ti_sci.c
ti_sci.h
trusted_foundations.c
turris-mox-rwtm.c