Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3703165imu; Mon, 28 Jan 2019 09:18:24 -0800 (PST) X-Google-Smtp-Source: ALg8bN46t6I/y4TvhcqBITdwHqUM+h670nQtZLLkz2lvATSnDXte9E6sNHCvpR04BtBID1qGuNyW X-Received: by 2002:a17:902:5a5:: with SMTP id f34mr22646756plf.161.1548695904634; Mon, 28 Jan 2019 09:18:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548695904; cv=none; d=google.com; s=arc-20160816; b=sXK8O/rkJkp7oeaWQx1NzsVH6X3YqvBMplk7qXhd4pfvA+Ufj/pQ6R3HXyzJpccY+h +rrnYVlq4GBbGQyIvQZji43hwD9ldCGjuqqm1mK5crb2iYpAMX9jev7MHAaeDqmAW8w5 56/nS5iYBKtb27EXXW55BikrLENUVuY0iYa6gBsPWj0r4fjtKFiAqwf48k1ANUMFHUPo wxM2tj7CBseA0J3gV6pbulXUqaf5iZoYQgryMLmNeWHTpiWnAdvZhZvk7fs9UchjYzzz ijjLd/n9BQAbzwrLr7ncNBYPbAyortnzEonH1tDcYNQ9bhNBfBLsI+9mRaqWRoH8jYb1 JEaA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ruNbOSw24onMu1vn5MUcXiFTzJ65mkF1rCj+iUv/8y4=; b=t3CKmILzQRaerdf2q38IKqYe8VA7aiGe/jk2Fse2I07Pg4VENVDLNWz42nGtn1v41/ e2gE/qno5HEWVgeZjsHgz4W0uPQ8H3umV3SCVY7KVvN2k66pXn2x2sHp0RlRfgmVk2wd 4jqLl6xOxLTF2xbB0Z9xkBsZFaWq3YfQn/U2xela5BXZGnLWbQITdWhVOIMOr0SqlE+U aS2wpyYzJEQnSTryjUy5HiAqI7dSWaToPvqt27XOyZpiZsPkYpu+R16PzpUbdlnkA5yN ckALFZ67AQveQ1BAgWImnldfGhtCT1GnP7aLqvBIqRKQrvXJ3LhHYMxgixb0h8y5VMEz 1bdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ZnaaqakT; 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 z123si28384081pfb.104.2019.01.28.09.18.09; Mon, 28 Jan 2019 09:18:24 -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=ZnaaqakT; 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 S1731880AbfA1QFg (ORCPT + 99 others); Mon, 28 Jan 2019 11:05:36 -0500 Received: from mail.kernel.org ([198.145.29.99]:52470 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731858AbfA1QFd (ORCPT ); Mon, 28 Jan 2019 11:05:33 -0500 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (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 889E821919; Mon, 28 Jan 2019 16:05:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1548691532; bh=GQQgd1h+nu0wddck8mihkJDmglqn6sJrcIm/erF9ZRE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZnaaqakT+BAY+WaVEQ3MAsx6oknmI69Y4opFdIs+9GawjgpGft5OWkbbP0G2Kh8hF YYla7DwPuC9nZR1CmT99Pik10AukKNsVsurLLORkRpdMl3nqm0QMD+Rk4EuNeevzI3 miQyEmhGI8s2NzqO6KxjIDZRFy1fLxXkh0jXoBIU= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Anson Huang , Anson Huang , Stephen Boyd , Sasha Levin , linux-clk@vger.kernel.org Subject: [PATCH AUTOSEL 4.19 132/258] clk: imx6sl: ensure MMDC CH0 handshake is bypassed Date: Mon, 28 Jan 2019 10:57:18 -0500 Message-Id: <20190128155924.51521-132-sashal@kernel.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190128155924.51521-1-sashal@kernel.org> References: <20190128155924.51521-1-sashal@kernel.org> MIME-Version: 1.0 X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Anson Huang [ Upstream commit 0efcc2c0fd2001a83240a8c3d71f67770484917e ] Same as other i.MX6 SoCs, ensure unused MMDC channel's handshake is bypassed, this is to make sure no request signal will be generated when periphe_clk_sel is changed or SRC warm reset is triggered. Signed-off-by: Anson Huang Signed-off-by: Stephen Boyd Signed-off-by: Sasha Levin --- drivers/clk/imx/clk-imx6sl.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/clk/imx/clk-imx6sl.c b/drivers/clk/imx/clk-imx6sl.c index eb6bcbf345a3..390e3e0ecc45 100644 --- a/drivers/clk/imx/clk-imx6sl.c +++ b/drivers/clk/imx/clk-imx6sl.c @@ -17,6 +17,8 @@ #include "clk.h" +#define CCDR 0x4 +#define BM_CCM_CCDR_MMDC_CH0_MASK (1 << 17) #define CCSR 0xc #define BM_CCSR_PLL1_SW_CLK_SEL (1 << 2) #define CACRR 0x10 @@ -409,6 +411,10 @@ static void __init imx6sl_clocks_init(struct device_node *ccm_node) clks[IMX6SL_CLK_USDHC3] = imx_clk_gate2("usdhc3", "usdhc3_podf", base + 0x80, 6); clks[IMX6SL_CLK_USDHC4] = imx_clk_gate2("usdhc4", "usdhc4_podf", base + 0x80, 8); + /* Ensure the MMDC CH0 handshake is bypassed */ + writel_relaxed(readl_relaxed(base + CCDR) | + BM_CCM_CCDR_MMDC_CH0_MASK, base + CCDR); + imx_check_clocks(clks, ARRAY_SIZE(clks)); clk_data.clks = clks; -- 2.19.1