]> git.itanic.dy.fi Git - linux-stable/commit
ACPI: video: Allow GPU drivers to report no panels
authorMario Limonciello <mario.limonciello@amd.com>
Thu, 8 Dec 2022 16:42:05 +0000 (10:42 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Jan 2023 11:02:39 +0000 (12:02 +0100)
commit0ba8892d86ad69775e4ee3de53b021ae33aca8c0
tree6d354d0156203b9599a127ac8bde7c73dc998af9
parent183c2aaef40a91acbaae45c3824d6cde7bb62b10
ACPI: video: Allow GPU drivers to report no panels

[ Upstream commit 00a734104af7d878f1252d49eff9298785c6cbdc ]

The current logic for the ACPI backlight detection will create
a backlight device if no native or vendor drivers have created
8 seconds after the system has booted if the ACPI tables
included backlight control methods.

If the GPU drivers have loaded, they may be able to report whether
any LCD panels were found.  Allow using this information to factor
in whether to enable the fallback logic for making an acpi_video0
backlight device.

Suggested-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/acpi/acpi_video.c
include/acpi/video.h