Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp788852imu; Fri, 16 Nov 2018 10:10:58 -0800 (PST) X-Google-Smtp-Source: AJdET5eq2sb4j28jDYsGuHMHZwuLUYdj8NrUAa0LZgLaHq9PYuXnw72ust6EBkvo/q2sy71Gmwy8 X-Received: by 2002:a17:902:bd4a:: with SMTP id b10mr11983182plx.232.1542391858344; Fri, 16 Nov 2018 10:10:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542391858; cv=none; d=google.com; s=arc-20160816; b=FNaEKN4bznUmA1pxUuVkUOYj16458dfZ1lPxD8Ck/qk3nM9MZBolvf6/B/qnebDPHe Dzw94IXyYISTkAz8auv8y42qmYjeNPdv1vmBy0mo1rhLQ5fDs3MUt6kG5IFokC9e7QXy vk+A1rAmiWY4h5NobNIverfZNCGeAmPJWJoI6GMkFKKgw/BgaPdoMvXTOD8Bo+r0t5BE 8spg29e2pqqmY5GrCsbivYPjhFJWQtb+LpLHJ+IIH642mU8hNUk+BFKu6uhD1OKX0RTW 5ZrjSmrpYuLDBTjjRdpund9K3UZVtazVVvm3dv3Dpl980dUFLvCFQyyTRZFY6C1MI4rX 0pKw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=IXyr//APQCelJ0bMmob7krTe1S/T9BsX+pGrLDxT3S4=; b=0JZx1NE+07NIlaEuUYf+jO2dqhK1K6KFAoFnJbwqgVahO8A9Zlg9v9YxIL7+pYJsJa gSzGTXvAPaoPamp/42GjhnQjIrj1fYg0vlS9iGtPlFIWGeE7wgN0zskZNbfJCmCSA8bs /Z3G9L4uen3emrwTDbxblEdgiCBNz44uI0Tc7fl/6EB1wuhkNrpit97mVWy9KkVNK1yo W4NpJV+DPKyUbd+Ejjk9De94cniOvh8mw/FtCYLqwOBjJsDhKBSnkkRgOabGdMP7FXGv 8CCVtm+vg0GOskMsPxxzmVKoiIgwEg1cjzKxW9rMKOQ9Oqt+MyrJsdOhE6MGjTkxVu7R Mw2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="L/SKUdtD"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 31-v6si32696947plc.140.2018.11.16.10.10.24; Fri, 16 Nov 2018 10:10:58 -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="L/SKUdtD"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727764AbeKQEWn (ORCPT + 99 others); Fri, 16 Nov 2018 23:22:43 -0500 Received: from mail.kernel.org ([198.145.29.99]:47348 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727462AbeKQEWn (ORCPT ); Fri, 16 Nov 2018 23:22:43 -0500 Received: from ziggy.de (unknown [93.176.147.153]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 370142086A; Fri, 16 Nov 2018 18:09:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1542391758; bh=tcLau1OHiSJKal0V6BJSGEwCEp2brxMeH34csJoXRZ4=; h=From:To:Cc:Subject:Date:From; b=L/SKUdtDMmIW6b6ZGweMqgYUwIViMpkc3YRREM/jaNiqHS5VkVuJe4vbPBEC+yue9 DdPe5SuvngefJhpQShnuYoV/aXGhKdHTnz1leqAvjmApvf/EhHBmGbEs7HQSKaMJuO DCfZMmbvdGb1G9Zr3s+lvTCCjnByTG0cgKfn9ZjE= From: matthias.bgg@kernel.org To: mturquette@baylibre.com, sboyd@kernel.org, matthias.bgg@gmail.com Cc: jasu@njomotys.info, sean.wang@kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Matthias Brugger Subject: [PATCH v2 0/3] Mark clocks as critical for MT6797 Date: Fri, 16 Nov 2018 19:08:58 +0100 Message-Id: <20181116180901.17737-1-matthias.bgg@kernel.org> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Matthias Brugger Jasper send this series some month ago. As there was no reaction from his side, I'll do a friendly take-over. I tested the patches on my Helios X20 boards and they fix the issue. I didn't add a Tested-by tag as I added my Signed-off-by. Changes since v1: - add a fixes tag. --- Currently, DRAM-related clocks and the axi_sel MUX are not marked with CLK_IS_CRITICAL for MT6797. This causes memory corruption when the system is booted without clk_ignore_unused. This patchset 1. Makes it possible to mark outputs of MUXes as critical by introducing a new macro, MUX_FLAGS, 2. Makes it possible to mark gates as critical by adding flags to mtk_gate, and 3. Marks axi_sel, ddrphycfg_sel, infra_dramc_f26m and infra_dramc_b_f26m as critical. The addition of flags to mtk_gate also exists in the patch series "Add basic and clock support for Mediatek MT8183 SoC" [1]. The type of flags is unsigned int in that series, but the real type is unsigned long, so my patch differs from that patch. [1] https://patchwork.kernel.org/patch/10549953/ Jasper Mattsson (3): clk: mediatek: Add MUX_FLAGS macro clk: mediatek: Add flags to mtk_gate clk: mediatek: Mark bus and DRAM related clocks as critical drivers/clk/mediatek/clk-gate.c | 4 +- drivers/clk/mediatek/clk-gate.h | 3 +- drivers/clk/mediatek/clk-mt6797.c | 64 ++++++++++++++++++------------- drivers/clk/mediatek/clk-mtk.c | 2 +- drivers/clk/mediatek/clk-mtk.h | 9 ++++- 5 files changed, 50 insertions(+), 32 deletions(-) -- 2.19.1