All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 0/5] DPTF Platform power participant driver
@ 2016-06-30  0:00 Srinivas Pandruvada
  2016-06-30  0:00 ` [PATCH v4 1/5] acpi: battery: Split battery driver for reuse by DPTF power participant Srinivas Pandruvada
                   ` (4 more replies)
  0 siblings, 5 replies; 10+ messages in thread
From: Srinivas Pandruvada @ 2016-06-30  0:00 UTC (permalink / raw)
  To: rjw; +Cc: linux-acpi, Srinivas Pandruvada

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@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2016-06-30 22:40 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-30  0:00 [PATCH v4 0/5] DPTF Platform power participant driver Srinivas Pandruvada
2016-06-30  0:00 ` [PATCH v4 1/5] acpi: battery: Split battery driver for reuse by DPTF power participant Srinivas Pandruvada
2016-06-30 22:08   ` Rafael J. Wysocki
2016-06-30 22:39     ` Srinivas Pandruvada
2016-06-30  0:00 ` [PATCH v4 2/5] acpi: battery: make optional power_supply register Srinivas Pandruvada
2016-06-30 22:10   ` Rafael J. Wysocki
2016-06-30  0:00 ` [PATCH v4 3/5] acpi: battery: allow externel access of battery information Srinivas Pandruvada
2016-06-30  0:00 ` [PATCH v4 4/5] acpi: dptf_power: Add DPTF power participant Srinivas Pandruvada
2016-06-30 22:15   ` Rafael J. Wysocki
2016-06-30  0:00 ` [PATCH v4 5/5] acpi: battery_common: battery present status for INT3407 Srinivas Pandruvada

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.