From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751795AbaHIPY0 (ORCPT ); Sat, 9 Aug 2014 11:24:26 -0400 Received: from mail-pd0-f176.google.com ([209.85.192.176]:63490 "EHLO mail-pd0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751699AbaHIPYW (ORCPT ); Sat, 9 Aug 2014 11:24:22 -0400 Date: Sat, 9 Aug 2014 08:24:52 -0700 From: Olof Johansson To: Bartlomiej Zolnierkiewicz Cc: Kukjin Kim , linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Marek Szyprowski , Tomasz Figa , Arnd Bergmann , arm@kernel.org Subject: Re: [PATCH v5][next-20140804] ARM: EXYNOS: Fix suspend/resume sequences Message-ID: <20140809152452.GC5053@quad.lixom.net> References: <6342975.PHG2cX2jjn@amdc1032> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6342975.PHG2cX2jjn@amdc1032> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 05, 2014 at 02:43:10PM +0200, Bartlomiej Zolnierkiewicz wrote: > From: Tomasz Figa > > Due to recent consolidation of Exynos suspend and cpuidle code, some > parts of suspend and resume sequences are executed two times, once from > exynos_pm_syscore_ops and then from exynos_cpu_pm_notifier() and thus it > breaks suspend, at least on Exynos4-based boards. In addition, simple > core power down from a cpuidle driver could, in case of CPU 0 could > result in calling functions that are specific to suspend and deeper idle > states. > > This patch fixes the issue by moving those operations outside the CPU PM > notifier into suspend and AFTR code paths. This leads to a bit of code > duplication, but allows additional code simplification, so in the end > more code is removed than added. > > Fixes: 85f9f90808b4 ("ARM: EXYNOS: Use the cpu_pm notifier for pm") > Cc: Kukjin Kim > Cc: Arnd Bergmann > Cc: Olof Johansson > Cc: arm@kernel.org > Signed-off-by: Tomasz Figa > [b.zolnierkie: ported patch over current changes] > [b.zolnierkie: fixed exynos_aftr_finisher() return value] > Signed-off-by: Bartlomiej Zolnierkiewicz Applied to fixes. -Olof