From patchwork Tue Aug 13 16:20:41 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Wahren X-Patchwork-Id: 11092595 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 12DC9912 for ; Tue, 13 Aug 2019 16:21:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 028732624D for ; Tue, 13 Aug 2019 16:21:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E9C53285C8; Tue, 13 Aug 2019 16:21:16 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI 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 A26D92624D for ; Tue, 13 Aug 2019 16:21:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727729AbfHMQVP (ORCPT ); Tue, 13 Aug 2019 12:21:15 -0400 Received: from mout.gmx.net ([212.227.15.15]:59773 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728019AbfHMQVP (ORCPT ); Tue, 13 Aug 2019 12:21:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1565713259; bh=dcbp9wyo3uwTgq6UFIx/2q7he00MX7X5KQnY77LIfhw=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=VhqxHnO/VCxDXppsYNbwakKFGN/6gX3zR0T0aL5FXCg1MRU6CjP8pQBsJSP6kqQVJ lfGehUcXza5qQAWQszx4JZ7fijQ3vEjE3pWpQzhMN5LWNVedCVuSbLZc2cSd9fow/v pswoGLzMKer8FCm2EHf6rwGKMkLZru4xhZ6dJzBM= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from localhost.localdomain ([37.4.249.106]) by mail.gmx.com (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1Mr9Bk-1ibZFt1nWw-00oGiA; Tue, 13 Aug 2019 18:20:59 +0200 From: Stefan Wahren To: Eric Anholt , Florian Fainelli , Ray Jui , Scott Branden , Wolfram Sang , Rob Herring , Mark Rutland , Michael Turquette , Stephen Boyd Cc: bcm-kernel-feedback-list@broadcom.com, linux-arm-kernel@lists.infradead.org, linux-i2c@vger.kernel.org, linux-clk@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, devicetree@vger.kernel.org, Stefan Wahren Subject: [PATCH V2 06/13] clk: bcm2835: Mark PLLD_PER as CRITICAL Date: Tue, 13 Aug 2019 18:20:41 +0200 Message-Id: <1565713248-4906-7-git-send-email-wahrenst@gmx.net> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1565713248-4906-1-git-send-email-wahrenst@gmx.net> References: <1565713248-4906-1-git-send-email-wahrenst@gmx.net> X-Provags-ID: V03:K1:IHISipDPkgSEtuerZ9YeqAdbuOcqfx1WWZSpdue+ABrqodCLh8L WOgb+7OoOmRjx9vcoUBPxzV8jzAd+hz60S8LROQ66M2sU9RBMNpc+ez02VAYhQHxZuXHmoT 0HIHHaQRnOFGKbENNspO17RhUFzXPwf6UUTeQxcNlK+KBSsg2ga2GI+B1xzV6XC2VAsDivu cq1pL8PogxkL5fO98sLQA== X-UI-Out-Filterresults: notjunk:1;V03:K0:S/vGA3BKd6Q=:DdZMNsh5Yyf+gZY+8I2lMf eBujfU4NY6iid0Wp4iR3M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ra bXRiZ5UV1KSqx3Rn/BwVliK1GnDOsny/ZIKvYAfnp5jpLOrdkhC8L6RHA== 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 The VPU firmware assume that the PLLD_PER isn't modified by the ARM core. Otherwise this could cause firmware lookups. So mark the clock as critical to avoid this. Signed-off-by: Stefan Wahren --- drivers/clk/bcm/clk-bcm2835.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4 diff --git a/drivers/clk/bcm/clk-bcm2835.c b/drivers/clk/bcm/clk-bcm2835.c index fdf672a..b62052e 100644 --- a/drivers/clk/bcm/clk-bcm2835.c +++ b/drivers/clk/bcm/clk-bcm2835.c @@ -1785,7 +1785,7 @@ static const struct bcm2835_clk_desc clk_desc_array[] = { .load_mask = CM_PLLD_LOADPER, .hold_mask = CM_PLLD_HOLDPER, .fixed_divider = 1, - .flags = CLK_SET_RATE_PARENT), + .flags = CLK_IS_CRITICAL | CLK_SET_RATE_PARENT), [BCM2835_PLLD_DSI0] = REGISTER_PLL_DIV( SOC_ALL, .name = "plld_dsi0",