From: Benjamin Gaignard <benjamin.gaignard@st.com>
To: rafael.j.wysocki@intel.com, dmitry.torokhov@gmail.com,
robh+dt@kernel.org, mark.rutland@arm.com, hadess@hadess.net,
frowand.list@gmail.com, m.felsch@pengutronix.de, agx@sigxcpu.org,
arnd@arndb.de
Cc: linux-input@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org,
linux-stm32@st-md-mailman.stormreply.com, broonie@kernel.org,
Benjamin Gaignard <benjamin.gaignard@st.com>
Subject: [PATCH v2 0/5] Add of_device_link_add() functions
Date: Wed, 15 May 2019 15:11:49 +0200 [thread overview]
Message-ID: <20190515131154.18373-1-benjamin.gaignard@st.com> (raw)
It may happen that we need to ensure the order of suspend/resume
calls between two devices without obvious link.
It is for example the case on some boards where both panel and touchscreen
are sharing the same reset line. In this case we need to control which
device is going in resume first to do only one reset.
An other example is make sure that GPU is suspend before composition
hardware block to avoid pending drawing requests.
To not let everybody creating relationship between devices for free
of_device_links_add() has to be called by each driver and not in the core.
version 2:
- only keep of_device_links_add() and use
DL_FLAG_PM_RUNTIME and DL_FLAG_AUTOREMOVE_CONSUMER flags to follow Rafael
advices
- reword function description
- try to use a more explicit property name
- rebase on v5.1
Benjamin Gaignard (5):
of/device: Add of_device_link_add function
Input: edt-ft5x06: Document suspend-dependencies property
input: edt-ft5x06 - Call of_device_links_add() to create links
Input: goodix: Document suspend-dependencies property
input: goodix - Call of_device_links_add() to create links
.../bindings/input/touchscreen/edt-ft5x06.txt | 2 ++
.../bindings/input/touchscreen/goodix.txt | 2 ++
drivers/input/touchscreen/edt-ft5x06.c | 2 ++
drivers/input/touchscreen/goodix.c | 3 ++
drivers/of/device.c | 37 ++++++++++++++++++++++
include/linux/of_device.h | 7 ++++
6 files changed, 53 insertions(+)
--
2.15.0
next reply other threads:[~2019-05-15 13:11 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-15 13:11 Benjamin Gaignard [this message]
2019-05-15 13:11 ` [PATCH v2 1/5] of/device: Add of_device_link_add function Benjamin Gaignard
2019-05-15 13:11 ` [PATCH v2 2/5] Input: edt-ft5x06: Document suspend-dependencies property Benjamin Gaignard
2019-05-15 13:11 ` [PATCH v2 3/5] input: edt-ft5x06 - Call of_device_links_add() to create links Benjamin Gaignard
2019-05-15 13:11 ` [PATCH v2 4/5] Input: goodix: Document suspend-dependencies property Benjamin Gaignard
2019-05-15 13:11 ` [PATCH v2 5/5] input: goodix - Call of_device_links_add() to create links Benjamin Gaignard
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=20190515131154.18373-1-benjamin.gaignard@st.com \
--to=benjamin.gaignard@st.com \
--cc=agx@sigxcpu.org \
--cc=arnd@arndb.de \
--cc=broonie@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dmitry.torokhov@gmail.com \
--cc=frowand.list@gmail.com \
--cc=hadess@hadess.net \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-stm32@st-md-mailman.stormreply.com \
--cc=m.felsch@pengutronix.de \
--cc=mark.rutland@arm.com \
--cc=rafael.j.wysocki@intel.com \
--cc=robh+dt@kernel.org \
/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).