From: Eduardo Valentin <edubezval@gmail.com>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Jiri Slaby <jslaby@suse.com>, Fabio Stevam <festevam@gmail.com>
Cc: Linux PM <linux-pm@vger.kernel.org>,
Eduardo Valentin <edubezval@gmail.com>
Subject: [PATCH 0/8] serial: imx: rework pm support and add runtime pm
Date: Sun, 9 Aug 2015 11:19:01 -0700 [thread overview]
Message-ID: <1439144349-10494-1-git-send-email-edubezval@gmail.com> (raw)
Hello,
This is a patch series to introduce runtime pm in the imx serial driver.
The work is pretty straight forward. The idea is to get runtime pm
to handle ipg and per clocks, idling the device when possible,
configuring wakeups, and saving and restoring context when needed.
A minor refactoring was needed to get things done. Mainly because
the suspend and resume path shares several needed steps with
the runtime pm path. Therefore, several common helper functions
were created to avoid code duplication between these two pm features.
On top of this, I am also adding a simple pm qos requirement. The idea
is to skip deeper c-states when we know the uart port is going to have
latency requirements. The latency is computed based on baud rate and
buffer size.
Most of the code is a design copy of existing serial drivers.
This code has been tested with IMX6SL, mainly with UART1 used as console.
Comments and suggestions of improvements are welcome.
BR,
Eduardo Valentin (8):
serial: imx: remove unbalanced clk_prepare
serial: imx: introduce serial_imx_enable_wakeup()
serial: imx: allow waking up on RTSD
serial: imx: use dev_pm_ops
serial: imx: save and restore context in the suspend path
serial: imx: add a flag to indicate we are in the suspend path
serial: imx: add runtime pm support
serial: imx: add pm_qos request
drivers/tty/serial/imx.c | 342 ++++++++++++++++++++++++++++++++++++++---------
1 file changed, 276 insertions(+), 66 deletions(-)
--
2.5.0
next reply other threads:[~2015-08-09 18:19 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-09 18:19 Eduardo Valentin [this message]
2015-08-09 18:19 ` [PATCH 1/8] serial: imx: remove unbalanced clk_prepare Eduardo Valentin
2015-08-09 18:19 ` [PATCH 2/8] serial: imx: introduce serial_imx_enable_wakeup() Eduardo Valentin
2015-08-09 18:19 ` [PATCH 3/8] serial: imx: allow waking up on RTSD Eduardo Valentin
2015-08-09 18:19 ` [PATCH 4/8] serial: imx: use dev_pm_ops Eduardo Valentin
2015-08-09 18:19 ` [PATCH 5/8] serial: imx: save and restore context in the suspend path Eduardo Valentin
2015-08-10 3:30 ` Fabio Estevam
2015-08-10 4:04 ` Eduardo Valentin
2015-08-10 12:17 ` Fabio Estevam
2015-08-10 23:50 ` Eduardo Valentin
2015-08-09 18:19 ` [PATCH 6/8] serial: imx: add a flag to indicate we are " Eduardo Valentin
2015-08-09 18:19 ` [PATCH 7/8] serial: imx: add runtime pm support Eduardo Valentin
2015-08-09 18:19 ` [PATCH 8/8] serial: imx: add pm_qos request Eduardo Valentin
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=1439144349-10494-1-git-send-email-edubezval@gmail.com \
--to=edubezval@gmail.com \
--cc=festevam@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=jslaby@suse.com \
--cc=linux-pm@vger.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).