Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp284016pxx; Wed, 28 Oct 2020 05:01:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx2ZAMANgJP+r/xH72fCnEXvJvhGHwwyQc1ssIZkJ80ZaXEmAFOTPIwzaxJUrS2PFoZnHmD X-Received: by 2002:a05:6402:a45:: with SMTP id bt5mr7495641edb.101.1603886465987; Wed, 28 Oct 2020 05:01:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603886465; cv=none; d=google.com; s=arc-20160816; b=Kne11t8en6DRy3f/SXTS4Maigfo5wtNHCHsD2dDeX9P2OfZpyoaM/DlHGR6vt/FO02 4bfBWGAINPMhj5ix0hQCENWt/qD7sD0jQb23Ikeu/C3+JU4aMNtdGhFvW5OO/hlZdXJU kqnYlB5q+k9IG8h+IXxCItIhA43HvcosFOPyac0Vq7UsNjkjbjgp+9RxPSYIRhUR/zdV RJ2FU2I3cWUCALaxzdnS7CNYdzVwatXOmY/MQQz+8jDgb8QGydKIId3wcuRaO5dNOwgj WRh33z7FOxOwz4R9P2B17ZxI2JU5GtTRnYMWVvRPY+7ANZ5LiiUHLGdsqjvuvR+h6vaX 2uIw== 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=KHUZgp7nKZqgSZtOYn7v7TF0zoOnKhoFp/iqNvYVibM=; b=YTGdAjPwSEqhG9c/8JzknFa/S/N07axKNIWU60sIqu2TNUT/JGVQnO7QcD7DCADdlE T9ZY5FP2q0mtjtZvSpxQBHt2Ic/M3dtJgY5VbQJuBhRbx7VHBX35CXjTPObR9pZiIiQ7 p3CXon93O1ott51L/PAXrx26SbJMCnlaKuvXdQrwoDUo0+7otwgHiRujhFTfjrwMzCxd L3q1aVn46+c8m6xKqlfcPaxEvIuzGFVer0q6cDbr8cUuSjYw2ZlXeS5o28DrRo/Wg6o+ hkRvxPsFYOBqiuYNkVtN8qJGZQu8qMmxJQ/FqmZVvDoY9hr2X1kJoOoRxsXIL1rvFSXm vHGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=FN4jDUUP; 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 dk22si2709939edb.258.2020.10.28.05.00.43; Wed, 28 Oct 2020 05:01:05 -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=FN4jDUUP; 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 S1795047AbgJ0PO5 (ORCPT + 99 others); Tue, 27 Oct 2020 11:14:57 -0400 Received: from mail.kernel.org ([198.145.29.99]:44662 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1793936AbgJ0PJN (ORCPT ); Tue, 27 Oct 2020 11:09:13 -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 CD5372072E; Tue, 27 Oct 2020 15:09:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603811352; bh=f2+JQNdrQTSR/ufnvtpXCvGSA3LD53xvo3PSFACT0N4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FN4jDUUPCBOlJPs/BRi5rp5DW03y50lEO8BDainYHDjYtOLeRJW15/B1jXvhZ0/c3 1bGw68zY3GNz7W6fFTqLLvMZ9CeywleEG24PdPhnmTo1ZVNqbPEW9AcVGA6FJGnPxq 5zQQi5OdO7ePRWSF5dhHIsOmSN+I2y9ufoLspjTk= 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.8 463/633] clk: imx8mq: Fix usdhc parents order Date: Tue, 27 Oct 2020 14:53:26 +0100 Message-Id: <20201027135544.443823201@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027135522.655719020@linuxfoundation.org> References: <20201027135522.655719020@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 a64aace213c27..7762c5825e77d 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