This series implements DPTF power participant driver. Intel ® Dynamic Platform and Thermal Framework (Intel ® DPTF) platform Power Participant is responsible for exposing platform telemetry such as -Platform Power -Battery Information such as State of Charge, estimated maximum sustainable power (PMax), SMART battery spec information Intel ® DPTF Power Participant loads as an ACPI Device (INT3407). This device utilizes and exposes the platform power and Fuel Gauge information and capabilities to the framework and for the policies to take control action. Implementation wise this is power supply battery driver with additional attributes for platform power objects. So the first patch splits the battery driver into two parts, a common part and a ACPI battery enumeration part. Next two patches add support for dptf power driver which uses common battery driver and adds additional attributes for platform power. v4: When both INT3407 and ACPI battery objects are present, then it will cause two batteries to appear in Linux desktop. There is no way to avoid this as long as we register with power_supply class. In this version all battery information and state is presented in sysfs instead using power_supply class for the DPTF power driver. DPTF power driver will not register to the power supply class if ACPI_BATTERY config is defined. v3: Moved dptf_power to drivers/acpi/dptf folder. v2: When both CONFIG_ACPI_BATTERY and CONFIG_DPTF_POWER are defined and platform has support for INT3407, then dptf power registration is delayed for 100ms. In 100 ms, if there is no ACPI battery is registered then dptf power will be registered. Since both can be modules and battery driver loads in async thread, there can be race even if we specify loading order for initialization. Srinivas Pandruvada (3): acpi: battery: Split battery driver for reuse by DPTF power participant acpi: battery: make optional power_supply register acpi: battery: allow externel access of battery information acpi: dptf_power: Add DPTF power participant acpi: battery_common: battery present status for INT3407 drivers/acpi/Kconfig | 6 + drivers/acpi/Makefile | 2 + drivers/acpi/battery.c | 1194 +------------------------------------ drivers/acpi/battery.h | 71 +++ drivers/acpi/battery_common.c | 1261 ++++++++++++++++++++++++++++++++++++++++ drivers/acpi/dptf/Kconfig | 17 + drivers/acpi/dptf/Makefile | 3 + drivers/acpi/dptf/dptf_power.c | 286 +++++++++ drivers/acpi/sbs.c | 1 - 9 files changed, 1651 insertions(+), 1190 deletions(-) create mode 100644 drivers/acpi/battery_common.c create mode 100644 drivers/acpi/dptf/Kconfig create mode 100644 drivers/acpi/dptf/Makefile create mode 100644 drivers/acpi/dptf/dptf_power.c -- 2.5.0 -- To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html