From patchwork Wed Aug 24 18:29:39 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Doug Anderson X-Patchwork-Id: 9298163 X-Patchwork-Delegate: sboyd@codeaurora.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 7058D608A7 for ; Wed, 24 Aug 2016 18:30:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6622829027 for ; Wed, 24 Aug 2016 18:30:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5B00F29035; Wed, 24 Aug 2016 18:30:22 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F3C0429028 for ; Wed, 24 Aug 2016 18:30:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755740AbcHXSaK (ORCPT ); Wed, 24 Aug 2016 14:30:10 -0400 Received: from mail-pa0-f50.google.com ([209.85.220.50]:36843 "EHLO mail-pa0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755520AbcHXSaJ (ORCPT ); Wed, 24 Aug 2016 14:30:09 -0400 Received: by mail-pa0-f50.google.com with SMTP id di2so8782390pad.3 for ; Wed, 24 Aug 2016 11:30:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id; bh=hvh4cuy6b9hYGeXWwdNB6ttjrNMzpYVH4RRa1JaHIlI=; b=GqkB8aSfpvB0viYSOs9geQcCD7XxY4p30a93ATxtFN4BMFinpoEli60jOK3HB6XYZJ QMHGt7t8nqOQckEZkbvyheoSrHCUsFgnGOAonBGLNSb+gpiAF/79MQhRYEQlLrze6kJR dSB0QG7V922V6gSpqzAboLEzl7w0a7mvRabnI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=hvh4cuy6b9hYGeXWwdNB6ttjrNMzpYVH4RRa1JaHIlI=; b=huf4Aj+aeR26aGMRy1wBknR16GSdqnkqg4vzqHP4m0BGyz0k0GdIPMlZ4ExdGIWACN IiqMRpRaVXGEuP1pOBAJIgkadtWnIrwKRVpBKO5BwNTH5zexbdK3q3jx9Nt9KMYQeBh9 FgGzTWqKu6orXvJcPt3aENkd5cU1HXtEapykCXBk7pyCIgJy1ehrhDXIFCnF19u+K/+5 h4HSwqeyFo9KpAYHLciQKvnrMTB6njfd6cjjAPGUaqAziAxIFvPJOeqUzb8GQzH07zBj UK1S3oYGfWjt+aNowCgH5T2iXaFj8moJL+DzahNsOUn6hwDgqwug4BMVBYfb/dmJJZBn trTQ== X-Gm-Message-State: AE9vXwNwb127GpICmNngI4wMAOABwi6NZrIXq/kEhLCfykNoVsb+J/9OzU9B7r2cF8SdHjp3 X-Received: by 10.66.159.195 with SMTP id xe3mr8296240pab.159.1472063408655; Wed, 24 Aug 2016 11:30:08 -0700 (PDT) Received: from chromelab4.mtv.corp.google.com ([100.98.62.8]) by smtp.gmail.com with ESMTPSA id m65sm15323105pfg.79.2016.08.24.11.30.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 24 Aug 2016 11:30:06 -0700 (PDT) From: Douglas Anderson To: Heiko Stuebner Cc: linux-rockchip@lists.infradead.org, zhengxing@rock-chips.com, Douglas Anderson , mturquette@baylibre.com, sboyd@codeaurora.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] clk: rockchip: mark aclk_emmc_noc as a critical clock on rk3399 Date: Wed, 24 Aug 2016 11:29:39 -0700 Message-Id: <1472063379-717-1-git-send-email-dianders@chromium.org> X-Mailer: git-send-email 2.8.0.rc3.226.g39d4020 Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Xing Zheng We don't have code to handle any of the noc clocks in rk3399 and they're all just listed as critical clocks. Let's do the same for aclk_emmc_noc. Without this clock being marked as critical we have problems around suspend/resume after commit 20c389e656a8 ("clk: rockchip: fix incorrect aclk_emmc source gate bits on rk3399"). Before that change we were presumably not actually gating any of these clocks because we were setting the wrong gate. Signed-off-by: Xing Zheng Signed-off-by: Douglas Anderson --- drivers/clk/rockchip/clk-rk3399.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/rockchip/clk-rk3399.c b/drivers/clk/rockchip/clk-rk3399.c index e445cd64952a..ede6c475b537 100644 --- a/drivers/clk/rockchip/clk-rk3399.c +++ b/drivers/clk/rockchip/clk-rk3399.c @@ -1489,6 +1489,7 @@ static const char *const rk3399_cru_critical_clocks[] __initconst = { "hclk_perilp1", "hclk_perilp1_noc", "aclk_dmac0_perilp", + "aclk_emmc_noc", "gpll_hclk_perilp1_src", "gpll_aclk_perilp0_src", "gpll_aclk_perihp_src",