]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI / EC: Fix regression due to conflicting firmware behavior between Samsung and...
authorLv Zheng <lv.zheng@intel.com>
Wed, 29 Oct 2014 03:33:49 +0000 (11:33 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 29 Oct 2014 15:52:35 +0000 (16:52 +0100)
commit13bd5497ab1307dfa1071e80250b5b4c6df0b257
treee2182dc0ca09820598025686a426181353f01d5e
parent51d03065185a11b48fe79a3bf007abf9ecb1e3a2
ACPI / EC: Fix regression due to conflicting firmware behavior between Samsung and Acer.

It is reported that Samsung laptops that need to poll events are broken by
the following commit:
 Commit cbf3c5090d359d14e03cf3246fc24456d8ee397c
 Subject: ACPI / EC: Add support to disallow QR_EC to be issued when SCI_EVT isn't set

The behaviors of the 2 vendor firmwares are conflict:
 1. Acer: OSPM shouldn't issue QR_EC unless SCI_EVT is set, firmware
         automatically sets SCI_EVT as long as there is event queued up.
 2. Samsung: OSPM should issue QR_EC whatever SCI_EVT is set, firmware
            returns 0 when there is no event queued up.

This patch is a quick fix to distinguish the behaviors to make Acer
behavior only effective for Acer EC firmware so that the breakages on
Samsung EC firmware can be avoided.

Fixes: cbf3c5090d35 (ACPI / EC: Add support to disallow QR_EC to be issued ...)
Link: https://bugzilla.kernel.org/show_bug.cgi?id=44161
Reported-and-tested-by: Ortwin Glück <odi@odi.ch>
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Cc: 3.17+ <stable@vger.kernel.org> # 3.17+
[ rjw : Subject ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/ec.c