From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kevin Hilman Subject: Re: [PATCH V6 07/10] soc: tegra: pmc: Add generic PM domain support Date: Tue, 01 Mar 2016 16:18:20 -0800 Message-ID: <7hfuw968c3.fsf@baylibre.com> References: <1456501724-28477-1-git-send-email-jonathanh@nvidia.com> <1456501724-28477-8-git-send-email-jonathanh@nvidia.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: In-Reply-To: <1456501724-28477-8-git-send-email-jonathanh-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> (Jon Hunter's message of "Fri, 26 Feb 2016 15:48:41 +0000") Sender: linux-tegra-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Jon Hunter Cc: Stephen Warren , Thierry Reding , Alexandre Courbot , "Rafael J. Wysocki" , Ulf Hansson , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-pm-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: linux-tegra@vger.kernel.org Jon Hunter writes: > Adds generic PM support to the PMC driver where the PM domains are > populated from device-tree and the PM domain consumer devices are > bound to their relevant PM domains via device-tree as well. > > Update the tegra_powergate_sequence_power_up() API so that internally > it calls the same tegra_powergate_xxx functions that are used by the > tegra generic power domain code for consistency. > > To ensure that the Tegra power domains (a.k.a powergates) cannot be > controlled via both the legacy tegra_powergate_xxx functions as well > as the generic PM domain framework, add a bit map for available > powergates that can be controlled via the legacy powergate functions. > > Move the majority of the tegra_powergate_remove_clamping() function > to a sub-function, so that this can be used by both the legacy and > generic power domain code. > > This is based upon work by Thierry Reding > and Vince Hsu . > > Signed-off-by: Jon Hunter I didn't look in great detail at the SoC specifics, but for the for the general genpd approach: Acked-by: Kevin Hilman