From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kevin Hilman Subject: Re: [PATCH v1 2/4] ARM: keystone: pm: switch to use generic pm domains Date: Sun, 12 Oct 2014 05:56:23 -0700 Message-ID: References: <1412001499-19369-1-git-send-email-grygorii.strashko@ti.com> <1412001499-19369-3-git-send-email-grygorii.strashko@ti.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: In-Reply-To: <1412001499-19369-3-git-send-email-grygorii.strashko-l0cyMroinI0@public.gmane.org> Sender: devicetree-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Grygorii Strashko , Santosh Shilimkar , "Rafael J. Wysocki" , Kevin Hilman Cc: Geert Uytterhoeven , "linux-pm-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , Rob Herring , grant.likely-s3s/WqlpOiPyB63q8FvJNQ@public.gmane.org, ulf.hansson-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org, "linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org" , lkml , devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: devicetree@vger.kernel.org Hi Grygorii, On 9/29/14 7:38 AM, Grygorii Strashko wrote: > This patch switches Keystone 2 PM code to use Generic PM domains > instead of PM clock domains because of the lack of DT support > for the last. > > Signed-off-by: Grygorii Strashko IMO, this approach is much better. One minor nit below... > diff --git a/arch/arm/mach-keystone/pm_domain.c b/arch/arm/mach-keystone/pm_domain.c > index ca79dda..3eb5257 100644 > --- a/arch/arm/mach-keystone/pm_domain.c > +++ b/arch/arm/mach-keystone/pm_domain.c > @@ -12,69 +12,110 @@ > * version 2, as published by the Free Software Foundation. > */ > > +#include > #include > -#include > #include > +#include > #include > -#include > #include > > -#ifdef CONFIG_PM_RUNTIME > -static int keystone_pm_runtime_suspend(struct device *dev) > +#ifdef CONFIG_PM_GENERIC_DOMAINS > + > +struct keystone_domain { > + struct generic_pm_domain base; > + struct device *dev; > +}; I think the name 'base' for this field leads to confusion later in the code, since base usually means something else in drivers. How about 'genpd'? Kevin -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html