android_kernel_xiaomi_sm7250/drivers/acpi
Thomas Renninger c3d6de698c ACPI video: if no ACPI backlight support, use vendor drivers
If an ACPI graphics device supports backlight brightness functions (cmp. with
latest ACPI spec Appendix B), let the ACPI video driver control backlight and
switch backlight control off in vendor specific ACPI drivers (asus_acpi,
thinkpad_acpi, eeepc, fujitsu_laptop, msi_laptop, sony_laptop, acer-wmi).

Currently it is possible to load above drivers and let both poke on the
brightness HW registers, the video and vendor specific ACPI drivers -> bad.

This patch provides the basic support to check for BIOS capabilities before
driver loading time. Driver specific modifications are in separate follow up
patches.

"acpi_backlight=vendor"
	Prever vendor driver over ACPI driver for backlight.
"acpi_backlight=video" (default)
	Prever ACPI driver over vendor driver for backlight.

Signed-off-by: Thomas Renninger <trenn@suse.de>
Acked-by: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
2008-11-07 23:57:55 -05:00
..
dispatcher ACPICA: Fix for implicit return compatibility 2008-10-22 23:14:49 -04:00
events ACPI: Enhance /sys/firmware/interrupts to allow enable/disable/clear from user-space 2008-07-16 23:27:04 +02:00
executer ACPICA: Add support for zero-length buffer-to-string conversions 2008-10-22 23:14:50 -04:00
hardware ACPI suspend: Always use the 32-bit waking vector 2008-10-16 20:45:35 -04:00
namespace ACPICA: New: Validation for predefined ACPI methods/objects 2008-10-22 23:14:49 -04:00
parser ACPICA: Fixed a couple memory leaks associated with "implicit return" 2008-10-22 23:14:48 -04:00
resources ACPICA: Cleanup for internal Reference Object 2008-10-22 23:14:45 -04:00
sleep ACPI suspend: build fix for ACPI_SLEEP=n && XEN_SAVE_RESTORE=y. 2008-10-25 04:07:13 -04:00
tables Merge branch 'fadt-test' into test 2008-10-22 23:28:03 -04:00
utilities ACPICA: Optimize buffer allocation procedure 2008-10-22 23:14:48 -04:00
ac.c Merge branch 'ull' into test 2008-10-22 23:33:29 -04:00
acpi_memhotplug.c Merge branch 'ull' into test 2008-10-22 23:33:29 -04:00
asus_acpi.c Merge branch 'ull' into test 2008-10-22 23:33:29 -04:00
battery.c Merge branch 'linus' into test 2008-10-23 00:11:07 -04:00
blacklist.c ACPI: DMI: quirk for FSC ESPRIMO Mobile V5505 2008-02-14 02:43:39 -05:00
bus.c Merge branch 'ull' into test 2008-10-22 23:33:29 -04:00
button.c ACPI: Always report a sync event after a lid state change 2008-10-25 04:07:12 -04:00
cm_sbs.c ACPI: replace ACPI_DEBUG_PRINT((ACPI_DB_ERROR, ...) with printk 2008-10-22 23:14:41 -04:00
container.c Merge branch 'ull' into test 2008-10-22 23:33:29 -04:00
debug.c ACPICA: Remove obsolete debug levels (WARN and ERROR) 2008-10-22 23:14:42 -04:00
dock.c Merge branch 'ull' into test 2008-10-22 23:33:29 -04:00
ec.c Merge branch 'ull' into test 2008-10-22 23:33:29 -04:00
event.c acpi: use non-racy method for proc entries creation 2008-04-29 08:06:22 -07:00
fan.c Merge branch 'misc' into test 2008-10-22 23:28:38 -04:00
glue.c ACPI: video: Ignore devices that aren't present in hardware 2008-11-07 23:49:23 -05:00
Kconfig dock: make dock driver not a module 2008-10-23 04:00:47 -04:00
Makefile ACPI video: if no ACPI backlight support, use vendor drivers 2008-11-07 23:57:55 -05:00
numa.c ACPI: Change acpi_evaluate_integer to support 64-bit on 32-bit kernels 2008-10-11 02:47:33 -04:00
osl.c Merge branch 'ull' into test 2008-10-22 23:33:29 -04:00
pci_bind.c ACPI: misc cleanups 2008-02-07 03:33:23 -05:00
pci_irq.c ACPI: use dev_printk when possible 2008-07-16 23:27:07 +02:00
pci_link.c Merge branch 'misc' into test 2008-10-22 23:28:38 -04:00
pci_root.c Merge branch 'ull' into test 2008-10-22 23:33:29 -04:00
pci_slot.c Merge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6 2008-10-23 10:20:36 -07:00
power.c Merge branch 'ull' into test 2008-10-22 23:33:29 -04:00
processor_core.c Merge branch 'ull' into test 2008-10-22 23:33:29 -04:00
processor_idle.c cpuidle: update the last_state acpi cpuidle reflecting actual state entered 2008-10-16 18:00:04 -04:00
processor_perflib.c ACPI: cpufreq, processor: fix compile error in drivers/acpi/processor_perflib.c 2008-10-25 04:07:12 -04:00
processor_thermal.c acpi: use non-racy method for proc entries creation 2008-04-29 08:06:22 -07:00
processor_throttling.c Merge branch 'ull' into test 2008-10-22 23:33:29 -04:00
reboot.c ACPI: Ingore the RESET_REG_SUP bit when using ACPI reset mechanism 2008-10-18 01:01:12 -04:00
sbs.c Merge branch 'linus' into test 2008-10-23 00:11:07 -04:00
sbshc.c Merge branch 'ull' into test 2008-10-22 23:33:29 -04:00
sbshc.h ACPI: SBS: Ignore alarms coming from unknown devices 2007-12-14 15:14:06 -05:00
scan.c ACPI video: if no ACPI backlight support, use vendor drivers 2008-11-07 23:57:55 -05:00
system.c Merge branch 'linus' into test 2008-10-23 00:11:07 -04:00
tables.c acpi: add checking for NULL early param 2008-08-21 08:45:39 +02:00
thermal.c Merge branch 'ull' into test 2008-10-22 23:33:29 -04:00
toshiba_acpi.c toshiba_acpi: always call input_sync() after input_report_switch() 2008-10-25 04:07:13 -04:00
utils.c ACPI: Change acpi_evaluate_integer to support 64-bit on 32-bit kernels 2008-10-11 02:47:33 -04:00
video_detect.c ACPI video: if no ACPI backlight support, use vendor drivers 2008-11-07 23:57:55 -05:00
video.c ACPI video: if no ACPI backlight support, use vendor drivers 2008-11-07 23:57:55 -05:00
wmi.c Merge branch 'bugfixes' into test 2008-10-22 23:19:50 -04:00