Skip to content

: OPP layer changes (introducing enum for OPP types and returning NULL on failure from some OPP APIs)

Romit Dasgupta linux-omap 1 version NAK

Status from this message: NAK.

Get series with b4
b4 am 1263553371.3490.40.camel@boson

Versions newest first

  1. v1 Latest2 patches 4 repliesNAK

Patches in v1

#Subject and filesSizeRepliesApplied
1/2: Introducing enum for OPP typesarch/arm/mach-omap2/pm34xx.c arch/arm/mach-omap2/resource34xx.c arch/arm/mach-omap2/smartreflex.c +6 more+163 -1681 reply
2/2: Change return value from ERR_PTR(..) to NULL in opp layerarch/arm/mach-omap2/resource34xx.c arch/arm/plat-omap/opp.c+7 -73 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PM-WIP-OPP] [PATCH 0/2]: OPP layer changes (introducing enum for OPP types and returning NULL on failure from some OPP APIs)

Based on the discussion in the mailing list, I have taken some
suggestions and am reposting the patch. In this two part patchset:

a) the first patch introduces a new enum type for identifying different OPP types. This helps in encapsulating the actual pointers to the respective OPP lists inside the OPP layer itself. One can now interact with the OPP layer by passing the appropriate OPP enum type instead of the actual pointer to the OPP list.

b) the second patch is for the OPP layer to return NULL pointer (instead of ERR_PTR) when the return type of the API is struct omap_opp *

---
 arch/arm/mach-omap2/pm34xx.c          |   15 --
 arch/arm/mach-omap2/resource34xx.c    |   86 ++++++----------
 arch/arm/mach-omap2/smartreflex.c     |   33 +-----
 arch/arm/plat-omap/common.c           |    6 -
 arch/arm/plat-omap/cpu-omap.c         |   12 +-
 arch/arm/plat-omap/include/plat/opp.h |   58 +++++-----
 arch/arm/plat-omap/omap-pm-noop.c     |    4 
 arch/arm/plat-omap/omap-pm-srf.c      |    4 
 arch/arm/plat-omap/opp.c              |  127 ++++++++++++++++--------
 9 files changed, 170 insertions(+), 175 deletions(-)