OSDN Git Service

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)
commitc7b3e98e4d0ada6aeaa8cc37a7e9ab16e7b3a4fe
tree581cadf61591c6afb8f35e8b30dfec4547fc7d14
parent163ca80013aafb6dc9cb295de3db7aeab9ab43f8
platform/x86: fujitsu-laptop: Fix radio LED detection

Radio LED detection method implemented in commit 4f62568c1fcf
("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: 4f62568c1fcf ("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