Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753481AbbDHJG6 (ORCPT ); Wed, 8 Apr 2015 05:06:58 -0400 Received: from mailout4.w1.samsung.com ([210.118.77.14]:21119 "EHLO mailout4.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751506AbbDHJGx (ORCPT ); Wed, 8 Apr 2015 05:06:53 -0400 X-AuditID: cbfec7f5-b7f1e6d00000617c-1c-5524eefd7b5d Message-id: <5524EFA8.6000800@samsung.com> Date: Wed, 08 Apr 2015 11:06:48 +0200 From: Sylwester Nawrocki User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-version: 1.0 To: Javier Martinez Canillas , Stephen Boyd , Mike Turquette Cc: Tomasz Figa , Kukjin Kim , Olof Johansson , Doug Anderson , Krzysztof Kozlowski , Kevin Hilman , Tyler Baker , Abhilash Kesavan , Chanwoo Choi , linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/1] clk: exynos5420: Restore GATE_BUS_TOP on suspend References: <1428471252-15872-1-git-send-email-javier.martinez@collabora.co.uk> In-reply-to: <1428471252-15872-1-git-send-email-javier.martinez@collabora.co.uk> Content-type: text/plain; charset=windows-1252 Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrLLMWRmVeSWpSXmKPExsVy+t/xy7p/36mEGizdpWVx/ctzVouzyw6y WRz9XWDx+oWhxZq/Shb9j18zW3w9vILRYtPja6wWH3vusVpc3jWHzWLG+X1MFk8nXGSzOHX9 M5vFjzPdLBardv1htPi44x6Lg4DH7IaLLB6X+3qZPP4+v87isXPWXXaPTas62TzuXNvD5rF5 Sb3HlRNNrB59W1YxenzeJBfAFcVlk5Kak1mWWqRvl8CVsfnwBPaCvQIVTR8XsjQwHubtYuTk kBAwkXhxcy4jhC0mceHeerYuRi4OIYGljBIvtkxiA0kICXxilNg6yxbE5hXQkmg/cpeli5GD g0VAVWLlOiaQMJuAoUTv0T5GkLCoQITE7cucENWCEj8m32MBGSki0As08uQmVhCHWeA1s8TM FatYQKqEBTwl3r2/ywyxy1/iwrVjYEM5BQIkGtr/s4IMZRbQk7h/UQskzCwgL7F5zVvmCYwC s5DsmIVQNQtJ1QJG5lWMoqmlyQXFSem5RnrFibnFpXnpesn5uZsYIVH2dQfj0mNWhxgFOBiV eHg9rqiECrEmlhVX5h5ilOBgVhLh3f4CKMSbklhZlVqUH19UmpNafIiRiYNTqoHxRKWljC3z noXF5jsFha9luu25Huy/T4mn8WN9Z/vKLF2hX6kcxb8LNGeLROfrqD2bzrn2c9NR1TzVvbtu ZzmlXfOZPUOSJzH1dK1O4/5vYru77L7LPIk8/D+to1GHMeoJT2LZrpyAOUp53/IWiwQf0Lb7 tt+aWUCXY+66bx8bWDds7t23k1mJpTgj0VCLuag4EQBBlmqSkAIAAA== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2306 Lines: 53 Hello, On 08/04/15 07:34, Javier Martinez Canillas wrote: > Commit ae43b3289186 ("ARM: 8202/1: dmaengine: pl330: Add runtime Power > Management support v12") added pm support for the pl330 dma driver but > it makes the clock for the Exynos5420 MDMA0 DMA controller to be gated > during suspend and this in turn makes its parent clock aclk266_g2d to > be gated. But the clock needs to be ungated prior suspend to allow the > system to be suspend and resumed correctly. > > Add GATE_BUS_TOP register to the list of registers to be restored when > the system enters into a suspend state so aclk266_g2d will be ungated. > > Thanks to Abhilash Kesavan for figuring out that this was the issue. > > Fixes: ae43b32 ("ARM: 8202/1: dmaengine: pl330: Add runtime Power Management support v12") > Signed-off-by: Javier Martinez Canillas > Tested-by: Kevin Hilman > Tested-by: Abhilash Kesavan > Acked-by: Tomasz Figa > --- > drivers/clk/samsung/clk-exynos5420.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/clk/samsung/clk-exynos5420.c b/drivers/clk/samsung/clk-exynos5420.c > index 07d666cc6a29..bea4a173eef5 100644 > --- a/drivers/clk/samsung/clk-exynos5420.c > +++ b/drivers/clk/samsung/clk-exynos5420.c > @@ -271,6 +271,7 @@ static const struct samsung_clk_reg_dump exynos5420_set_clksrc[] = { > { .offset = SRC_MASK_PERIC0, .value = 0x11111110, }, > { .offset = SRC_MASK_PERIC1, .value = 0x11111100, }, > { .offset = SRC_MASK_ISP, .value = 0x11111000, }, > + { .offset = GATE_BUS_TOP, .value = 0xffffffff, }, > { .offset = GATE_BUS_DISP1, .value = 0xffffffff, }, > { .offset = GATE_IP_PERIC, .value = 0xffffffff, }, > }; I'm going to tag this patch for inclusion in the stable tree and send it to Mike or Stephen with other clk/samsung fixes after v4.1-rc1 is released. Mike/Stephen, if you're willing to take this patch earlier here is my: Acked-by: Sylwester Nawrocki -- Thanks, Sylwester -- 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/