From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kevin Hilman Subject: Re: [RESEND PATCH v3 2/2] PM / Domains: Remove redundant wrapper functions for system PM Date: Wed, 15 Jun 2016 14:01:43 -0700 Message-ID: References: <1464601388-26693-1-git-send-email-ulf.hansson@linaro.org> <1464601388-26693-3-git-send-email-ulf.hansson@linaro.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from mail-pf0-f173.google.com ([209.85.192.173]:36690 "EHLO mail-pf0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753076AbcFOVBp (ORCPT ); Wed, 15 Jun 2016 17:01:45 -0400 Received: by mail-pf0-f173.google.com with SMTP id t190so12283025pfb.3 for ; Wed, 15 Jun 2016 14:01:45 -0700 (PDT) In-Reply-To: <1464601388-26693-3-git-send-email-ulf.hansson@linaro.org> (Ulf Hansson's message of "Mon, 30 May 2016 11:43:08 +0200") Sender: linux-pm-owner@vger.kernel.org List-Id: linux-pm@vger.kernel.org To: Ulf Hansson Cc: "Rafael J. Wysocki" , linux-pm@vger.kernel.org, Len Brown , Pavel Machek , Geert Uytterhoeven , Lina Iyer , Axel Haslam , Marek Szyprowski , Jon Hunter , Andy Gross , Laurent Pinchart , David Airlie , Alex Deucher , Maruthi Srinivas Bayyavarapu , dri-devel@lists.freedesktop.org, Christian =?utf-8?Q?K=C3=B6nig?= Ulf Hansson writes: > Due to the previous changes to genpd, which removed the suspend_power_off > flag, several of the system PM callbacks is no longer doing any additional > checks but only invoking a corresponding pm_generic_* helper function. > > To clean up the code let's remove these wrapper functions as they have > become redundant. Instead assign the system PM callbacks directly to > the pm_generic_*() helper function. > > While changing this, it became clear that some of the current system PM > callbacks in genpd, invokes the wrong callback at the driver level. For > example, genpd's ->restore() callback invokes pm_generic_resume(), while > it should be pm_generic_restore(). Let's fix this as well. > > Signed-off-by: Ulf Hansson Reviewed-by: Kevin Hilman Acked-by: Kevin Hilman Kevin