20 Feb, 2019

4 commits


13 Feb, 2019

1 commit

  • In remove(), use cancel_delayed_work_sync() to cancel the
    delayed work. Otherwise there's a chance that this work
    will continue to run until after the device has been removed.

    While we're here, fix the deallocation order in remove(),
    to correspond to the inverse of the probe() allocation
    order. This guarantees that any remaining work can run
    to completion with all driver structures still intact.

    This issue was detected with the help of Coccinelle.

    Signed-off-by: Sven Van Asbroeck
    Signed-off-by: Sebastian Reichel

    Sven Van Asbroeck
     

24 Jan, 2019

4 commits


22 Jan, 2019

1 commit


21 Jan, 2019

11 commits


29 Dec, 2018

2 commits

  • Pull power supply and reset updates from Sebastian Reichel:

    - New core support:
    - battery internal resistance
    - battery OCV capacity lookup table
    - support for custom sysfs attributes

    - Convert all drivers to use power-supply core support for custom sysfs
    attributes

    - bq24190-charger: bq24196 support

    - axp20x-charger: AXP813 support

    - sc27xx-battery: new fuel gauge driver

    - gpio-poweroff: support for specific active and inactive delays

    - Misc fixes

    * tag 'for-v4.21' of git://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-power-supply: (53 commits)
    power: supply: bq25890: fix BAT_COMP field definition
    power: supply: gpio-charger: Do not use deprecated POWER_SUPPLY_TYPE_USB_*
    power: supply: ds2781: switch to devm_power_supply_register
    power: supply: ds2780: switch to devm_power_supply_register
    power: supply: ds2781: fix race-condition in bin attribute registration
    power: supply: ds2780: fix race-condition in bin attribute registration
    power: supply: pcf50633: fix race-condition in sysfs registration
    power: supply: charger-manager: fix race-condition in sysfs registration
    power: supply: charger-manager: simplify generation of sysfs attribute group name
    power: supply: bq24257: fix race-condition in sysfs registration
    power: supply: bq24190_charger: fix race-condition in sysfs registration
    power: supply: lp8788: fix race-condition in sysfs registration
    power: supply: ds2781: fix race-condition in sysfs registration
    power: supply: ds2780: fix race-condition in sysfs registration
    power: supply: bq2415x: fix race-condition in sysfs registration
    power: supply: core: add support for custom sysfs attributes
    power: supply: sc27xx: Save last battery capacity
    power: reset: at91-poweroff: move shdwc related data to one structure
    power: supply: sc27xx: Add suspend/resume interfaces
    power: supply: sc27xx: Add fuel gauge low voltage alarm
    ...

    Linus Torvalds
     
  • Pull Devicetree updates from Rob Herring:
    "The biggest highlight here is the start of using json-schema for DT
    bindings. Being able to validate bindings has been discussed for years
    with little progress.

    - Initial support for DT bindings using json-schema language. This is
    the start of converting DT bindings from free-form text to a
    structured format.

    - Reworking of initrd address initialization. This moves to using the
    phys address instead of virt addr in the DT parsing code. This
    rework was motivated by CONFIG_DEV_BLK_INITRD causing unnecessary
    rebuilding of lots of files.

    - Fix stale phandle entries in phandle cache

    - DT overlay validation improvements. This exposed several memory
    leak bugs which have been fixed.

    - Use node name and device_type helper functions in DT code

    - Last remaining conversions to using %pOFn printk specifier instead
    of device_node.name directly

    - Create new common RTC binding doc and move all trivial RTC devices
    out of trivial-devices.txt.

    - New bindings for Freescale MAG3110 magnetometer, Cadence Sierra
    PHY, and Xen shared memory

    - Update dtc to upstream version v1.4.7-57-gf267e674d145"

    * tag 'devicetree-for-4.21' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux: (68 commits)
    of: __of_detach_node() - remove node from phandle cache
    of: of_node_get()/of_node_put() nodes held in phandle cache
    gpio-omap.txt: add reg and interrupts properties
    dt-bindings: mrvl,intc: fix a trivial typo
    dt-bindings: iio: magnetometer: add dt-bindings for freescale mag3110
    dt-bindings: Convert trivial-devices.txt to json-schema
    dt-bindings: arm: mrvl: amend Browstone compatible string
    dt-bindings: arm: Convert Tegra board/soc bindings to json-schema
    dt-bindings: arm: Convert ZTE board/soc bindings to json-schema
    dt-bindings: arm: Add missing Xilinx boards
    dt-bindings: arm: Convert Xilinx board/soc bindings to json-schema
    dt-bindings: arm: Convert VIA board/soc bindings to json-schema
    dt-bindings: arm: Convert ST STi board/soc bindings to json-schema
    dt-bindings: arm: Convert SPEAr board/soc bindings to json-schema
    dt-bindings: arm: Convert CSR SiRF board/soc bindings to json-schema
    dt-bindings: arm: Convert QCom board/soc bindings to json-schema
    dt-bindings: arm: Convert TI nspire board/soc bindings to json-schema
    dt-bindings: arm: Convert TI davinci board/soc bindings to json-schema
    dt-bindings: arm: Convert Calxeda board/soc bindings to json-schema
    dt-bindings: arm: Convert Altera board/soc bindings to json-schema
    ...

    Linus Torvalds
     

18 Dec, 2018

1 commit


13 Dec, 2018

15 commits


12 Dec, 2018

1 commit