From: Bibby Hsieh <bibby.hsieh@mediatek.com>
To: Wolfram Sang <wsa@the-dreams.de>,
Bartosz Golaszewski <bgolaszewski@baylibre.com>,
<linux-i2c@vger.kernel.org>
Cc: <tfiga@chromium.org>, <drinkcat@chromium.org>,
<srv_heupstream@mediatek.com>, <robh+dt@kernel.org>,
<mark.rutland@arm.com>, <devicetree@vger.kernel.org>,
Bibby Hsieh <bibby.hsieh@mediatek.com>
Subject: [PATCH v9 0/4] add power control in i2c and at24
Date: Mon, 16 Dec 2019 16:04:41 +0800 [thread overview]
Message-ID: <20191216080445.8747-1-bibby.hsieh@mediatek.com> (raw)
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 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()
Changes since v5:
- remove has_supplies
Changes since v4:
- add system sleep PM ops
- move regulator_bulk_disable before suspend()
- fixes error handling
Changes since v3:
- remove redundant calling function
- change SIMPLE_DEV_PM_OPS to SET_RUNTIME_PM_OPS
- change supply name
Changes since v2:
- rebase onto v5.4-rc1
- pm_runtime_disable and regulator_bulk_disable at
err return in probe function
Changes since v1:
- remove redundant code
- fixup coding style
Bibby Hsieh (4):
dt-binding: eeprom: at24: add vcc-supply property
dt-binding: i2c: add bus-supply property
misc: eeprom: at24: support pm_runtime control
i2c: core: support bus regulator controlling in adapter
.../devicetree/bindings/eeprom/at24.yaml | 4 ++
Documentation/devicetree/bindings/i2c/i2c.txt | 3 +
drivers/i2c/i2c-core-base.c | 65 +++++++++++++++++++
drivers/misc/eeprom/at24.c | 38 +++++++++++
include/linux/i2c.h | 3 +
5 files changed, 113 insertions(+)
--
2.18.0
next reply other threads:[~2019-12-16 8:04 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-12-16 8:04 Bibby Hsieh [this message]
2019-12-16 8:04 ` [PATCH v9 1/4] dt-binding: eeprom: at24: add vcc-supply property Bibby Hsieh
2019-12-16 8:04 ` [PATCH v9 2/4] dt-binding: i2c: add bus-supply property Bibby Hsieh
2019-12-18 14:47 ` Rob Herring
2019-12-16 8:04 ` [PATCH v9 3/4] misc: eeprom: at24: support pm_runtime control Bibby Hsieh
2019-12-19 10:50 ` Bartosz Golaszewski
2020-01-06 7:09 ` Bibby Hsieh
2019-12-16 8:04 ` [PATCH v9 4/4] i2c: core: support bus regulator controlling in adapter Bibby Hsieh
2019-12-16 11:58 ` Tomasz Figa
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20191216080445.8747-1-bibby.hsieh@mediatek.com \
--to=bibby.hsieh@mediatek.com \
--cc=bgolaszewski@baylibre.com \
--cc=devicetree@vger.kernel.org \
--cc=drinkcat@chromium.org \
--cc=linux-i2c@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=robh+dt@kernel.org \
--cc=srv_heupstream@mediatek.com \
--cc=tfiga@chromium.org \
--cc=wsa@the-dreams.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).