mirror_ubuntu-kernels/drivers/platform/x86
Hans de Goede 0172df18dc platform/x86: acer-wmi: Move backlight DMI quirks to acpi/video_detect.c
Move the backlight DMI quirks to acpi/video_detect.c, so that
the driver no longer needs to call acpi_video_set_dmi_backlight_type().

acpi_video_set_dmi_backlight_type() is troublesome because it may end up
getting called after other backlight drivers have already called
acpi_video_get_backlight_type() resulting in the other drivers
already being registered even though they should not.

Note that even though the DMI quirk table name was video_vendor_dmi_table,
5/6 quirks were actually quirks to use the GPU native backlight.

These 5 quirks also had a callback in their dmi_system_id entry which
disabled the acer-wmi vendor driver; and any DMI match resulted in:

	acpi_video_set_dmi_backlight_type(acpi_backlight_vendor);

which disabled the acpi_video driver, so only the native driver was left.
The new entries for these 5/6 devices correctly marks these as needing
the native backlight driver.

Also note that other changes in this series change the native backlight
drivers to no longer unconditionally register their backlight. Instead
these drivers now do this check:

	if (acpi_video_get_backlight_type(false) != acpi_backlight_native)
		return 0; /* bail */

which without this patch would have broken these 5/6 "special" quirks.

Since I had to look at all the commits adding the quirks anyways, to make
sure that I understood the code correctly, I've also added links to
the various original bugzillas for these quirks to the new entries.

Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2022-09-03 12:17:27 +02:00
..
amd platform/x86/amd/pmc: Add new platform support 2022-07-08 16:44:21 +02:00
dell platform/x86/dell: Kconfig: Remove unnecessary "depends on X86_PLATFORM_DEVICES" 2022-06-27 09:37:49 +02:00
intel platform/x86/intel/vsec: Fix wrong type for local status variables 2022-08-01 16:56:34 +02:00
acer-wireless.c
acer-wmi.c platform/x86: acer-wmi: Move backlight DMI quirks to acpi/video_detect.c 2022-09-03 12:17:27 +02:00
acerhdf.c platform/x86: acerhdf: Cleanup str_starts_with() 2022-04-04 15:50:23 +02:00
adv_swbutton.c platform/x86: add support for Advantech software defined button 2021-04-07 19:46:56 +02:00
amilo-rfkill.c
apple-gmux.c platform/x86: apple-gmux: Stop calling acpi/video.h functions 2022-09-03 12:17:27 +02:00
asus-laptop.c platform/x86: asus-laptop: fix kobj_to_dev.cocci warnings 2021-03-23 21:06:10 +01:00
asus-nb-wmi.c platform/x86: asus-wmi: Add key mappings 2022-07-10 17:41:06 +02:00
asus-tf103c-dock.c platform/x86: asus-tf103c-dock: Make 2 global structs static 2022-01-24 10:41:47 +01:00
asus-wireless.c
asus-wmi.c platform/x86: asus-wmi: Add mic-mute LED classdev support 2022-07-14 22:02:57 +02:00
asus-wmi.h
barco-p50-gpio.c platform/x86: barco-p50-gpio: Add check for platform_driver_register 2022-06-10 21:59:08 +02:00
classmate-laptop.c platform/x86: Typo fix in the file classmate-laptop.c 2021-03-23 21:05:58 +01:00
compal-laptop.c platform/x86: compal-laptop: Use backlight helper 2022-06-22 11:53:56 +02:00
dual_accel_detect.h platform/x86: dual_accel_detect: Use the new i2c_acpi_client_count() helper 2021-08-12 17:26:36 +02:00
eeepc-laptop.c
eeepc-wmi.c
firmware_attributes_class.c platform/x86: dell-wmi-sysman: fw_attr_inuse can be static 2021-06-16 17:47:52 +02:00
firmware_attributes_class.h platform/x86: firmware_attributes_class: Create helper file for handling firmware-attributes class registration events 2021-06-16 17:47:51 +02:00
fujitsu-laptop.c
fujitsu-tablet.c
gigabyte-wmi.c platform/x86: gigabyte-wmi: add support for B660I AORUS PRO DDR4 2022-07-10 17:41:05 +02:00
gpd-pocket-fan.c platform/x86: gpd pocket fan: Clean-up by using managed work init 2021-03-23 15:22:40 +01:00
hdaps.c platform/x86: hdaps: Constify static attribute_group struct 2021-06-16 17:47:54 +02:00
hp_accel.c platform/x86: hp_accel: Use SIMPLE_DEV_PM_OPS() for PM ops 2021-12-07 12:21:01 +01:00
hp-wmi.c platform/x86: hp-wmi: Ignore Sanitization Mode event 2022-06-28 22:20:07 +02:00
huawei-wmi.c platform/x86: huawei-wmi: check the return value of device_create_file() 2022-03-08 16:33:15 +01:00
ibm_rtl.c
ideapad-laptop.c platform/x86: ideapad-laptop: Add Ideapad 5 15ITL05 to ideapad_dytc_v4_allow_table[] 2022-06-27 16:20:27 +02:00
intel_ips.c platform/x86: intel_ips: fix set but unused warning in read_mgtv 2021-06-16 17:47:55 +02:00
intel_ips.h
intel_scu_ipc.c platform/x86: intel_scu_ipc: Update timeout value in comment 2021-10-11 15:34:51 +02:00
intel_scu_ipcutil.c
intel_scu_pcidrv.c
intel_scu_pltdrv.c
intel_scu_wdt.c
Kconfig platform/x86: nvidia-wmi-ec-backlight: Use acpi_video_get_backlight_type() 2022-09-03 12:17:26 +02:00
lenovo-yogabook-wmi.c platform/x86: lenovo-yogabook-wmi: Add support for hall sensor on the back 2021-12-07 12:21:01 +01:00
lg-laptop.c lg-laptop: Move setting of battery charge limit to common location 2022-02-23 11:36:24 +01:00
Makefile platform/x86: p2sb: Move out of X86_PLATFORM_DEVICES dependency 2022-08-01 16:26:38 +02:00
meraki-mx100.c platform/x86: add meraki-mx100 platform driver 2021-08-12 09:26:28 +02:00
mlx-platform.c platform/x86: mlx-platform: Add COME board revision register 2022-07-14 22:34:40 +02:00
msi-laptop.c
msi-wmi.c
mxm-wmi.c
nvidia-wmi-ec-backlight.c platform/x86: nvidia-wmi-ec-backlight: Use acpi_video_get_backlight_type() 2022-09-03 12:17:26 +02:00
p2sb.c platform/x86: p2sb: Move out of X86_PLATFORM_DEVICES dependency 2022-08-01 16:26:38 +02:00
panasonic-laptop.c platform/x86: panasonic-laptop: filter out duplicate volume up/down/mute keypresses 2022-06-28 21:54:50 +02:00
pcengines-apuv2.c platform/x86: pcengines-apuv2: Add missing terminating entries to gpio-lookup tables 2021-08-06 14:04:43 +02:00
peaq-wmi.c
pmc_atom.c platform/x86: pmc_atom: Match all Lex BayTrail boards with critclk_systems DMI table 2022-07-28 20:32:00 +02:00
samsung-laptop.c platform/x86: samsung-laptop: use kobj_to_dev() 2022-05-12 15:37:53 +02:00
samsung-q10.c
serial-multi-instantiate.c platform/x86: serial-multi-instantiate: Sort ACPI IDs by HID 2022-07-10 17:59:57 +02:00
simatic-ipc.c leds: simatic-ipc-leds-gpio: Add GPIO version of Siemens driver 2022-07-14 10:50:43 +01:00
sony-laptop.c platform/x86: sony-laptop: Remove useless comparisons in sony_pic_read_possible_resource() 2022-07-28 19:41:29 +02:00
system76_acpi.c platform/x86: system76_acpi: Use dev_get_drvdata 2022-06-12 14:41:22 +02:00
tc1100-wmi.c platform/x86: tc1100-wmi: Constify static attribute_group struct 2021-06-16 17:47:54 +02:00
think-lmi.c platform/x86: think-lmi: certificate support clean ups 2022-04-04 15:20:53 +02:00
think-lmi.h platform/x86: think-lmi: certificate support clean ups 2022-04-04 15:20:53 +02:00
thinkpad_acpi.c platform-drivers-x86 for v6.0-1 2022-08-04 18:19:14 -07:00
topstar-laptop.c
toshiba_acpi.c platform/x86: toshiba_acpi: Stop using acpi_video_set_dmi_backlight_type() 2022-09-03 12:17:27 +02:00
toshiba_bluetooth.c
toshiba_haps.c platform/x86: toshiba_haps: Fix missing newline in pr_debug call in toshiba_haps_notify 2021-06-16 17:47:49 +02:00
toshiba-wmi.c
touchscreen_dmi.c platform/x86: touchscreen_dmi: Add info for the RWC NANOTE P8 AY07J 2-in-1 2022-01-24 10:41:45 +01:00
uv_sysfs.c x86/platform/uv: use default_groups in kobj_type 2021-12-30 19:32:23 +01:00
winmate-fm07-keys.c platform/x86: winmate-fm07-keys: Winmate FM07/FM07P buttons 2022-04-13 13:49:48 +02:00
wireless-hotkey.c platform/x86: wireless-hotkey: remove hardcoded "hp" from the error message 2021-07-14 22:32:26 +02:00
wmi-bmof.c platform/x86: wmi: Make remove callback return void 2021-03-08 11:33:39 +01:00
wmi.c platform/x86: wmi: replace usage of found with dedicated list iterator variable 2022-04-13 13:49:48 +02:00
x86-android-tablets.c platform/x86: x86-android-tablets: Fix Lenovo Yoga Tablet 2 830/1050 poweroff again 2022-07-10 17:41:05 +02:00
xiaomi-wmi.c
xo1-rfkill.c
xo15-ebook.c platform: x86: ACPI: Get rid of ACPICA message printing 2021-03-08 11:33:39 +01:00