linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/8] serial: imx: rework pm support and add runtime pm
@ 2015-08-09 18:19 Eduardo Valentin
  2015-08-09 18:19 ` [PATCH 1/8] serial: imx: remove unbalanced clk_prepare Eduardo Valentin
                   ` (7 more replies)
  0 siblings, 8 replies; 13+ messages in thread
From: Eduardo Valentin @ 2015-08-09 18:19 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Jiri Slaby, Fabio Stevam; +Cc: Linux PM, Eduardo Valentin

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


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2015-08-10 23:51 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-09 18:19 [PATCH 0/8] serial: imx: rework pm support and add runtime pm Eduardo Valentin
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

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).