1. 01 May, 2019 4 commits
    • Nick Crews's avatar
      power: supply: core: Add CHARGE_CONTROL_{START_THRESHOLD,END_THRESHOLD} properties · 813cab8f
      Nick Crews authored
      Add POWER_SUPPLY_PROP_CHARGE_CONTROL_START_THRESHOLD
      and POWER_SUPPLY_PROP_CHARGE_CONTROL_END_THRESHOLD properties, to expand
      the existing CHARGE_CONTROL_* properties. I am adding them in order
      to support a new Chrome OS device, but these properties should be
      general enough that they can be used on other devices.
      
      When the charge_type is "Custom", the charge controller uses the
      POWER_SUPPLY_PROP_CHARGE_CONTROL_* properties as configuration for some
      other algorithm. For example, in the use case that I am supporting,
      this means the battery begins charging when the percentage
      level drops below POWER_SUPPLY_PROP_CHARGE_CONTROL_START_THRESHOLD and
      charging ceases when the percentage level goes above
      POWER_SUPPLY_PROP_CHARGE_CONTROL_END_THRESHOLD.
      
      v5 changes:
      - Add the other missing CHARGE_CONTROL_* properties documentation in
        a separate commit
      - Split up adding the charge types and adding the
        POWER_SUPPLY_PROP_CHARGE_CONTROL_START_THRESHOLD and
        POWER_SUPPLY_PROP_CHARGE_CONTROL_END_THRESHOLD properties into
        two different commits.
      v4 changes:
      - Add documentation for the new properties, and add documentation for
        the the previously missing charge_control_limit and
        charge_control_limit_max properties.
      Signed-off-by: default avatarNick Crews <ncrews@chromium.org>
      Reviewed-by: default avatarEnric Balletbo i Serra <enric.balletbo@collabora.com>
      Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.com>
      813cab8f
    • Nick Crews's avatar
      power: supply: core: Add Standard, Adaptive, and Custom charge types · ba6cc850
      Nick Crews authored
      Add "Standard", "Adaptive", and "Custom" modes to the charge_type
      property, to expand the existing "Trickle" and "Fast" modes.
      I am adding them in order to support a new Chrome OS device,
      but these properties should be general enough that they can be
      used on other devices.
      
      The meaning of "Standard" is obvious, but "Adaptive" and "Custom" are
      more tricky: "Adaptive" means that the charge controller uses some
      custom algorithm to change the charge type automatically, with no
      configuration needed. "Custom" means that the charge controller uses the
      POWER_SUPPLY_PROP_CHARGE_CONTROL_* properties as configuration for some
      other algorithm.
      
      v5 changes:
      - Split up adding the charge types and adding the
        POWER_SUPPLY_PROP_CHARGE_CONTROL_START_THRESHOLD and
        POWER_SUPPLY_PROP_CHARGE_CONTROL_END_THRESHOLD properties into
        two different commits.
      v4 changes:
      - Add documentation for the new properties, and add documentation for
        the the previously missing charge_control_limit and
        charge_control_limit_max properties.
      Signed-off-by: default avatarNick Crews <ncrews@chromium.org>
      Reviewed-by: default avatarEnric Balletbo i Serra <enric.balletbo@collabora.com>
      Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.com>
      ba6cc850
    • Hans de Goede's avatar
      power: supply: axp288_fuel_gauge: Add ACEPC T8 and T11 mini PCs to the blacklist · 9274c783
      Hans de Goede authored
      The ACEPC T8 and T11 Cherry Trail Z8350 mini PCs use an AXP288 and as PCs,
      rather then portables, they does not have a battery. Still for some
      reason the AXP288 not only thinks there is a battery, it actually
      thinks it is discharging while the PC is running, slowly going to
      0% full, causing userspace to shutdown the system due to the battery
      being critically low after a while.
      
      This commit adds the ACEPC T8 and T11 to the axp288 fuel-gauge driver
      blacklist, so that we stop reporting bogus battery readings on this device.
      
      BugLink: https://bugzilla.redhat.com/show_bug.cgi?id=1690852
      Cc: stable@vger.kernel.org
      Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
      Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.com>
      9274c783
    • Krzysztof Kozlowski's avatar
      power: supply: bq27xxx_battery: Notify also about status changes · 243f8ffc
      Krzysztof Kozlowski authored
      User-space might be interested in receiving uevents when the charging
      starts/stops or if conditions of battery changes (e.g.
      over-temperature).  Notify about changes in battery also when the flags
      change, not only SoC.
      Signed-off-by: default avatarKrzysztof Kozlowski <krzk@kernel.org>
      Reviewed-by: default avatarPali Rohár <pali.rohar@gmail.com>
      Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.com>
      243f8ffc
  2. 18 Apr, 2019 14 commits
  3. 17 Apr, 2019 7 commits
  4. 15 Apr, 2019 10 commits
  5. 14 Apr, 2019 2 commits
  6. 09 Apr, 2019 3 commits