07 Oct, 2016

1 commit

  • Pull power supply and reset updates from Sebastian Reichel:
    - move power supply drivers to drivers/power/supply
    - unify location of power supply DT documentation
    - tps65217-charger: IRQ support
    - act8945a-charger: misc. cleanups & improvements
    - sbs-battery cleanup
    - fix users of deprecated create_singlethread_workqueue()
    - misc fixes.

    * tag 'for-v4.9' of git://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-power-supply: (46 commits)
    power: supply: bq27xxx_battery: allow kernel poll_interval parameter runtime update
    power: supply: sbs-battery: Cleanup removal of chip->pdata
    power: reset: st: Remove obsolete platforms from dt doc
    power: reset: st-poweroff: Remove obsolete platforms.
    power: reset: zx-reboot: Unmap region obtained by of_iomap
    power: reset: xgene-reboot: Unmap region obtained by of_iomap
    power: supply: ab8500: cleanup with list_first_entry_or_null()
    power: reset: add in missing white space in error message text
    sbs-battery: make writes to ManufacturerAccess optional
    power: bq24257: Fix use of uninitialized pointer bq->charger
    power: supply: sbs-battery: simplify DT parsing
    power: supply: bq24735-charger: Request status GPIO with initial input setup
    power: supply: sbs-battery: Use gpio_desc and sleeping calls for battery detect
    power: supply: act8945a_charger: Add max current property
    power: supply: act8945a_charger: Add capacity level property
    doc: bindings: power: act8945a-charger: Update properties.
    power: supply: act8945a_charger: Fix the power supply type
    power: supply: act8945a_charger: Add status change update support
    power: supply: act8945a_charger: Improve state handling
    power: supply: act8945a_charger: Remove "battery_temperature"
    ...

    Linus Torvalds
     

13 Aug, 2016

1 commit


11 Aug, 2016

1 commit


05 Apr, 2016

1 commit


12 Jan, 2016

1 commit

  • * pm-pci:
    PCI / PM: Fix small typo in documentation
    PCI / PM: constify pci_platform_pm_ops structure

    * pm-core:
    PM / core: fix typo in documentation
    PM / runtime: Add new helper for conditional usage count incrementation
    MAINTAINERS: Add an entry for the PM core
    PM / runtime: Re-init runtime PM states at probe error and driver unbind
    PM / sleep: prohibit devices probing during suspend/hibernation

    Rafael J. Wysocki
     

21 Dec, 2015

1 commit

  • Introduce a new runtime PM function, pm_runtime_get_if_in_use(),
    that will increment the device's runtime PM usage counter and
    return 1 if its status is RPM_ACTIVE and its usage counter
    is greater than 0 at the same time (0 will be returned otherwise).

    This is useful for things that should only be done if the device
    is active (from the runtime PM perspective) and used by somebody
    (as indicated by the usage counter) already and they are not worth
    bothering otherwise.

    Requested-by: Imre Deak
    Reviewed-by: Ulf Hansson
    Signed-off-by: Rafael J. Wysocki

    Rafael J. Wysocki
     

09 Dec, 2015

1 commit


25 Sep, 2015

1 commit

  • Section 3.2 "Device Runtime Power Management" of pci.txt has become
    outdated, so update it to correctly reflect the current code flow.

    Also update the comment in local_pci_probe() to document the fact
    that pm_runtime_put_noidle() is not the only runtime PM helper
    function that can be used to decrement the device's runtime PM
    usage counter in .probe().

    Signed-off-by: Rafael J. Wysocki
    Acked-by: Alan Stern

    Rafael J. Wysocki
     

02 Sep, 2015

1 commit

  • Pull power management and ACPI updates from Rafael Wysocki:
    "From the number of commits perspective, the biggest items are ACPICA
    and cpufreq changes with the latter taking the lead (over 50 commits).

    On the cpufreq front, there are many cleanups and minor fixes in the
    core and governors, driver updates etc. We also have a new cpufreq
    driver for Mediatek MT8173 chips.

    ACPICA mostly updates its debug infrastructure and adds a number of
    fixes and cleanups for a good measure.

    The Operating Performance Points (OPP) framework is updated with new
    DT bindings and support for them among other things.

    We have a few updates of the generic power domains framework and a
    reorganization of the ACPI device enumeration code and bus type
    operations.

    And a lot of fixes and cleanups all over.

    Included is one branch from the MFD tree as it contains some
    PM-related driver core and ACPI PM changes a few other commits are
    based on.

    Specifics:

    - ACPICA update to upstream revision 20150818 including method
    tracing extensions to allow more in-depth AML debugging in the
    kernel and a number of assorted fixes and cleanups (Bob Moore, Lv
    Zheng, Markus Elfring).

    - ACPI sysfs code updates and a documentation update related to AML
    method tracing (Lv Zheng).

    - ACPI EC driver fix related to serialized evaluations of _Qxx
    methods and ACPI tools updates allowing the EC userspace tool to be
    built from the kernel source (Lv Zheng).

    - ACPI processor driver updates preparing it for future introduction
    of CPPC support and ACPI PCC mailbox driver updates (Ashwin
    Chaugule).

    - ACPI interrupts enumeration fix for a regression related to the
    handling of IRQ attribute conflicts between MADT and the ACPI
    namespace (Jiang Liu).

    - Fixes related to ACPI device PM (Mika Westerberg, Srinidhi
    Kasagar).

    - ACPI device registration code reorganization to separate the
    sysfs-related code and bus type operations from the rest (Rafael J
    Wysocki).

    - Assorted cleanups in the ACPI core (Jarkko Nikula, Mathias Krause,
    Andy Shevchenko, Rafael J Wysocki, Nicolas Iooss).

    - ACPI cpufreq driver and ia64 cpufreq driver fixes and cleanups (Pan
    Xinhui, Rafael J Wysocki).

    - cpufreq core cleanups on top of the previous changes allowing it to
    preseve its sysfs directories over system suspend/resume (Viresh
    Kumar, Rafael J Wysocki, Sebastian Andrzej Siewior).

    - cpufreq fixes and cleanups related to governors (Viresh Kumar).

    - cpufreq updates (core and the cpufreq-dt driver) related to the
    turbo/boost mode support (Viresh Kumar, Bartlomiej Zolnierkiewicz).

    - New DT bindings for Operating Performance Points (OPP), support for
    them in the OPP framework and in the cpufreq-dt driver plus related
    OPP framework fixes and cleanups (Viresh Kumar).

    - cpufreq powernv driver updates (Shilpasri G Bhat).

    - New cpufreq driver for Mediatek MT8173 (Pi-Cheng Chen).

    - Assorted cpufreq driver (speedstep-lib, sfi, integrator) cleanups
    and fixes (Abhilash Jindal, Andrzej Hajda, Cristian Ardelean).

    - intel_pstate driver updates including Skylake-S support, support
    for enabling HW P-states per CPU and an additional vendor bypass
    list entry (Kristen Carlson Accardi, Chen Yu, Ethan Zhao).

    - cpuidle core fixes related to the handling of coupled idle states
    (Xunlei Pang).

    - intel_idle driver updates including Skylake Client support and
    support for freeze-mode-specific idle states (Len Brown).

    - Driver core updates related to power management (Andy Shevchenko,
    Rafael J Wysocki).

    - Generic power domains framework fixes and cleanups (Jon Hunter,
    Geert Uytterhoeven, Rajendra Nayak, Ulf Hansson).

    - Device PM QoS framework update to allow the latency tolerance
    setting to be exposed to user space via sysfs (Mika Westerberg).

    - devfreq support for PPMUv2 in Exynos5433 and a fix for an incorrect
    exynos-ppmu DT binding (Chanwoo Choi, Javier Martinez Canillas).

    - System sleep support updates (Alan Stern, Len Brown, SungEun Kim).

    - rockchip-io AVS support updates (Heiko Stuebner).

    - PM core clocks support fixup (Colin Ian King).

    - Power capping RAPL driver update including support for Skylake H/S
    and Broadwell-H (Radivoje Jovanovic, Seiichi Ikarashi).

    - Generic device properties framework fixes related to the handling
    of static (driver-provided) property sets (Andy Shevchenko).

    - turbostat and cpupower updates (Len Brown, Shilpasri G Bhat,
    Shreyas B Prabhu)"

    * tag 'pm+acpi-4.3-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm: (180 commits)
    cpufreq: speedstep-lib: Use monotonic clock
    cpufreq: powernv: Increase the verbosity of OCC console messages
    cpufreq: sfi: use kmemdup rather than duplicating its implementation
    cpufreq: drop !cpufreq_driver check from cpufreq_parse_governor()
    cpufreq: rename cpufreq_real_policy as cpufreq_user_policy
    cpufreq: remove redundant 'policy' field from user_policy
    cpufreq: remove redundant 'governor' field from user_policy
    cpufreq: update user_policy.* on success
    cpufreq: use memcpy() to copy policy
    cpufreq: remove redundant CPUFREQ_INCOMPATIBLE notifier event
    cpufreq: mediatek: Add MT8173 cpufreq driver
    dt-bindings: mediatek: Add MT8173 CPU DVFS clock bindings
    PM / Domains: Fix typo in description of genpd_dev_pm_detach()
    PM / Domains: Remove unusable governor dummies
    PM / Domains: Make pm_genpd_init() available to modules
    PM / domains: Align column headers and data in pm_genpd_summary output
    powercap / RAPL: disable the 2nd power limit properly
    tools: cpupower: Fix error when running cpupower monitor
    PM / OPP: Drop unlikely before IS_ERR(_OR_NULL)
    PM / OPP: Fix static checker warning (broken 64bit big endian systems)
    ...

    Linus Torvalds
     

06 Aug, 2015

1 commit

  • As a prerequisite to exporting cpu_hotplug_enable/cpu_hotplug_disable
    functions to modules we need to convert cpu_hotplug_disabled to a counter
    to properly support disable -> disable -> enable call sequences. E.g.
    after Hyper-V vmbus module (which is supposed to be the first user of
    exported cpu_hotplug_enable/cpu_hotplug_disable) did cpu_hotplug_disable()
    hibernate path calls disable_nonboot_cpus() and if we hit an error in
    _cpu_down() enable_nonboot_cpus() will be called on the failure path (thus
    making cpu_hotplug_disabled = 0 and leaving cpu hotplug in 'enabled'
    state). Same problem is possible if more than 1 module use
    cpu_hotplug_disable/cpu_hotplug_enable on their load/unload paths. When
    one of these modules is been unloaded it is logical to leave cpu hotplug
    in 'disabled' state.

    To support the change we need to increse cpu_hotplug_disabled counter
    in disable_nonboot_cpus() unconditionally as all users of
    disable_nonboot_cpus() are supposed to do enable_nonboot_cpus() in case
    an error was returned.

    Signed-off-by: Vitaly Kuznetsov
    Reviewed-by: Thomas Gleixner
    Signed-off-by: K. Y. Srinivasan
    Signed-off-by: Greg Kroah-Hartman

    Vitaly Kuznetsov
     

22 Jul, 2015

1 commit

  • Don't unset the direct_complete flag on devices that have runtime PM
    disabled, if they are runtime suspended.

    This is needed because otherwise ancestor devices wouldn't be able to
    do direct_complete without adding runtime PM support to all its
    descendants.

    Also removes pm_runtime_suspended_if_enabled() because it's now unused.

    Signed-off-by: Tomeu Vizoso
    Signed-off-by: Alan Stern
    Signed-off-by: Rafael J. Wysocki

    Alan Stern
     

07 Jul, 2015

1 commit


13 May, 2015

1 commit


15 Apr, 2015

1 commit

  • Pull power management and ACPI updates from Rafael Wysocki:
    "These are mostly fixes and cleanups all over, although there are a few
    items that sort of fall into the new feature category.

    First off, we have new callbacks for PM domains that should help us to
    handle some issues related to device initialization in a better way.

    There also is some consolidation in the unified device properties API
    area allowing us to use that inferface for accessing data coming from
    platform initialization code in addition to firmware-provided data.

    We have some new device/CPU IDs in a few drivers, support for new
    chips and a new cpufreq driver too.

    Specifics:

    - Generic PM domains support update including new PM domain callbacks
    to handle device initialization better (Russell King, Rafael J
    Wysocki, Kevin Hilman)

    - Unified device properties API update including a new mechanism for
    accessing data provided by platform initialization code (Rafael J
    Wysocki, Adrian Hunter)

    - ARM cpuidle update including ARM32/ARM64 handling consolidation
    (Daniel Lezcano)

    - intel_idle update including support for the Silvermont Core in the
    Baytrail SOC and for the Airmont Core in the Cherrytrail and
    Braswell SOCs (Len Brown, Mathias Krause)

    - New cpufreq driver for Hisilicon ACPU (Leo Yan)

    - intel_pstate update including support for the Knights Landing chip
    (Dasaratharaman Chandramouli, Kristen Carlson Accardi)

    - QorIQ cpufreq driver update (Tang Yuantian, Arnd Bergmann)

    - powernv cpufreq driver update (Shilpasri G Bhat)

    - devfreq update including Tegra support changes (Tomeu Vizoso,
    MyungJoo Ham, Chanwoo Choi)

    - powercap RAPL (Running-Average Power Limit) driver update including
    support for Intel Broadwell server chips (Jacob Pan, Mathias Krause)

    - ACPI device enumeration update related to the handling of the
    special PRP0001 device ID allowing DT-style 'compatible' property
    to be used for ACPI device identification (Rafael J Wysocki)

    - ACPI EC driver update including limited _DEP support (Lan Tianyu,
    Lv Zheng)

    - ACPI backlight driver update including a new mechanism to allow
    native backlight handling to be forced on non-Windows 8 systems and
    a new quirk for Lenovo Ideapad Z570 (Aaron Lu, Hans de Goede)

    - New Windows Vista compatibility quirk for Sony VGN-SR19XN (Chen Yu)

    - Assorted ACPI fixes and cleanups (Aaron Lu, Martin Kepplinger,
    Masanari Iida, Mika Westerberg, Nan Li, Rafael J Wysocki)

    - Fixes related to suspend-to-idle for the iTCO watchdog driver and
    the ACPI core system suspend/resume code (Rafael J Wysocki, Chen Yu)

    - PM tracing support for the suspend phase of system suspend/resume
    transitions (Zhonghui Fu)

    - Configurable delay for the system suspend/resume testing facility
    (Brian Norris)

    - PNP subsystem cleanups (Peter Huewe, Rafael J Wysocki)"

    * tag 'pm+acpi-4.1-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm: (74 commits)
    ACPI / scan: Fix NULL pointer dereference in acpi_companion_match()
    ACPI / scan: Rework modalias creation when "compatible" is present
    intel_idle: mark cpu id array as __initconst
    powercap / RAPL: mark rapl_ids array as __initconst
    powercap / RAPL: add ID for Broadwell server
    intel_pstate: Knights Landing support
    intel_pstate: remove MSR test
    cpufreq: fix qoriq uniprocessor build
    ACPI / scan: Take the PRP0001 position in the list of IDs into account
    ACPI / scan: Simplify acpi_match_device()
    ACPI / scan: Generalize of_compatible matching
    device property: Introduce firmware node type for platform data
    device property: Make it possible to use secondary firmware nodes
    PM / watchdog: iTCO: stop watchdog during system suspend
    cpufreq: hisilicon: add acpu driver
    ACPI / EC: Call acpi_walk_dep_device_list() after installing EC opregion handler
    cpufreq: powernv: Report cpu frequency throttling
    intel_idle: Add support for the Airmont Core in the Cherrytrail and Braswell SOCs
    intel_idle: Update support for Silvermont Core in Baytrail SOC
    PM / devfreq: tegra: Register governor on module init
    ...

    Linus Torvalds
     

11 Apr, 2015

1 commit


10 Apr, 2015

1 commit


10 Mar, 2015

1 commit


06 Mar, 2015

1 commit

  • With certain restrictions it is possible for a wakeup device to share
    an IRQ with an IRQF_NO_SUSPEND user, and the warnings introduced by
    commit cab303be91dc47942bc25de33dc1140123540800 are spurious. The new
    IRQF_COND_SUSPEND flag allows drivers to tell the core when these
    restrictions are met, allowing spurious warnings to be silenced.

    This patch documents how IRQF_COND_SUSPEND is expected to be used,
    updating some of the text now made invalid by its addition.

    Signed-off-by: Mark Rutland
    Signed-off-by: Rafael J. Wysocki

    Mark Rutland
     

26 Feb, 2015

2 commits

  • When CONFIG_PM_DEBUG=y, we provide a sysfs file (/sys/power/pm_test) for
    selecting one of a few suspend test modes, where rather than entering a
    full suspend state, the kernel will perform some subset of suspend
    steps, wait 5 seconds, and then resume back to normal operation.

    This mode is useful for (among other things) observing the state of the
    system just before entering a sleep mode, for debugging or analysis
    purposes. However, a constant 5 second wait is not sufficient for some
    sorts of analysis; for example, on an SoC, one might want to use
    external tools to probe the power states of various on-chip controllers
    or clocks.

    This patch turns this 5 second delay into a configurable module
    parameter, so users can determine how long to wait in this
    pseudo-suspend state before resuming the system.

    Example (wait 30 seconds);

    # echo 30 > /sys/module/suspend/parameters/pm_test_delay
    # echo core > /sys/power/pm_test
    # time echo mem > /sys/power/state
    ...
    [ 17.583625] suspend debug: Waiting for 30 second(s).
    ...
    real 0m30.381s
    user 0m0.017s
    sys 0m0.080s

    Signed-off-by: Brian Norris
    Acked-by: Pavel Machek
    Reviewed-by: Kevin Cernekee
    Acked-by: Florian Fainelli
    Signed-off-by: Rafael J. Wysocki

    Brian Norris
     
  • The IRQF_NO_SUSPEND flag is intended to be used for interrupts required
    to be enabled during the suspend-resume cycle. This mostly consists of
    IPIs and timer interrupts, potentially including chained irqchip
    interrupts if these are necessary to handle timers or IPIs. If an
    interrupt does not fall into one of the aforementioned categories,
    requesting it with IRQF_NO_SUSPEND is likely incorrect.

    Using IRQF_NO_SUSPEND does not guarantee that the interrupt can wake the
    system from a suspended state. For an interrupt to be able to trigger a
    wakeup, it may be necessary to program various components of the system.
    In these cases it is necessary to use {enable,disabled}_irq_wake.

    Unfortunately, several drivers assume that IRQF_NO_SUSPEND ensures that
    an IRQ can wake up the system, and the documentation can be read
    ambiguously w.r.t. this property.

    This patch updates the documentation regarding IRQF_NO_SUSPEND to make
    this caveat explicit, hopefully making future misuse rarer. Cleanup of
    existing misuse will occur as part of later patch series.

    Signed-off-by: Mark Rutland
    Acked-by: Peter Zijlstra (Intel)
    Signed-off-by: Rafael J. Wysocki

    Mark Rutland
     

30 Jan, 2015

1 commit


13 Dec, 2014

1 commit

  • Pull ARM updates from Russell King:
    "The major updates included in this update are:

    - Clang compatible stack pointer accesses by Behan Webster.
    - SA11x0 updates from Dmitry Eremin-Solenikov.
    - kgdb handling of breakpoints with read-only text/modules
    - Support for Privileged-no-execute feature on ARMv7 to prevent
    userspace code execution by the kernel.
    - AMBA primecell bus handling of irq-safe runtime PM
    - Unwinding support for memset/memzero/memmove/memcpy functions
    - VFP fixes for Krait CPUs and improvements in detecting the VFP
    architecture
    - A number of code cleanups (using pr_*, removing or reducing the
    severity of a couple of kernel messages, splitting ftrace asm code
    out to a separate file, etc.)
    - Add machine name to stack dump output"

    * 'for-linus' of git://ftp.arm.linux.org.uk/~rmk/linux-arm: (62 commits)
    ARM: 8247/2: pcmcia: sa1100: make use of device clock
    ARM: 8246/2: pcmcia: sa1111: provide device clock
    ARM: 8245/1: pcmcia: soc-common: enable/disable socket clocks
    ARM: 8244/1: fbdev: sa1100fb: make use of device clock
    ARM: 8243/1: sa1100: add a clock alias for sa1111 pcmcia device
    ARM: 8242/1: sa1100: add cpu clock
    ARM: 8221/1: PJ4: allow building in Thumb-2 mode
    ARM: 8234/1: sa1100: reorder IRQ handling code
    ARM: 8233/1: sa1100: switch to hwirq usage
    ARM: 8232/1: sa1100: merge GPIO multiplexer IRQ to "normal" irq domain
    ARM: 8231/1: sa1100: introduce irqdomains support
    ARM: 8230/1: sa1100: shift IRQs by one
    ARM: 8229/1: sa1100: replace irq numbers with names in irq driver
    ARM: 8228/1: sa1100: drop entry-macro.S
    ARM: 8227/1: sa1100: switch to MULTI_IRQ_HANDLER
    ARM: 8241/1: Update processor_modes for hyp and monitor mode
    ARM: 8240/1: MCPM: document mcpm_sync_init()
    ARM: 8239/1: Introduce {set,clear}_pte_bit
    ARM: 8238/1: mm: Refine set_memory_* functions
    ARM: 8237/1: fix flush_pfn_alias
    ...

    Linus Torvalds
     

18 Nov, 2014

1 commit


08 Nov, 2014

1 commit


24 Oct, 2014

1 commit


15 Oct, 2014

1 commit

  • Pull power supply and reset updates from Sebastian Reichel:
    - Initial support for the following chips
    * max77836 (charger)
    * max14577 (charger)
    * bq27742 (battery gauge)
    * ltc2952 (poweroff)
    * stih416 (restart)
    * syscon-reboot (restart)
    * gpio-restart (restart)
    - cleanup of power supply core
    - misc fixes in power supply and reset drivers

    * tag 'for-v3.18' of git://git.infradead.org/battery-2.6: (48 commits)
    power: ab8500_fg: Fix build warning
    Documentation: charger: max14577: Update the date of introducing ABI
    power: reset: corrections for simple syscon reboot driver
    Documentation: power: reset: Add documentation for generic SYSCON reboot driver
    power: reset: Add generic SYSCON register mapped reset
    bq27x00_battery: Fix flag reading for bq27742
    power: reset: use restart_notifier mechanism for msm-poweroff
    power: Add simple gpio-restart driver
    power: reset: st: Provide DT bindings for ST's Power Reset driver
    power: reset: Add restart functionality for STiH41x platforms
    power: charger-manager: Fix NULL pointer exception with missing cm-fuel-gauge
    power: max14577: Fix circular config SYSFS dependency
    power: gpio-charger: do not use gpio value directly
    power: max8925: Use of_get_child_by_name
    power: max8925: Fix NULL ptr dereference on memory allocation failure
    bq27x00_battery: Add support to bq27742
    Documentation: charger: max14577: Document exported sysfs entry
    devicetree: mfd: max14577: Add device tree bindings document
    power: max17040: Add ID for MAX77836 Fuel Gauge block
    charger: max14577: Configure battery-dependent settings from DTS and sysfs
    ...

    Conflicts:
    drivers/power/reset/Kconfig
    drivers/power/reset/Makefile

    Linus Torvalds
     

07 Oct, 2014

1 commit

  • * pm-genirq:
    PM / genirq: Document rules related to system suspend and interrupts
    PCI / PM: Make PCIe PME interrupts wake up from suspend-to-idle
    x86 / PM: Set IRQCHIP_SKIP_SET_WAKE for IOAPIC IRQ chip objects
    genirq: Simplify wakeup mechanism
    genirq: Mark wakeup sources as armed on suspend
    genirq: Create helper for flow handler entry check
    genirq: Distangle edge handler entry
    genirq: Avoid double loop on suspend
    genirq: Move MASK_ON_SUSPEND handling into suspend_device_irqs()
    genirq: Make use of pm misfeature accounting
    genirq: Add sanity checks for PM options on shared interrupt lines
    genirq: Move suspend/resume logic into irq/pm code
    PM / sleep: Mechanism for aborting system suspends unconditionally

    Rafael J. Wysocki
     

25 Sep, 2014

1 commit

  • Also adds a class type PM_QOS_SUM that aggregates the values by summing them.

    It can be used by memory controllers to calculate the optimum clock frequency
    based on the bandwidth needs of the different memory clients.

    Signed-off-by: Tomeu Vizoso
    Acked-by: Pavel Machek
    Signed-off-by: Rafael J. Wysocki

    Tomeu Vizoso
     

16 Sep, 2014

1 commit


07 Sep, 2014

1 commit

  • Usually PMIC's come with coulomb counting mechanism which can be
    used to implement a Fuel Gauginig solution in Software itself.
    One of key input to these SW Fuel Gauge solutioons is the boot up
    parameters like boot voltage and boot current.

    This patch adds the VOLTAGE_BOOT and CURRENT_BOOT power supply attributes
    to report bootup voltage and current.

    This patch also adds CALIBRATE power supply attribute which useful is
    for calibrating the battery/coulomb counter.

    Signed-off-by: Ramakrishna Pallala
    Signed-off-by: Sebastian Reichel

    Ramakrishna Pallala
     

01 Sep, 2014

1 commit


28 Aug, 2014

1 commit


07 Aug, 2014

2 commits

  • Pull ACPI and power management updates from Rafael Wysocki:
    "Again, ACPICA leads the pack (47 commits), followed by cpufreq (18
    commits) and system suspend/hibernation (9 commits).

    From the new code perspective, the ACPICA update brings ACPI 5.1 to
    the table, including a new device configuration object called _DSD
    (Device Specific Data) that will hopefully help us to operate device
    properties like Device Trees do (at least to some extent) and changes
    related to supporting ACPI on ARM.

    Apart from that we have hibernation changes making it use radix trees
    to store memory bitmaps which should speed up some operations carried
    out by it quite significantly. We also have some power management
    changes related to suspend-to-idle (the "freeze" sleep state) support
    and more preliminary changes needed to support ACPI on ARM (outside of
    ACPICA).

    The rest is fixes and cleanups pretty much everywhere.

    Specifics:

    - ACPICA update to upstream version 20140724. That includes ACPI 5.1
    material (support for the _CCA and _DSD predefined names, changes
    related to the DMAR and PCCT tables and ARM support among other
    things) and cleanups related to using ACPICA's header files. A
    major part of it is related to acpidump and the core code used by
    that utility. Changes from Bob Moore, David E Box, Lv Zheng,
    Sascha Wildner, Tomasz Nowicki, Hanjun Guo.

    - Radix trees for memory bitmaps used by the hibernation core from
    Joerg Roedel.

    - Support for waking up the system from suspend-to-idle (also known
    as the "freeze" sleep state) using ACPI-based PCI wakeup signaling
    (Rafael J Wysocki).

    - Fixes for issues related to ACPI button events (Rafael J Wysocki).

    - New device ID for an ACPI-enumerated device included into the
    Wildcat Point PCH from Jie Yang.

    - ACPI video updates related to backlight handling from Hans de Goede
    and Linus Torvalds.

    - Preliminary changes needed to support ACPI on ARM from Hanjun Guo
    and Graeme Gregory.

    - ACPI PNP core cleanups from Arjun Sreedharan and Zhang Rui.

    - Cleanups related to ACPI_COMPANION() and ACPI_HANDLE() macros
    (Rafael J Wysocki).

    - ACPI-based device hotplug cleanups from Wei Yongjun and Rafael J
    Wysocki.

    - Cleanups and improvements related to system suspend from Lan
    Tianyu, Randy Dunlap and Rafael J Wysocki.

    - ACPI battery cleanup from Wei Yongjun.

    - cpufreq core fixes from Viresh Kumar.

    - Elimination of a deadband effect from the cpufreq ondemand governor
    and intel_pstate driver cleanups from Stratos Karafotis.

    - 350MHz CPU support for the powernow-k6 cpufreq driver from Mikulas
    Patocka.

    - Fix for the imx6 cpufreq driver from Anson Huang.

    - cpuidle core and governor cleanups from Daniel Lezcano, Sandeep
    Tripathy and Mohammad Merajul Islam Molla.

    - Build fix for the big_little cpuidle driver from Sachin Kamat.

    - Configuration fix for the Operation Performance Points (OPP)
    framework from Mark Brown.

    - APM cleanup from Jean Delvare.

    - cpupower utility fixes and cleanups from Peter Senna Tschudin,
    Andrey Utkin, Himangi Saraogi, Rickard Strandqvist, Thomas
    Renninger"

    * tag 'pm+acpi-3.17-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm: (118 commits)
    ACPI / LPSS: add LPSS device for Wildcat Point PCH
    ACPI / PNP: Replace faulty is_hex_digit() by isxdigit()
    ACPICA: Update version to 20140724.
    ACPICA: ACPI 5.1: Update for PCCT table changes.
    ACPICA/ARM: ACPI 5.1: Update for GTDT table changes.
    ACPICA/ARM: ACPI 5.1: Update for MADT changes.
    ACPICA/ARM: ACPI 5.1: Update for FADT changes.
    ACPICA: ACPI 5.1: Support for the _CCA predifined name.
    ACPICA: ACPI 5.1: New notify value for System Affinity Update.
    ACPICA: ACPI 5.1: Support for the _DSD predefined name.
    ACPICA: Debug object: Add current value of Timer() to debug line prefix.
    ACPICA: acpihelp: Add UUID support, restructure some existing files.
    ACPICA: Utilities: Fix local printf issue.
    ACPICA: Tables: Update for DMAR table changes.
    ACPICA: Remove some extraneous printf arguments.
    ACPICA: Update for comments/formatting. No functional changes.
    ACPICA: Disassembler: Add support for the ToUUID opererator (macro).
    ACPICA: Remove a redundant cast to acpi_size for ACPI_OFFSET() macro.
    ACPICA: Work around an ancient GCC bug.
    ACPI / processor: Make it possible to get local x2apic id via _MAT
    ...

    Linus Torvalds
     
  • Pull power supply changes from Sebastian Reichel:
    - Added iPaq h3xxx battery driver
    - Added Broadcom STB reset driver
    - DT support for rx51-battery
    - misc. fixes

    * tag 'for-v3.17' of git://git.infradead.org/battery-2.6:
    ipaq_micro_battery: fix sparse non static symbol warning
    power: add driver for battery reading on iPaq h3xxx
    power: twl4030_charger: detect battery presence prior to enabling charger
    power: reset: Add reboot driver for brcmstb
    power_supply: Fix sparse non static symbol warning
    power_supply: Add inlmt,iterm, min/max temp props
    charger: tps65090: Allow charger module to be used when no irq
    power/reset: Fix GPL v2 license string typo
    power: poweroff: gpio: convert to use descriptors
    bq27000: report missing device better.
    bq27x00_battery: Introduce the use of the managed version of kzalloc
    Documentation: DT: Document rx51-battery binding
    rx51_battery: convert to iio consumer
    bq2415x_charger: Fix Atomic Sleep Bug

    Linus Torvalds
     

26 Jul, 2014

1 commit

  • Add helper functions that allow regulator consumers to obtain low-level
    details about the regulator hardware, like the voltage selector register
    address and such. These details can be useful when configuring hardware
    or firmware that want to do low-level access to regulators, with no
    involvement from the kernel.

    The use-case for Tegra is a voltage-controlled oscillator clocksource
    which has control logic to change the supply voltage via I2C to achieve
    a desired output clock rate.

    Signed-off-by: Tuomas Tynkkynen
    Signed-off-by: Mark Brown

    Tuomas Tynkkynen
     

23 Jul, 2014

1 commit

  • Since the OPP layer is a kernel library which has been converted to be
    directly selectable by its callers rather than user selectable and
    requiring architectures to enable it explicitly the ARCH_HAS_OPP symbol
    has become redundant and can be removed. Do so.

    Signed-off-by: Mark Brown
    Reviewed-by: Viresh Kumar
    Acked-by: Nishanth Menon
    Acked-by: Rob Herring
    Acked-by: Shawn Guo
    Acked-by: Simon Horman
    Signed-off-by: Rafael J. Wysocki

    Mark Brown
     

19 Jul, 2014

1 commit

  • Add new power supply properties for input current, charge termination
    current, min and max temperature

    POWER_SUPPLY_PROP_TEMP_MIN - minimum operatable temperature
    POWER_SUPPLY_PROP_TEMP_MAX - maximum operatable temperature

    POWER_SUPPLY_PROP_INPUT_CURRENT_LIMIT - input current limit programmed
    by charger. Indicates the input current for a charging source.

    POWER_SUPPLY_PROP_CHARGE_TERM_CURRENT - Charge termination current used
    to detect the end of charge condition

    Signed-off-by: Jenny TC
    Acked-by: Pavel Machek
    Signed-off-by: Sebastian Reichel

    Jenny TC
     

10 Jun, 2014

1 commit


04 Jun, 2014

2 commits

  • * pm-cpufreq: (28 commits)
    cpufreq: handle calls to ->target_index() in separate routine
    cpufreq: s5pv210: drop check for CONFIG_PM_VERBOSE
    cpufreq: intel_pstate: Remove unused member name of cpudata
    cpufreq: Break out early when frequency equals target_freq
    cpufreq: Tegra: drop wrapper around tegra_update_cpu_speed()
    cpufreq: imx6q: Remove unused include
    cpufreq: imx6q: Drop devm_clk/regulator_get usage
    cpufreq: powernow-k8: Suppress checkpatch warnings
    cpufreq: powernv: make local function static
    cpufreq: Enable big.LITTLE cpufreq driver on arm64
    cpufreq: nforce2: remove DEFINE_PCI_DEVICE_TABLE macro
    intel_pstate: Add CPU IDs for Broadwell processors
    cpufreq: Fix build error on some platforms that use cpufreq_for_each_*
    PM / OPP: Move cpufreq specific OPP functions out of generic OPP library
    PM / OPP: Remove cpufreq wrapper dependency on internal data organization
    cpufreq: Catch double invocations of cpufreq_freq_transition_begin/end
    intel_pstate: Remove sample parameter in intel_pstate_calc_busy
    cpufreq: Kconfig: Fix spelling errors
    cpufreq: Make linux-pm@vger.kernel.org official mailing list
    cpufreq: exynos: Use dev_err/info function instead of pr_err/info
    ...

    Rafael J. Wysocki
     
  • * pnp:
    MAINTAINERS: Remove Bjorn Helgaas as PNP maintainer
    PNP / resources: remove positive test on unsigned values

    * powercap:
    powercap / RAPL: add new CPU IDs
    powercap / RAPL: further relax energy counter checks

    * pm-runtime:
    PM / runtime: Update documentation to reflect the current code flow

    * pm-opp:
    PM / OPP: discard duplicate OPPs
    PM / OPP: Make OPP invisible to users in Kconfig
    PM / OPP: fix incorrect OPP count handling in of_init_opp_table

    Rafael J. Wysocki