platform/chrome: cros_ec_lpc: do not try DMI match when ACPI device found
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 22 May 2018 23:08:41 +0000 (16:08 -0700)
committerBenson Leung <bleung@chromium.org>
Tue, 22 May 2018 23:46:13 +0000 (16:46 -0700)
commitb410b1226620b6c959f1e9c87529acd058e90caf
treed1cc88138134a1c818ef826face9f166831f5ed4
parent60cc43fc888428bb2f18f08997432d426a243338
platform/chrome: cros_ec_lpc: do not try DMI match when ACPI device found

Older models of Chromebooks did not describe the LPC EC in their ACPI
tables; starting with Strago-based devices Google is using GOOG0004 device
to describe EC LPC.

DMI-based match is fragile and does not work reliably, especially when
using custom firmware. It is also not needed when we can locate the right
ACPI device, so let's stop bailing out when DMI does not match but the
right ACPI device is present.

Cc: stable@vger.kernel.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Benson Leung <bleung@chromium.org>
drivers/platform/chrome/cros_ec_lpc.c