Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2956753imu; Mon, 19 Nov 2018 08:36:10 -0800 (PST) X-Google-Smtp-Source: AJdET5cnooIDEfyNK5nJYObO+1fimfPGobnmovoqh+2ztU3y/e2kEtFvNfKeBG3xDXZp5g55c1BQ X-Received: by 2002:a62:8d4f:: with SMTP id z76mr848801pfd.2.1542645370616; Mon, 19 Nov 2018 08:36:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542645370; cv=none; d=google.com; s=arc-20160816; b=haTmIpbcI9XtCJrXNrkY6zXD83ceAi1I4AVeIQPe5wozh+KESi0W/UHPKF0UqlLT+c xWB9/gV+nisTtuCZoZwZqAyduvQIzJYVhgr5CFy6/r22b5Q6laFB11I2T86I55pO9IFi 4i05jZh4NCiOGJDaQ66LUbgfx1HQmpg/2BYSnqtHrBz4t/bqgDyt1bM4v2hemX8Lpj+N vhJrHWYXswZ1HxCJ32G1T6sajSlM4yboQVkyjBHJL2htLbZF4VLHXriAO6fDj29tlisR M6d+UsHPkABOv/M2euNeeA5xOI8hTf5vm5Dj3uJE2O58ncG+D/OeDTCqvgDaabStjW3U d8aw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=O6YBi88PtIUUG2b5J/VgKNQ8N86Iuwk8ZxwZth99Mm4=; b=KrRf5qrSg7G1Ksx4894OJjCgk0Of5HTIB4rWm6eR5Znys6yKxdQzo/daFW0hWwtLZ9 upHg3mD7WydRdgU1qwPG/a5NHc432Glw3Nvmnc3KBbHo6q19Tq3NB/xpxjq0w5f8U/1q ih0skqCRlUDhGuyEkxUyCmvuCWIkZtU2U9EoZgyZ9lRW/cQPr66tS5mNHwjPsqZtDrT6 /P+/c+xG/+fZcXZ4AS88GG6zsn/PyIvuMwRxJoDkwc78UoaWM8j8qFVnrtU4yByO4zyd 3iF+/dhmV5r+5XU8ArSdTM2AqYg7t+syd1Q/IBIbcJCxYFHD4E5ZQeTZDw/cW5l/ZoYe qupA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=0EKkI0hK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k23si4095022pll.241.2018.11.19.08.35.44; Mon, 19 Nov 2018 08:36:10 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=0EKkI0hK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731048AbeKTC5U (ORCPT + 99 others); Mon, 19 Nov 2018 21:57:20 -0500 Received: from mail.kernel.org ([198.145.29.99]:55966 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730259AbeKTC5T (ORCPT ); Mon, 19 Nov 2018 21:57:19 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E358120831; Mon, 19 Nov 2018 16:33:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1542645192; bh=Siy4vdEbTkQw848SpRoT4W/686KX61gLYOa5kgDFXO0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=0EKkI0hKWup9lU2yjmxidxU6UCXnRvUdkcnwoYKFkjaHsDX8R//OSlC/Nc0qP4EF0 Ah8g4SuUzAIIcVoo+romGwTUusUQXo6Yr1wULrrS96ljNw0lEq19RXi2H0WTeUBrDo dvcbOKX9yIq1KbkERRKVHeRtnvjhsXGaU2feMJD8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jerome Brunet , Neil Armstrong , Stephen Boyd , Sasha Levin Subject: [PATCH 4.19 072/205] clk: meson: axg: mark fdiv2 and fdiv3 as critical Date: Mon, 19 Nov 2018 17:26:19 +0100 Message-Id: <20181119162629.884849709@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181119162616.586062722@linuxfoundation.org> References: <20181119162616.586062722@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.19-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit d6ee1e7e9004d3d246cdfa14196989e0a9466c16 ] Similar to gxbb and gxl platforms, axg SCPI Cortex-M co-processor uses the fdiv2 and fdiv3 to, among other things, provide the cpu clock. Until clock hand-off mechanism makes its way to CCF and the generic SCPI claims platform specific clocks, these clocks must be marked as critical to make sure they are never disabled when needed by the co-processor. Fixes: 05f814402d61 ("clk: meson: add fdiv clock gates") Signed-off-by: Jerome Brunet Acked-by: Neil Armstrong Signed-off-by: Stephen Boyd Signed-off-by: Sasha Levin --- drivers/clk/meson/axg.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/drivers/clk/meson/axg.c b/drivers/clk/meson/axg.c index 00ce62ad6416..8cf74fc423e6 100644 --- a/drivers/clk/meson/axg.c +++ b/drivers/clk/meson/axg.c @@ -319,6 +319,7 @@ static struct clk_regmap axg_fclk_div2 = { .ops = &clk_regmap_gate_ops, .parent_names = (const char *[]){ "fclk_div2_div" }, .num_parents = 1, + .flags = CLK_IS_CRITICAL, }, }; @@ -343,6 +344,18 @@ static struct clk_regmap axg_fclk_div3 = { .ops = &clk_regmap_gate_ops, .parent_names = (const char *[]){ "fclk_div3_div" }, .num_parents = 1, + /* + * FIXME: + * This clock, as fdiv2, is used by the SCPI FW and is required + * by the platform to operate correctly. + * Until the following condition are met, we need this clock to + * be marked as critical: + * a) The SCPI generic driver claims and enable all the clocks + * it needs + * b) CCF has a clock hand-off mechanism to make the sure the + * clock stays on until the proper driver comes along + */ + .flags = CLK_IS_CRITICAL, }, }; -- 2.17.1