[RFC 6/9] platform/x86: huawei-wmi: Add battery charging thresholds

2019-07-31 Thread Ayman Bagabas
Implement battery charging thresholds functionality to be used with sysfs interface support that is implemented in this series. Setting battery charging thresholds can introduce a race condition where two are trying to read/write values from/to EC memory. Even though a mutex is used, this doesn't

[RFC 6/9] platform/x86: huawei-wmi: Add battery charging thresholds

2019-06-29 Thread Ayman Bagabas
Implement battery charging thresholds functionality to be used with sysfs interface support that is implemented in this series. Setting battery charging thresholds can introduce a race condition where two are trying to read/write values from/to EC memory. Even though a mutex is used, this doesn't