Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp513165pxx; Wed, 28 Oct 2020 10:02:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyi1imboQ2821NYeJPJFjmm106Er60WGDrN3lqeji4JJ4a05EK3PTXBL8do1C8y+eK7t2kg X-Received: by 2002:aa7:d65a:: with SMTP id v26mr8960704edr.82.1603904533449; Wed, 28 Oct 2020 10:02:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603904533; cv=none; d=google.com; s=arc-20160816; b=l7pD92vREejVb0INLKvIiJd2pYcT1ruB0w9dg4bMx8UqQ2xaCuCsv17YYSHlTyiEny nmxRvMa9sPKK9y5FJjbW/9iKKIVYu2cJUtazdkSsn4kyRBUjRXg0FqSjJYR3tqZzh2VM zKgDJ7SQI+4ElCPqWylWts2KmXYAHPZINZsmMWZB1saQmAxmxAhTS4Q7K5EcbT4aLkK9 OQv+CpyONhLz+KTCv7Hljk6TEbKuwqtycGAP65RdLGWsWClPj460j3eKcbeTkClQeME/ bkE/f6JCDjxjtMcoA0R368LazJyp0OOtUC2Tt06ASkR+rsnsc9SU8qUzcHL9DjLtQ3ip dbtw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=9w2fvZWXT/p/Pd6Venc7vOWoIZ28qSjVaZPblcOWWGo=; b=Uaw4wvgIm46tCkljaDLv0b0tmYOoWZrAvYXYF1S/Fdkv3gleLtDMm3XjQxJw+DQezp ewd6di2K1P7CWBTrniAVmvxM1Cx626ug5F2YJxPvKh55SthxSkBQC9w0qU+UOYgZelXG jzcTP5FtCvNEnhm3rLZDolDp+NVn+giVqXlzeEbxTrXx0smcp8/NxFfXJSEIBP3M697W 6w2XBbuJ6A7aKNUSeGA7UFCpKjDCZDUEwXNTdZd4gUfrN5XZ19yaDhrNZ2YQcGMolOlZ +0atgXwW7g3n91olLC4aJKVTIbY2K5uPtVG8F5W4Gc08yqrlJKO9HhTs95oM5hmwxd0O mm8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="WA/U5LIz"; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ay1si32292edb.3.2020.10.28.10.01.27; Wed, 28 Oct 2020 10:02:13 -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; dkim=pass header.i=@kernel.org header.s=default header.b="WA/U5LIz"; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1819270AbgJ0R3J (ORCPT + 99 others); Tue, 27 Oct 2020 13:29:09 -0400 Received: from mail.kernel.org ([198.145.29.99]:42308 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1762407AbgJ0Omk (ORCPT ); Tue, 27 Oct 2020 10:42:40 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (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 CD61C206B2; Tue, 27 Oct 2020 14:42:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603809759; bh=LC/P8VN/9qOmZJgZ6TnLR19UItg4GXtxmH4xj0vEGXQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WA/U5LIzqZwQPvsIK7ZskJijuWuA+sqREisBfyvt5lyZRFT9gfH+udv2BNmoKcCma TLWbzA1mXhsWMwukUTA+/UV/RkRXqqZIFyK+jop7lpxZ95Q+TuyN5ApHfOWpZ98oPL uSLmJfup3P/iLo2SfTQtga6VyGDIhUDlGm4URkNU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Abel Vesa , Cosmin Stefan Stoica , Fabio Estevam , Stephen Boyd , Sasha Levin Subject: [PATCH 5.4 282/408] clk: imx8mq: Fix usdhc parents order Date: Tue, 27 Oct 2020 14:53:40 +0100 Message-Id: <20201027135508.130801929@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027135455.027547757@linuxfoundation.org> References: <20201027135455.027547757@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Abel Vesa [ Upstream commit b159c63d82ff8ffddc6c6f0eb881b113b36ecad7 ] According to the latest RM (see Table 5-1. Clock Root Table), both usdhc root clocks have the parent order as follows: 000 - 25M_REF_CLK 001 - SYSTEM_PLL1_DIV2 010 - SYSTEM_PLL1_CLK 011 - SYSTEM_PLL2_DIV2 100 - SYSTEM_PLL3_CLK 101 - SYSTEM_PLL1_DIV3 110 - AUDIO_PLL2_CLK 111 - SYSTEM_PLL1_DIV8 So the audio_pll2_out and sys3_pll_out have to be swapped. Fixes: b80522040cd3 ("clk: imx: Add clock driver for i.MX8MQ CCM") Signed-off-by: Abel Vesa Reported-by: Cosmin Stefan Stoica Link: https://lore.kernel.org/r/1602753944-30757-1-git-send-email-abel.vesa@nxp.com Reviewed-by: Fabio Estevam Signed-off-by: Stephen Boyd Signed-off-by: Sasha Levin --- drivers/clk/imx/clk-imx8mq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/imx/clk-imx8mq.c b/drivers/clk/imx/clk-imx8mq.c index 41fc9c63356ea..1846bd879dd71 100644 --- a/drivers/clk/imx/clk-imx8mq.c +++ b/drivers/clk/imx/clk-imx8mq.c @@ -157,10 +157,10 @@ static const char * const imx8mq_qspi_sels[] = {"osc_25m", "sys1_pll_400m", "sys "audio_pll2_out", "sys1_pll_266m", "sys3_pll_out", "sys1_pll_100m", }; static const char * const imx8mq_usdhc1_sels[] = {"osc_25m", "sys1_pll_400m", "sys1_pll_800m", "sys2_pll_500m", - "audio_pll2_out", "sys1_pll_266m", "sys3_pll_out", "sys1_pll_100m", }; + "sys3_pll_out", "sys1_pll_266m", "audio_pll2_out", "sys1_pll_100m", }; static const char * const imx8mq_usdhc2_sels[] = {"osc_25m", "sys1_pll_400m", "sys1_pll_800m", "sys2_pll_500m", - "audio_pll2_out", "sys1_pll_266m", "sys3_pll_out", "sys1_pll_100m", }; + "sys3_pll_out", "sys1_pll_266m", "audio_pll2_out", "sys1_pll_100m", }; static const char * const imx8mq_i2c1_sels[] = {"osc_25m", "sys1_pll_160m", "sys2_pll_50m", "sys3_pll_out", "audio_pll1_out", "video_pll1_out", "audio_pll2_out", "sys1_pll_133m", }; -- 2.25.1