From mboxrd@z Thu Jan 1 00:00:00 1970 From: Krzysztof Kozlowski Subject: Re: [PATCH v9 04/20] PM / devfreq: Add new DEVFREQ_TRANSITION_NOTIFIER notifier Date: Tue, 12 Apr 2016 09:29:34 +0200 Message-ID: <570CA3DE.2030702@samsung.com> References: <1460347078-15175-1-git-send-email-cw00.choi@samsung.com> <1460347078-15175-5-git-send-email-cw00.choi@samsung.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-reply-to: <1460347078-15175-5-git-send-email-cw00.choi@samsung.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=m.gmane.org@lists.infradead.org To: Chanwoo Choi , myungjoo.ham@samsung.com, kyungmin.park@samsung.com, kgene@kernel.org, s.nawrocki@samsung.com, tomasz.figa@gmail.com Cc: mark.rutland@arm.com, inki.dae@samsung.com, linux-samsung-soc@vger.kernel.org, linux@arm.linux.org.uk, pawel.moll@arm.com, ijc+devicetree@hellion.org.uk, linux.amoon@gmail.com, linux-pm@vger.kernel.org, rjw@rjwysocki.net, linux-kernel@vger.kernel.org, m.reichl@fivetechno.de, tjakobi@math.uni-bielefeld.de, devicetree@vger.kernel.org, robh+dt@kernel.org, galak@codeaurora.org, linux-arm-kernel@lists.infradead.org List-Id: devicetree@vger.kernel.org On 04/11/2016 05:57 AM, Chanwoo Choi wrote: > This patch adds the new DEVFREQ_TRANSITION_NOTIFIER notifier to send > the notification when the frequency of device is changed. > This notifier has two state as following: > - DEVFREQ_PRECHANGE : Notify it before chaning the frequency of device > - DEVFREQ_POSTCHANGE : Notify it after changed the frequency of device > > And this patch adds the resourced-managed function to release the resource > automatically when error happen. > > Signed-off-by: Chanwoo Choi > [m.reichl and linux.amoon: Tested it on exynos4412-odroidu3 board] > Tested-by: Markus Reichl > Tested-by: Anand Moon > Signed-off-by: MyungJoo Ham > --- > drivers/devfreq/devfreq.c | 163 +++++++++++++++++++++++++++++++++++++++++++++- > include/linux/devfreq.h | 59 ++++++++++++++++- > 2 files changed, 220 insertions(+), 2 deletions(-) Acked-by: Krzysztof Kozlowski Best regards, Krzysztof