Thread (6 messages) 6 messages, 2 authors, 2014-11-28
DORMANTno replies
Revisions (9)
  1. v1 [diff vs current]
  2. v1 [diff vs current]
  3. v1 [diff vs current]
  4. v2 [diff vs current]
  5. v2 [diff vs current]
  6. v2 current
  7. v3 [diff vs current]
  8. v3 [diff vs current]
  9. v4 [diff vs current]

[PATCH V2 1/3] PM / Domains: Initial PM clock support for genpd

From: Ulf Hansson <hidden>
Date: 2014-11-28 07:26:28
Also in: linux-pm, linux-samsung-soc

If you defined the flag as

        #define PM_DOMAIN_FLAGS_PM_CLK  (1U << 0)

(which is a kind of usual way to do that), you wouldn't need the
bitops.h above.

Moreover, I personally don't like #defines in struct definitions.
quoted
@@ -76,6 +77,8 @@ struct generic_pm_domain {
                        struct device *dev);
      void (*detach_dev)(struct generic_pm_domain *domain,
                         struct device *dev);
+     unsigned int flags;             /* Bit field of configs for genpd */
+#define PM_DOMAIN_PM_CLK     BIT(0)  /* PM domain uses PM clk */
While I fix your above comments, I wonder whether I actually also
should change the prefix of the define as well.
From "PM_DOMAIN" to "GENPD". Cause I think it's a genpd specific
define and not a "PM domain" define. Please tell me if you have any
objections to that.
quoted
 };

 static inline struct generic_pm_domain *pd_to_genpd(struct dev_pm_domain *pd)
--
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.

Thanks for review!

Kind regards
Uffe
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help