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: 9298165 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 DC814607EE for ; Wed, 24 Aug 2016 18:30:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D1D5B29028 for ; Wed, 24 Aug 2016 18:30:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C5B7E29038; Wed, 24 Aug 2016 18:30:46 +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=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 647A929028 for ; Wed, 24 Aug 2016 18:30:46 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bccwl-0003Wf-U0; Wed, 24 Aug 2016 18:30:43 +0000 Received: from mail-pa0-x233.google.com ([2607:f8b0:400e:c03::233]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bccwY-0002Vv-6o for linux-rockchip@lists.infradead.org; Wed, 24 Aug 2016 18:30:31 +0000 Received: by mail-pa0-x233.google.com with SMTP id di2so8782351pad.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=BAXf9KWf+4hA3aI4c5Hi+P1QAq2ZlINVDUvzZ6bIIVjHXv4FM/LKQ8gcUwIg/GrH5t U8RyUBiCZzYSvAahp1rc452TpwlNXdcqUiwizzj07prBiLvu1uzLLTrstAGjwEAw0kEp qFkiTDDZntYZJGQsCG9mNLWm0eyM/Dx9mtnKgSjss0e8oGD1fwCZSLozRh8tGvRK6Jwv j9pmAxu+gMkNEwp1eBAz5RppM0Df6QEyWnqsU557TbLM7YBOzY9ovqoj+zQtVopvHPqS 5YbSp9pg6/gm4k9f4oG4uFRFp4QArdolV7WhTRNbYhjRg3nKRCnSy2Q5BUQSO15VIrrB z9og== X-Gm-Message-State: AE9vXwOv9MeN3V9CXagrCj02POd8QQCDaWh2fOB4+x9URyu6TNIDOUwcq1YLsoMdAduvlCNN 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160824_113030_335905_24C64410 X-CRM114-Status: UNSURE ( 9.05 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: zhengxing@rock-chips.com, mturquette@baylibre.com, sboyd@codeaurora.org, Douglas Anderson , linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.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",