Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4662293imu; Tue, 8 Jan 2019 04:13:44 -0800 (PST) X-Google-Smtp-Source: ALg8bN7uBPI3xFRRZS4UpOnk6b+mQWPyillA+DDh9XNON0Cll2EWUUGVdyqfaEFidw+6ULiSTKYM X-Received: by 2002:a63:9a09:: with SMTP id o9mr1285421pge.94.1546949624554; Tue, 08 Jan 2019 04:13:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546949624; cv=none; d=google.com; s=arc-20160816; b=BVmjZdH9ItF0rwRh1ZDB3Bxq648Z5LHqqkFlejrUsnCbw39yk9woAIKvUgTd4u8lIS DaA5pu4ep6ame4pfFDYtXKQJUiH+lIro27FAFhON7/bldhBlqIFrPMa1EcnLfkHBk8Db 5OaYWL2Zk1wXT0y1DAfiK7i+bUhba4Gelg/I6xEZJDq9EgAR+lFb28as4dWDGhtl5ybo JBEeQ4zdNAZVJUehp+R25y8ynDrXTFro4XxRsoDtaqRhROAltNe57rDvTSte4TWKLVfx nwZGQtcUsaUmb2nSox3uTA3etiATmAe1orn6qnUUxcKNmbnIuVtnXTQWxlQ09nQZ+hqM j6ug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=pWWBy/GUvgGNU8Q/ijxidkm4sXop3nYsOAcm8SE2Suc=; b=DAugAOKvIOzO+tsCpiCoxQTDD4sTKSaaEANzYkiWg/eNIn5vcfVnS/0YGgmqGsbRkJ kdhOEen71Wrl1YIAvTpPMBXvm7c5loMkzWsGDAQ2jZs6xT8pANCjqAoJFC+1U7BjhW3B 7xXGpX6LvPgJqWmcxF75cPJIfdbrwIhuoK5mGOh8Fa1G/PL5adIvgGlJHqvPGvskbBne S5ume0kgmJleGh98vxea3Kw8+s6nIcocRJc3ZCXanVPqZ/769idDL4oIQRtHrko2h+Z4 kMJjgtj34yqJtMywyryu/VYXHcoseK4retochtn0lu1hxJSt3jhJDmcxzAH2bFWt6JIK kTFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=yHQqEDPD; 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 j195si36544084pfd.165.2019.01.08.04.13.29; Tue, 08 Jan 2019 04:13:44 -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=yHQqEDPD; 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 S1728929AbfAHMMQ (ORCPT + 99 others); Tue, 8 Jan 2019 07:12:16 -0500 Received: from mail.kernel.org ([198.145.29.99]:34314 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727295AbfAHMMQ (ORCPT ); Tue, 8 Jan 2019 07:12:16 -0500 Received: from localhost.localdomain (unknown [37.223.143.46]) (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 6A0EB206B7; Tue, 8 Jan 2019 12:12:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1546949535; bh=T6m0dKZVliUU9xNTgRDym74Y+URjNa0LaY6gqMtauaw=; h=From:To:Cc:Subject:Date:From; b=yHQqEDPDoeiOiVMz0fJsHLuTC/dibq+/EFQRS+n3dd9tAHv/DsblOZ9L0mzxT/ze/ BvK4ocVK4NLTvt/pC9SUYYe6x6QeckMmBUnUI+yPtbD35DwYH62XV8RccTJ1VY9s+4 BMhFmtJJXUzvTue2Dq+kHtVAh3j1vJAabHTHXkrk= From: matthias.bgg@kernel.org To: mturquette@baylibre.com, sboyd@kernel.org, kevin-cw.chen@mediatek.com, mars.cheng@mediatek.com Cc: sean.wang@mediatek.com, matthias.bgg@gmail.com, jasu@njomotys.info, 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 v3 0/3] Mark clocks as critical for MT6797 Date: Tue, 8 Jan 2019 13:12:05 +0100 Message-Id: <20190108121208.2473-1-matthias.bgg@kernel.org> X-Mailer: git-send-email 2.16.4 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 v2 (https://patchwork.kernel.org/patch/10686759/): - axi_sel is not needed, drop CLK_IS_CRITICAL for it. - update commit message - add Acked-by from Mars 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 | 60 ++++++++++++++++++------------- drivers/clk/mediatek/clk-mtk.c | 2 +- drivers/clk/mediatek/clk-mtk.h | 9 +++-- 5 files changed, 48 insertions(+), 30 deletions(-) -- 2.20.1