mbox series

[v11,0/2] add power control in i2c and at24

Message ID 20200130051128.14878-1-bibby.hsieh@mediatek.com
Headers show
Series add power control in i2c and at24 | expand

Message

Bibby Hsieh Jan. 30, 2020, 5:11 a.m. UTC
Although in the most platforms, the power of eeprom and i2c are alway on,
some platforms disable the eeprom and i2c power in order to meet low power request.
This patch add the pm_runtime ops to control power to support all platforms.

Changes since v10:
 - fixup some worng codes

Changes since v9:
 - fixup build error
 - remove redundant code

Changes since v8:
 - fixup some wrong code
 - remove redundant message

Changes since v7:
 - add binding describe supply property in i2c and at24.
 - move i2c bus supply control in i2c-core.
 - rebase onto v5.5-rc1

Changes since v6:
 - add back error check for devm_regulator_bulk_get()

        [... snip ...]

Bibby Hsieh (2):
  dt-binding: i2c: add bus-supply property
  i2c: core: support bus regulator controlling in adapter

 Documentation/devicetree/bindings/i2c/i2c.txt |  3 +
 drivers/i2c/i2c-core-base.c                   | 81 +++++++++++++++++++
 include/linux/i2c.h                           |  2 +
 3 files changed, 86 insertions(+)