From patchwork Thu Sep 14 12:05:19 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Syring X-Patchwork-Id: 9952931 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 EC46D60317 for ; Thu, 14 Sep 2017 12:07:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E5CE828FD6 for ; Thu, 14 Sep 2017 12:07:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DA52828FF9; Thu, 14 Sep 2017 12:07:48 +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.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id E0ADF2903B for ; Thu, 14 Sep 2017 12:07:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=cI86JR/DxCpsZde1aJKF0YYhK52R/s7yCeq78aRaa5k=; b=kdN HyD+m1VNmsGhlq5BFzJW7YjOFlaFBdAnKjY911pbOsEhRKFu4bMsTFI2dHTUl4pF1/3YoCK82Ob9v PIXZoAnTKBvb7f0s9U/BgPBfiU5kcKhRNnYzm3VLT83y34bfHfevVDsXJtLGDWus1+DLWTsGqD694 rjOd1HR7mxeL2/OtnxWYvvYKrN7zTb3MRzYLyofnVV6oZ3uUCj/8rHUxWtqnrCmMIVzyowPthWONj oBLBMHyMM1xa97F8t/xKx5LqiyFVEsp5ZsLfjxYRPmqGkxI4HC/uk3LHlVnp+iyPMvg477VVSmz3D fOPookwIKmhZa+WCMVDTbRYMsW0C5bQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dsSvl-0001aB-17; Thu, 14 Sep 2017 12:07:41 +0000 Received: from asyring.homeip.net ([37.120.161.147] helo=vserver.asyring.homeip.net) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dsSvg-0001WD-Rp for linux-arm-kernel@lists.infradead.org; Thu, 14 Sep 2017 12:07:38 +0000 Received: from localhost (localhost [127.0.0.1]) by vserver.asyring.homeip.net (Postfix) with ESMTP id 93B605F94D for ; Thu, 14 Sep 2017 14:07:05 +0200 (CEST) Authentication-Results: mail.asyring.de (amavisd-new); dkim=pass reason="pass (just generated, assumed good)" header.d=asyring.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=asyring.de; h= x-mailer:message-id:date:date:subject:subject:to:from:from; s= dkim; t=1505390825; x=1506254826; bh=TC41lW3F1iRTsV9wI8dIdJB7gOo ZPMnhykMIfSoEMgU=; b=mVMABHMcRhoWcfFiv55PPfiZGBtMVlUWcg32iGnLxA1 Q3xjYuFNYvOnu+Bvu3UGxyBg6lhrNPjlwArOTyFOy9T9BauOwgyOw0+UEvK4c5wd of3TMKultU17925uTnqIi5a1sVENOlEGoIWxSaJUhZyFr2sKQxJP6j5ocrcq12SU = X-Virus-Scanned: Debian amavisd-new at asyring.homeip.net Received: from vserver.asyring.homeip.net ([127.0.0.1]) by localhost (mail.asyring.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id E03rVLuYlGj9 for ; Thu, 14 Sep 2017 14:07:05 +0200 (CEST) Received: from Cubietruck.lan. (Cubietruck-Lan.lan [192.168.0.131]) by vserver.asyring.homeip.net (Postfix) with ESMTPSA id 422E25F73C; Thu, 14 Sep 2017 14:07:02 +0200 (CEST) From: Alexander Syring To: Alexander Syring Subject: [PATCH] clk: sunxi-ng: Fix missing CLK_SET_RATE_PARENT in ccu-sun4i-a10.c Date: Thu, 14 Sep 2017 14:05:19 +0200 Message-Id: <20170914120519.2006-1-alex@asyring.de> X-Mailer: git-send-email 2.11.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170914_050737_217709_1DFDE1DE X-CRM114-Status: UNSURE ( 8.96 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Michael Turquette , Stephen Boyd , linux-kernel@vger.kernel.org, Chen-Yu Tsai , Maxime Ripard , linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP When using cpufreq-dt with default govenor other than "performance" system freezes while booting. Adding CLK_SET_RATE_PARENT | CLK_IS_CRITICAL to clk_cpu fixes the problem. Tested on Cubietruck (A20). Fixes: c84f5683f6E ("clk: sunxi-ng: Add sun4i/sun7i CCU driver") Reported-by: Alexander Syring Signed-off-by: Alexander Syring Acked-by: Chen-Yu Tsai --- drivers/clk/sunxi-ng/ccu-sun4i-a10.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/sunxi-ng/ccu-sun4i-a10.c b/drivers/clk/sunxi-ng/ccu-sun4i-a10.c index 286b0049b7b6..a48fde191c0a 100644 --- a/drivers/clk/sunxi-ng/ccu-sun4i-a10.c +++ b/drivers/clk/sunxi-ng/ccu-sun4i-a10.c @@ -223,7 +223,7 @@ static struct ccu_mux cpu_clk = { .hw.init = CLK_HW_INIT_PARENTS("cpu", cpu_parents, &ccu_mux_ops, - CLK_IS_CRITICAL), + CLK_SET_RATE_PARENT | CLK_IS_CRITICAL), } };