Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934435Ab3FSI6o (ORCPT ); Wed, 19 Jun 2013 04:58:44 -0400 Received: from devils.ext.ti.com ([198.47.26.153]:40817 "EHLO devils.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933820Ab3FSI6k (ORCPT ); Wed, 19 Jun 2013 04:58:40 -0400 Message-ID: <51C172B3.5030806@ti.com> Date: Wed, 19 Jun 2013 14:28:27 +0530 From: Sekhar Nori User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/20130509 Thunderbird/17.0.6 MIME-Version: 1.0 To: Viresh Kumar CC: , , , , , , , , , , , Subject: Re: [PATCH 03/13] cpufreq: davinci: call CPUFREQ_POSTCHANGE notfier in error cases References: <6e65891cd3e33c5db94563a387832ae648ef0d8c.1371630975.git.viresh.kumar@linaro.org> In-Reply-To: <6e65891cd3e33c5db94563a387832ae648ef0d8c.1371630975.git.viresh.kumar@linaro.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 880 Lines: 26 On 6/19/2013 2:22 PM, Viresh Kumar wrote: > PRECHANGE and POSTCHANGE notifiers must be called in groups, i.e either both > should be called or both shouldn't be. > > In case we have started PRECHANGE notifier and found an error, we must call > POSTCHANGE notifier with freqs.new = freqs.old to guarantee that sequence of > calling notifiers is complete. > > Davinci driver was taking care of it but frequency isn't restored to freqs.old. > > This patch fixes it. > > Cc: Sekhar Nori > Signed-off-by: Viresh Kumar Looks good to me. Acked-by: Sekhar Nori Thanks, Sekhar -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/