Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2652234imj; Mon, 11 Feb 2019 06:30:22 -0800 (PST) X-Google-Smtp-Source: AHgI3IavUgqXWHahmW9/4LBgAPOxs1WB2zqEG036IYnBfYJCQiMS1/FA9hGpJJn5wAMQhuJaNT8V X-Received: by 2002:a17:902:7c8a:: with SMTP id y10mr36965624pll.71.1549895422082; Mon, 11 Feb 2019 06:30:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549895422; cv=none; d=google.com; s=arc-20160816; b=Vve1zvpT6pnX9Hy7eov0ijbUYu+g1GCb8yTZ5N6IHIssHkkWRGHyhLAZJHvY7smuEI ed8mxXw3IFpXOq6SvAnT8/m1gkJZdjWOWuVepHJYQPUNA0vsuEyEN6SXL5QQaEEOuBMP dRKUp0+95Y8lQ4uBHJXDxxOFwvhNMFpgWNDx+5N/Usa761TVgsUrfh6sDsZGaG34ZmY+ t+YK+oBiXE5F/MtKb9yZ1Moss0bgtCQZlrMQW79eol4S+kV6s+DRT1K2s0DAp6/TthWU BTc7JW2vj4gbiyc143WSQtn1bNlu/l+YXbgdZ8TnsX4D8adt4/z6n3lZbCdSzLX7+0hQ BMHg== 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=UVd/T2TICSRbj6mdcuVJUnitm+eXR7tCN3/YZB48qkQ=; b=Qu4Bg7QtOrS3NIAvp25ji5HE66daUfJe3eNfTdq0JiZPyQ+jH9SW7uO+CyFpCV830Y lEoanMIgolFWYk8ON25l8dhTLvSB9qb9LNhMwvewDLBoFMeNV5bMRt3ZCrn+ci4D0jfn 7VZ6v5xDWPXlsq5sD7fnrk6dkcjCjoryd8H6j7I31lrTMPMTA3T4yNa9rmmEAO7Jwpxu IRl4JmChqpP0LbUf7H5yfU+88bcPXeKX4Dsu/4N/RXM0WjG4JPJ4EpfhCgbnNsRsD9ik y9nosrdDnOHnVzG8TXufbOm/PCGJ5cFcL4AL9778cnExq+jmWxhj3jRfVuaV7pqwoSss jA1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=QPP2NWI+; 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 a23si10007239pls.384.2019.02.11.06.30.05; Mon, 11 Feb 2019 06:30:22 -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=QPP2NWI+; 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 S1729406AbfBKO3Q (ORCPT + 99 others); Mon, 11 Feb 2019 09:29:16 -0500 Received: from mail.kernel.org ([198.145.29.99]:35338 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727441AbfBKO3P (ORCPT ); Mon, 11 Feb 2019 09:29:15 -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 3AF1D20675; Mon, 11 Feb 2019 14:29:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1549895354; bh=fgJXysnpcU3d7ODoHZ+wLjwnEuj7qLwi34vj/ClCLPM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QPP2NWI+qg+mO37+SJwsMjgA5Qk1coTWhEESkE/aTjUSWFZK/lD4awuPNMG5olDTQ cz/GmXwlD0A9rkz/v0wBvYEI5oBZgLbZN7JNyriTQH8vqCVGIJOH1m1dpv4B91sTZa CsMjQrIvf2zC6wJjszWKjoOt4yB4METJk609tDMQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Anson Huang , Stephen Boyd , Sasha Levin Subject: [PATCH 4.20 146/352] clk: imx6sl: ensure MMDC CH0 handshake is bypassed Date: Mon, 11 Feb 2019 15:16:13 +0100 Message-Id: <20190211141855.878181497@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190211141846.543045703@linuxfoundation.org> References: <20190211141846.543045703@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore 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.20-stable review patch. If anyone has any objections, please let me know. ------------------ [ 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 6fcfbbd907a5..e13d8814cfa4 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 @@ -411,6 +413,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