Skip to content

RFC Runtime PM fixes for omap-ssi

Sebastian Reichel linux-omap lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest19 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/19HSI: omap_ssi_port: remove useless newlinedrivers/hsi/controllers/omap_ssi_port.c+2 -40 replies
2/19HSI: omap_ssi: do not reset moduledrivers/hsi/controllers/omap_ssi.h drivers/hsi/controllers/omap_ssi_core.c+1 -201 reply
3/19HSI: ssi_protocol: avoid ssi_waketest call with held spinlockdrivers/hsi/clients/ssi_protocol.c+25 -160 replies
4/19HSI: ssi_protocol: replace spin_lock with spin_lock_bhdrivers/hsi/clients/ssi_protocol.c+32 -320 replies
5/19HSI: ssi_protocol: fix ssip_xmit invocationdrivers/hsi/clients/ssi_protocol.c+12 -10 replies
6/19HSI: omap_ssi: convert cawake irq handler to threaddrivers/hsi/controllers/omap_ssi.h drivers/hsi/controllers/omap_ssi_core.c drivers/hsi/controllers/omap_ssi_port.c+8 -190 replies
7/19HSI: omap_ssi_port: replace wkin_cken with atomic bitmap operationsdrivers/hsi/controllers/omap_ssi.h drivers/hsi/controllers/omap_ssi_port.c+7 -150 replies
8/19HSI: core: switch port event notifier from atomic to blockingdrivers/hsi/hsi_core.c include/linux/hsi/hsi.h+5 -50 replies
9/19HSI: omap_ssi_port: prepare start_tx/stop_tx for blocking pm_runtime callsdrivers/hsi/controllers/omap_ssi.h drivers/hsi/controllers/omap_ssi_port.c+20 -50 replies
10/19HSI: omap_ssi_core: use pm_runtime_put instead of pm_runtime_put_syncdrivers/hsi/controllers/omap_ssi_core.c+5 -50 replies
11/19HSI: omap_ssi_core: remove pm_runtime_get_sync call from taskletdrivers/hsi/controllers/omap_ssi_core.c+7 -10 replies
12/19HSI: omap_ssi_port: switch to threaded pio irqdrivers/hsi/controllers/omap_ssi.h drivers/hsi/controllers/omap_ssi_port.c+24 -380 replies
13/19HSI: omap_ssi_port: avoid pm_runtime_get_sync in ssi_start_dma and ssi_start_piodrivers/hsi/controllers/omap_ssi_port.c+24 -60 replies
14/19HSI: omap_ssi_port: avoid calling runtime_pm_*_sync inside spinlockdrivers/hsi/controllers/omap_ssi_port.c+4 -40 replies
15/19HSI: omap_ssi_port: replace pm_runtime_put_sync with non-sync variantdrivers/hsi/controllers/omap_ssi_port.c+9 -90 replies
16/19HSI: omap_ssi_port: ensure clocks are kept enabled during transferdrivers/hsi/controllers/omap_ssi_port.c+2 -00 replies
17/19HSI: omap_ssi: call msg->complete() from process contextdrivers/hsi/controllers/omap_ssi.h drivers/hsi/controllers/omap_ssi_core.c drivers/hsi/controllers/omap_ssi_port.c+25 -10 replies
18/19HSI: omap_ssi_port: use rpm autosuspend APIdrivers/hsi/controllers/omap_ssi_port.c+44 -240 replies
19/19HSI: omap_ssi: drop pm_runtime_irq_safedrivers/hsi/controllers/omap_ssi_core.c drivers/hsi/controllers/omap_ssi_port.c+0 -31 reply

Reviews trailers per patch

2 of 19 patches have a Reviewed-by or Acked-by.

PatchPavel MachekTony Lindgren
SeriesT-b
1/19
2/19A-b
3/19
4/19
5/19
6/19
7/19
8/19
9/19
10/19
11/19
12/19
13/19
14/19
15/19
16/19
17/19
18/19
19/19A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [RFC 00/19] Runtime PM fixes for omap-ssi

Hi,

This series fixes runtime PM for omap-ssi, so that the OMAP SoC can idle correctly. After applying the series, the SSI module correctly goes into idle if phonet0 interface is not configured or if it's used by ofono (*). Apart from me Pavel Machek did some testing of my devel branch [0] and reported, that he was able to get the phone into full idle.

Note: I did my testing with kernel flashing over USB, so idle is broken. But I found the bit in cm_idlest1_core, that stands for SSI blocking status: 0x00800000 (documented as "reserved" in the public TRM).

(*) "ifconfig phonet0 up" will result in blocking ssi module
until modem setup has finished (data communication via
phonet0 device), since it enables ssi wakelines.

[0] https://git.kernel.org/cgit/linux/kernel/git/sre/linux-hsi.git/log/?h=runtime-pm-fixes

-- Sebastian

Sebastian Reichel (19):
HSI: omap_ssi_port: remove useless newline
HSI: omap_ssi: do not reset module
HSI: ssi_protocol: avoid ssi_waketest call with held spinlock
HSI: ssi_protocol: replace spin_lock with spin_lock_bh
HSI: ssi_protocol: fix ssip_xmit invocation
HSI: omap_ssi: convert cawake irq handler to thread
HSI: omap_ssi_port: replace wkin_cken with atomic bitmap operations
HSI: core: switch port event notifier from atomic to blocking
HSI: omap_ssi_port: prepare start_tx/stop_tx for blocking pm_runtime
calls
HSI: omap_ssi_core: use pm_runtime_put instead of pm_runtime_put_sync
HSI: omap_ssi_core: remove pm_runtime_get_sync call from tasklet
HSI: omap_ssi_port: switch to threaded pio irq
HSI: omap_ssi_port: avoid pm_runtime_get_sync in ssi_start_dma and
ssi_start_pio
HSI: omap_ssi_port: avoid calling runtime_pm_*_sync inside spinlock
HSI: omap_ssi_port: replace pm_runtime_put_sync with non-sync variant
HSI: omap_ssi_port: ensure clocks are kept enabled during transfer
HSI: omap_ssi: call msg->complete() from process context
HSI: omap_ssi_port: use rpm autosuspend API
HSI: omap_ssi: drop pm_runtime_irq_safe

 drivers/hsi/clients/ssi_protocol.c      | 110 +++++++++-------
 drivers/hsi/controllers/omap_ssi.h      |  18 +--
 drivers/hsi/controllers/omap_ssi_core.c |  46 +++----
 drivers/hsi/controllers/omap_ssi_port.c | 226 ++++++++++++++++++--------------
 drivers/hsi/hsi_core.c                  |   8 +-
 include/linux/hsi/hsi.h                 |   2 +-
 6 files changed, 229 insertions(+), 181 deletions(-)
Signature · 1 line
2.8.1