Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp1136574ybg; Wed, 29 Jul 2020 06:48:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzlJ828e//3kTN16XAN5ZSu4YQUUY49nYAp+aCjOjIbsOTVUWJnCUGuquN/GKiiCkF4W6ws X-Received: by 2002:a17:906:c0ce:: with SMTP id bn14mr31234173ejb.129.1596030509235; Wed, 29 Jul 2020 06:48:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596030509; cv=none; d=google.com; s=arc-20160816; b=aOTyWJYNMdrWh9ewKWRrERb9jS4eLKGUMuKKRxnzgsaJNXtc4qEAVTqtozojojY7BD YI7MDSpfUG3O28Jf5qM3jU5+wgp6xGiLlIvcviRHXSQGn7eJWYLEp4eRgRMsIVbqOrZy UzP8VLD0j+QydjMbNs6X6+TSsVbjgAGsXfTX6zqLD+GmCghXzdYj1xS/WIa94IuGqAhO 8Ld7uLQEArQ6sL1csx6GWNU2UL0HwCoalBk5DpRW6cqKm4ivgRFiFaail/jwxWuu1ckQ TeSs8dcHlIR97xf+F3GRVqpAIqy1qJiciWi2CtYxljHfzLXBcSDJlZVyFhRX/pDpdd0D syiA== 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; bh=nxH9vsjlbcgN3uUHXFQJDQE5efI/WRZeMpiPzGu3pS0=; b=RlX2iEzqgjMlQ+kJUGLgZbvUsQkOlyGzKIOdllGjZFvKTrRP7y8L2Akw1GfdOGo7GJ UB25FUaLAaauPBZlPQd//wvw6HuL+KEVwd9abhQrotfK4V3uJd84h0+IhKy1Dlie3Gxh 5VNjikonlHLQFgAVMNbmD64Vw5kx/IE7MM5RcdH7w9jY078EQjpJh+7e91FAYP/kcEaG DQbqwodL+ouTBB6KunKm9qkcTZnSS7IwE4YBIYNZt/DG4PM67bq9kiK5D4Ux2jCwZswx tz2v0PRT1x1A+YzWpKK5KlgEUTN7P4jwvGR7+rpKDmUHGfNYO4jicTmvVCjczwUNhIGi L6MA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l15si1340551edr.130.2020.07.29.06.48.07; Wed, 29 Jul 2020 06:48:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726606AbgG2Nrw (ORCPT + 99 others); Wed, 29 Jul 2020 09:47:52 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:39634 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726336AbgG2Nrv (ORCPT ); Wed, 29 Jul 2020 09:47:51 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: gtucker) with ESMTPSA id 6F6B6283C05 From: Guillaume Tucker To: Russell King , Kukjin Kim , Krzysztof Kozlowski , Rob Herring Cc: kernel@collabora.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/3] ARM: exynos: clear L220_AUX_CTRL_NS_LOCKDOWN in default l2c_aux_val Date: Wed, 29 Jul 2020 14:47:31 +0100 Message-Id: <860eb8a1eed879e55daf960c96acdac514cbda93.1596028601.git.guillaume.tucker@collabora.com> X-Mailer: git-send-email 2.20.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 The L220_AUX_CTRL_NS_LOCKDOWN flag is set during the L2C enable sequence. There is no need to set it in the default register value, this was done before support for it was implemented in the code. It is not set in the hardware initial value either. Clean this up by removing this flag from the default l2c_aux_val, and add it to the l2c_aux_mask to print an alert message if it was already set before the kernel initialisation. Signed-off-by: Guillaume Tucker --- arch/arm/mach-exynos/exynos.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-exynos/exynos.c b/arch/arm/mach-exynos/exynos.c index 36c37444485a..a96f3353a0c1 100644 --- a/arch/arm/mach-exynos/exynos.c +++ b/arch/arm/mach-exynos/exynos.c @@ -193,8 +193,8 @@ static void __init exynos_dt_fixup(void) } DT_MACHINE_START(EXYNOS_DT, "Samsung Exynos (Flattened Device Tree)") - .l2c_aux_val = 0x3c400000, - .l2c_aux_mask = 0xc20fffff, + .l2c_aux_val = 0x38400000, + .l2c_aux_mask = 0xc60fffff, .smp = smp_ops(exynos_smp_ops), .map_io = exynos_init_io, .init_early = exynos_firmware_init, -- 2.20.1