From: Mario Limonciello <mario.limoncie...@amd.com> The past few days there have been various discussions about what to do with the boot_display sysfs file so that it doesn't need to be made so late in startup.
Bjorn had an aha moment pointing out that there is no reason to "find" the PCI device using screen_info_pci_dev() because the device is already known. Instead we just need to check if it has the screen resources. This series adjusts the boot_display behavior to use that and then convert boot_display into a static sysfs file that can be loaded when the device is created without needing to change visibility. This is an ALTERNATIVE to moving it to DRM, which is what v4 does [1]. Either solution can be picked up depending upon the collective decision whether to keep boot_display file in PCI core or DRM core. Link: https://lore.kernel.org/linux-pci/20250721185726.1264909-1-supe...@kernel.org/T/#me4356b3a172cbdafe83393bedce10f17a86e0da7 Mario Limonciello (2): fbcon: Stop using screen_info_pci_dev() PCI: Adjust visibility of boot_display attribute instead of creation arch/x86/video/video-common.c | 12 ++++++-- drivers/pci/pci-sysfs.c | 58 ++++++++++++----------------------- 2 files changed, 30 insertions(+), 40 deletions(-) -- 2.48.1