17 Apr, 2013

3 commits


07 Mar, 2013

2 commits


21 Feb, 2013

1 commit

  • Pull battery updates from Anton Vorontsov:
    "Four new drivers:

    - goldfish_battery:

    This is Android Emulator battery driver. Originally from Google,
    but Intel folks reshaped it for mainline

    - pm2301_charger:

    A new driver for ST-Ericsson 2301 Power Management chip, uses
    AB8500 battery management core

    - qnap-poweroff:

    The driver adds poweroff functionality for QNAP NAS boxes

    - restart-poweroff:

    A generic driver that implements 'power off by restarting'. The
    actual poweroff functionality is implemented through a bootloader,
    so Linux' task is just to restart the box. The driver is useful on
    Buffalo Linkstation LS-XHL and LS-CHLv2 boards. Andrew Lunn worked
    on submitting the driver (as well as qnap-poweroff above).

    Additionally:

    - A lot of fixes for ab8500 drivers. This is a part of efforts of
    syncing internal ST-Ericsson development tree with the mainline.
    Lee Jones @ Linaro worked on compilation and reshaping these
    series.

    - New health properties for the power supplies: "Watchdog timer
    expire" and "Safety timer expire"

    - As usual, a bunch of fixes/cleanups here and there"

    * tag 'for-v3.9' of git://git.infradead.org/battery-2.6: (81 commits)
    bq2415x_charger: Add support for offline and 100mA mode
    generic-adc-battery: Fix forever loop in gab_remove()
    goldfish_battery: Add missing GENERIC_HARDIRQS dependency
    da9030_battery: Include notifier.h
    bq27x00_battery: Fix reporting battery temperature
    power/reset: Remove newly introduced __dev* annotations
    lp8727_charger: Small cleanup in naming
    ab8500_btemp: Demote initcall sequence
    ds2782_battery: Add power_supply_changed() calls for proper uevent support
    power: Add battery driver for goldfish emulator
    u8500-charger: Delay for USB enumeration
    ab8500-bm: Remove individual [charger|btemp|fg|chargalg] pdata structures
    ab8500-charger: Do not touch VBUSOVV bits
    ab8500-fg: Use correct battery charge full design
    pm2301: LPN mode control support
    pm2301: Enable vbat low monitoring
    ab8500-bm: Flush all work queues before suspending
    ab8500-fg: Go to INIT_RECOVERY when charger removed
    ab8500-charger: Add support for autopower on AB8505 and AB9540
    abx500-chargalg: Add new sysfs interface to get current charge status
    ...

    Fix up fairly straightforward conflicts in the ab8500 driver. But since
    it seems to be ARM-specific, I can't even compile-test the result..

    Linus Torvalds
     

16 Jan, 2013

1 commit

  • Today the battery recharge is determined with a voltage threshold. This
    voltage threshold is only valid when the battery is relaxed. In charging
    algorithm the voltage read is the loaded battery voltage and no
    compensation is done to get the relaxed voltage. When maintenance
    charging is not selected, this makes the recharging condition to almost
    immediately activate when there is a discharge present on the battery.

    Depending on which vendor the battery comes from this behavior can wear
    out the battery much faster than normal.

    The fuelgauge driver is responsible to monitor the actual battery
    capacity and is able to estimate the remaining capacity. It is better to
    use the remaining capacity as a limit to determine when battery should
    be recharged.

    Signed-off-by: Lee Jones
    Signed-off-by: Marcus Cooper
    Reviewed-by: Hakan BERG
    Reviewed-by: Jonas ABERG
    Signed-off-by: Anton Vorontsov

    Marcus Cooper
     

04 Jan, 2013

1 commit

  • CONFIG_HOTPLUG is going away as an option. As a result, the __dev*
    markings need to be removed.

    This change removes the use of __devinit, __devexit_p, __devinitconst,
    and __devexit from these drivers.

    Based on patches originally written by Bill Pemberton, but redone by me
    in order to handle some of the coding style issues better, by hand.

    Cc: Bill Pemberton
    Cc: Anton Vorontsov
    Cc: David Woodhouse
    Cc: Andrew Lunn
    Cc: Jamie Lentin
    Cc: Jason Cooper
    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     

11 Dec, 2012

6 commits

  • Let's rename the Device Tree node which contains information about
    an attached battery to something more easily readable.

    Signed-off-by: Lee Jones

    Lee Jones
     
  • Currently the AB8500 battery management subsystem receives platform
    specific information via two different means depending on how the
    platform is booted. If DT is not enabled, a reference to a *_bm_data
    data structure containing each platform specific attribute is passed
    though platform_data. However, if DT is enabled, then platform_data
    is empty and the reference is gained though a DT specific probe
    function. There are two issues here 1) the same reference is
    being collected each time and 2) the DT way doesn't allow any
    provisions to select different platform specific attributes, which
    kind of defeats the object.

    Cc: Samuel Ortiz
    Signed-off-by: Lee Jones

    Lee Jones
     
  • The platform specific battery management configuration data structure
    is currently called 'bat' short for 'battery'; however, it contains
    information for all components of the battery management group, rather
    than information pertaining to the battery itself - there are other
    structures for that. So, in keeping with its structure namesake
    'abx500_bm_data', we rename it to 'bm' here. Using similar logic,
    we're also renaming 'bmdevs_of_probe' to the more device specific
    'ab8500_bm_of_probe'.

    Signed-off-by: Lee Jones

    Lee Jones
     
  • We can actually write bmdevs_of_probe to be easier to follow, use
    less lines of code and we can even render a variable unused so
    that we can remove it completely.

    Signed-off-by: Lee Jones

    Lee Jones
     
  • Simple patch to rectify incorrect tabbing. Also adds some
    coding style clean-ups to make it easier to read.

    Signed-off-by: Lee Jones

    Lee Jones
     
  • property, battery-type shall be one of supported technology type
    instead blank
    - refer: Documentation/devicetree/bindings/power_supply/ab8500/fg.txt
    for the list supported types
    - this patch appends to ab8500 bm devs DT binding patch set
    ref: commit-id e0f1abeba5c2d8a2183566717d99294fd1a29c2e
    git://git.infradead.org/battery-2.6.git
    - promote ab8500_fg probe to happen before ab8500_btemp probe as
    btemp driver depends on fuelgauge list,
    ref: ab8500_fg_get(...)

    Signed-off-by: Rajanikanth H.V

    Rajanikanth H.V
     

19 Nov, 2012

2 commits