]> git.baikalelectronics.ru Git - kernel.git/commit
platform/x86: fujitsu-laptop: Fix radio LED detection
authorMichał Kępień <kernel@kempniu.pl>
Wed, 25 Oct 2017 04:29:46 +0000 (06:29 +0200)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 30 Oct 2017 11:20:11 +0000 (13:20 +0200)
commit64a6c9af8b9f853f2fdfa6d5fca8dd8b988adc8f
tree581cadf61591c6afb8f35e8b30dfec4547fc7d14
parente1b0546315258adee5420dd465f6be7fde83490e
platform/x86: fujitsu-laptop: Fix radio LED detection

Radio LED detection method implemented in commit 95e2429f01e7
("fujitsu-laptop: Support radio LED") turned out to be incorrect as it
causes a radio LED to be erroneously detected on a Fujitsu Lifebook E751
which has a slide switch (and thus no radio LED).  Use bit 17 of
flags_supported (the value returned by method S000 of ACPI device
FUJ02E3) to determine whether a radio LED is present as it seems to be a
more reliable indicator, based on comparing DSDT tables of four Fujitsu
Lifebook models (E744, E751, S7110, S8420).

Fixes: 95e2429f01e7 ("fujitsu-laptop: Support radio LED")
Reported-by: Heinrich Siebmanns <harv@gmx.de>
Signed-off-by: Michał Kępień <kernel@kempniu.pl>
Tested-by: Heinrich Siebmanns <harv@gmx.de>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/x86/fujitsu-laptop.c