linux/drivers/platform/x86
Manoj Iyer a4f46bb9fa thinkpad-acpi: recognize latest V-Series using DMI_BIOS_VENDOR
In the latest V-series bios DMI_PRODUCT_VERSION does not contain
the string Lenovo or Thinkpad, but is set to the model number, this
causes the thinkpad_acpi module to fail to load. Recognize laptop
as Lenovo using DMI_BIOS_VENDOR instead, which is set to Lenovo.

Test on V490u
=============
== After the patch ==

[ 1350.295757] thinkpad_acpi: ThinkPad ACPI Extras v0.24
[ 1350.295760] thinkpad_acpi: http://ibm-acpi.sf.net/
[ 1350.295761] thinkpad_acpi: ThinkPad BIOS H7ET21WW (1.00 ), EC unknown
[ 1350.295763] thinkpad_acpi: Lenovo LENOVO, model LV5DXXX
[ 1350.296086] thinkpad_acpi: detected a 8-level brightness capable ThinkPad
[ 1350.296694] thinkpad_acpi: radio switch found; radios are enabled
[ 1350.296703] thinkpad_acpi: possible tablet mode switch found; ThinkPad in laptop mode
[ 1350.306466] thinkpad_acpi: rfkill switch tpacpi_bluetooth_sw: radio is unblocked
[ 1350.307082] Registered led device: tpacpi::thinklight
[ 1350.307215] Registered led device: tpacpi::power
[ 1350.307255] Registered led device: tpacpi::standby
[ 1350.307294] Registered led device: tpacpi::thinkvantage
[ 1350.308160] thinkpad_acpi: Standard ACPI backlight interface available, not loading native one
[ 1350.308333] thinkpad_acpi: Console audio control enabled, mode: monitor (read only)
[ 1350.312287] input: ThinkPad Extra Buttons as /devices/platform/thinkpad_acpi/input/input14

== Before the patch ==
sudo modprobe thinkpad_acpi
FATAL: Error inserting thinkpad_acpi (/lib/modules/3.2.0-27-generic/kernel/drivers/platform/x86/thinkpad_acpi.ko): No such device

Test on B485
=============
This patch was also test in a B485 where the thinkpad_acpi module does not
have any issues loading. But, I tested it to make sure this patch does not
break on already functioning models of Lenovo products.

[13486.746359] thinkpad_acpi: ThinkPad ACPI Extras v0.24
[13486.746364] thinkpad_acpi: http://ibm-acpi.sf.net/
[13486.746368] thinkpad_acpi: ThinkPad BIOS HJET15WW(1.01), EC unknown
[13486.746373] thinkpad_acpi: Lenovo Lenovo LB485, model 814TR01
[13486.747300] thinkpad_acpi: detected a 8-level brightness capable ThinkPad
[13486.752435] thinkpad_acpi: rfkill switch tpacpi_bluetooth_sw: radio is unblocked
[13486.752883] Registered led device: tpacpi::thinklight
[13486.752915] thinkpad_acpi: Standard ACPI backlight interface available, not loading native one
[13486.753216] thinkpad_acpi: Console audio control enabled, mode: monitor (read only)
[13486.757147] input: ThinkPad Extra Buttons as /devices/platform/thinkpad_acpi/input/input15

Signed-off-by: Manoj Iyer <manoj.iyer@canonical.com>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
2012-08-17 17:34:42 -04:00
..
acer-wmi.c ACER: Fix Smatch double-free issue 2012-07-28 00:28:55 -04:00
acerhdf.c Thermal: Make Thermal trip points writeable 2012-07-24 23:17:20 -04:00
amilo-rfkill.c drivers/platform/x86/amilo-rfkill.c::amilo_rfkill_probe() avoid NULL deref 2012-03-26 15:45:32 -04:00
apple-gmux.c apple-gmux: Add display mux support 2012-08-17 17:34:40 -04:00
asus-laptop.c
asus-nb-wmi.c asus-nb-wmi: add some video toggle keys 2012-07-28 00:28:54 -04:00
asus-wmi.c asus-wmi: record wlan status while controlled by userapp 2012-08-17 17:34:39 -04:00
asus-wmi.h asus-wmi: record wlan status while controlled by userapp 2012-08-17 17:34:39 -04:00
classmate-laptop.c platform / x86 / PM: Fix unused function warnings for CONFIG_PM_SLEEP 2012-08-10 14:29:43 +02:00
compal-laptop.c
dell-laptop.c dell-laptop: Fixed typo in touchpad LED quirk 2012-08-17 17:34:42 -04:00
dell-wmi-aio.c
dell-wmi.c
eeepc-laptop.c Merge branch 'for_linus' of git://cavan.codon.org.uk/platform-drivers-x86 2012-03-28 14:20:23 -07:00
eeepc-wmi.c asus-wmi: control backlight power through WMI, not ACPI 2012-07-28 00:11:49 -04:00
fujitsu-laptop.c Email/web address change 2012-03-28 10:35:15 +02:00
fujitsu-tablet.c platform / x86 / PM: Fix unused function warnings for CONFIG_PM_SLEEP 2012-08-10 14:29:43 +02:00
hdaps.c platform / x86 / PM: Fix unused function warnings for CONFIG_PM_SLEEP 2012-08-10 14:29:43 +02:00
hp-wmi.c hp-wmi: check for allocation failures 2012-05-31 14:29:33 -04:00
hp_accel.c platform / x86 / PM: Fix unused function warnings for CONFIG_PM_SLEEP 2012-08-10 14:29:43 +02:00
ibm_rtl.c
ideapad-laptop.c ideapad: uninitialized data in ideapad_acpi_add() 2012-06-26 14:43:45 -04:00
intel_ips.c Power management updates for 3.6 2012-07-22 13:36:52 -07:00
intel_ips.h
intel_menlow.c
intel_mid_powerbtn.c intel_mid_powerbtn: mark irq as IRQF_NO_SUSPEND 2012-05-04 14:40:52 -07:00
intel_mid_thermal.c Merge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux 2012-07-26 14:28:55 -07:00
intel_oaktrail.c
intel_pmic_gpio.c
intel_scu_ipc.c
intel_scu_ipcutil.c
Kconfig apple-gmux: Fix kconfig dependencies 2012-08-17 17:34:40 -04:00
Makefile platform/x86: Add driver for Apple gmux device 2012-03-26 15:05:25 -04:00
msi-laptop.c platform / x86 / PM: Fix unused function warnings for CONFIG_PM_SLEEP 2012-08-10 14:29:43 +02:00
msi-wmi.c
mxm-wmi.c
panasonic-laptop.c platform / x86 / PM: Fix unused function warnings for CONFIG_PM_SLEEP 2012-08-10 14:29:43 +02:00
samsung-laptop.c samsung-laptop: support R40/R41 2012-07-28 00:11:48 -04:00
samsung-q10.c
sony-laptop.c platform / x86 / PM: Fix unused function warnings for CONFIG_PM_SLEEP 2012-08-10 14:29:43 +02:00
tc1100-wmi.c
thinkpad_acpi.c thinkpad-acpi: recognize latest V-Series using DMI_BIOS_VENDOR 2012-08-17 17:34:42 -04:00
topstar-laptop.c
toshiba_acpi.c platform / x86 / PM: Fix unused function warnings for CONFIG_PM_SLEEP 2012-08-10 14:29:43 +02:00
toshiba_bluetooth.c platform / x86 / PM: Fix unused function warnings for CONFIG_PM_SLEEP 2012-08-10 14:29:43 +02:00
wmi.c
xo1-rfkill.c drivers: OLPC: update various drivers to include olpc-ec.h 2012-07-31 23:27:29 -04:00
xo15-ebook.c platform / x86 / PM: Fix unused function warnings for CONFIG_PM_SLEEP 2012-08-10 14:29:43 +02:00