Some omap_device/hwmod/pwrdomain patches
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest1 of 3 patches 0 repliesNew
1 of 3 patches is in this archive. The cover letter announces 3.
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | OMAP: change get_context_loss_count ret value to int | +0 | 0 replies |
Reviews trailers per patch
The patch has a Reviewed-by or Acked-by.
| Patch | Kevin Hilman |
|---|---|
| 1/3 | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/3] Some omap_device/hwmod/pwrdomain patches
Quoted 4 lines · Tomi Valkeinen
I came up with these patches while implementing pm runtime adaptation for DSS driver. I'm not quite sure on who's turf they belong, or do they even belong together, but here they are anyway.
Quoted 8 lines
get_context_loss_countpatch was discussed on l-o with Kevin.The
omap_device_resetpatch I made as some parts of DSS currently presume that the HW module is reset when it is enabled, and the reset is better handled in hwmod code.
can_ever_lose_contextcode I didn't strictly need, but as there's such a function I added that to the context save code in DSS while rewriting the code.
Are any of the DSS blocks in power domains that can't lose context (WKUP?)
This isn't something in general that drivers should be aware of, so I'd rather not see this exposed to drivers (unless there's a real need.)
As soon as I finish the move to device power domains (hopefully for 2.6.41), the driver's callbacks will only be called if the device has lost context, so checking for context loss will not be needed at all at the driver level.
Kevin
Quoted 17 lines
Tomi
Tomi Valkeinen (3):
OMAP: changeget_context_loss_countret value to int
OMAP: addomap_device_reset()
OMAP: Add (omap_device|omap_hwmod)_can_ever_lose_context functionsarch/arm/mach-omap2/omap_hwmod.c | 24 ++++++++++++- arch/arm/mach-omap2/powerdomain.c | 14 +++++-- arch/arm/mach-omap2/powerdomain.h | 2 +- arch/arm/plat-omap/include/plat/omap-pm.h | 4 +- arch/arm/plat-omap/include/plat/omap_device.h | 4 ++- arch/arm/plat-omap/include/plat/omap_hwmod.h | 3 +- arch/arm/plat-omap/omap-pm-noop.c | 24 +++++++++---- arch/arm/plat-omap/omap_device.c | 48 ++++++++++++++++++++++++- 8 files changed, 105 insertions(+), 18 deletions(-)