platform/x86: huawei-wmi: Add battery charging thresholds
authorAyman Bagabas <ayman.bagabas@gmail.com>
Tue, 24 Sep 2019 02:48:09 +0000 (22:48 -0400)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 15 Oct 2019 07:55:08 +0000 (10:55 +0300)
commit355a070b09ab1f29f36447c91cde3e6fd07775e0
tree1301a30f16aefb568406e2bf49912e4ec3415a41
parent090ddd770b8d2e0c4ee7e5d6fdc72d0080cb8dde
platform/x86: huawei-wmi: Add battery charging thresholds

Control battery charge thresholds through the battery API and driver's
attributes.

Setting battery charging thresholds can introduce a race condition with
MACH-WX9 where two or more threads are trying to read/write values
from/to EC memory.

Signed-off-by: Ayman Bagabas <ayman.bagabas@gmail.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/x86/Kconfig
drivers/platform/x86/huawei-wmi.c