Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3707383pxb; Mon, 24 Jan 2022 15:57:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJwWH/gpEAyweECWNUtzQiix+OrIYXL/IG9ebgvOiFfwF6R8prZJ8X6+tXlJ7D1UNNY0z62K X-Received: by 2002:a17:90a:fe1:: with SMTP id 88mr728705pjz.150.1643068668432; Mon, 24 Jan 2022 15:57:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643068668; cv=none; d=google.com; s=arc-20160816; b=UVLnzOmI6yHdvibd2YKosEU2/T3gxlkQZTeCy9a1vEKXcfsK0E98RHY0kRxEKlNAvc rUzsPSZEZobN0+wB5P/oSdBwAzI2ZH0bICs8f3DBml39h1neE9eA8HJz6oHXPysywVV9 x/ERbE9gZYAgtk6rDpAVJpwK4o28ENExXGRGUg//dNxr4L7WLVZatyrh7T2w08fVSfkF UqIRmAE//GQg+Rzd7spNaY7ELRVbp/DnD2+Xgi1JctLrn8HKZTNX05DxMfrAFcGikpSv nZjKGjy9TEMEb9ybAYRKzC/o3ptHsvTSppsiZWgWymG37n+Rd5utGv2wPKc8rxfK6BVE nhHQ== 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=MDf0P+UCKO5NO5gkhgZIhii/C67nLyBw4lNF0cLtdns=; b=zz+hU3r//0XKTJ5yYyIDvL2tUqOEupRGr3YyjBfxz8XTwp0onHzrpwgWbuaE2PNIZl Q7/lsFjNtolDy3ut1SprV/r8Xu49vmhsturt5fsoyIPF09E2lbOqbu/mIaq6Vj4WrpSt 6n7CzWDQRx7tzMKh7tDSaO6XzLOXzfLy3cSOyhA3jumCF1WdjHpm5Dq58kzkY9bSa5vF gJFy21lemHGjI2uPuhXQcwJIKqNnQvIWYU/O2BRQrW6tdbv8lpXLo0Xni2uRsHPL+o3a fM62APebKNdZMSaDpOiMGORFsPKaszpfgU3a5K64kOEvh5uNiLT6vTwifIiE9oVmi9r9 4FLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=aKh1gYRS; 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=pass (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 d21si17122703pfv.81.2022.01.24.15.57.36; Mon, 24 Jan 2022 15:57:48 -0800 (PST) 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=@linuxfoundation.org header.s=korg header.b=aKh1gYRS; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2365767AbiAXXvl (ORCPT + 99 others); Mon, 24 Jan 2022 18:51:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47708 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1843485AbiAXXED (ORCPT ); Mon, 24 Jan 2022 18:04:03 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 35D90C06C5B5; Mon, 24 Jan 2022 13:15:48 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id EF778B80CCF; Mon, 24 Jan 2022 21:15:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A11C3C340E4; Mon, 24 Jan 2022 21:15:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643058945; bh=ZTrTILL+jVZqYLfi1HTYLKwvvvtqq9rneJNTbYsC+Cc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=aKh1gYRSsDwVu7Yl+znqypXGnHKHALv6GMGDso0G9bRSJGaIdIm9n+8WN4d5Oqge3 fVcLL6s1uB5QccBOAnU8Yht1wEzIomrWjZVMsNoo2YheqLMYP72P4qslCaygE1nrAx yxd3LVlcwNuqF6iM+vmVq09ACP6y8IyXTZNwRDFs= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Adam Ford , Fabio Estevam , Abel Vesa , Sasha Levin Subject: [PATCH 5.16 0454/1039] clk: imx8mn: Fix imx8mn_clko1_sels Date: Mon, 24 Jan 2022 19:37:23 +0100 Message-Id: <20220124184140.560309215@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184125.121143506@linuxfoundation.org> References: <20220124184125.121143506@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: Adam Ford [ Upstream commit 570727e9acfac1c2330a01dd5e1272e9c3acec08 ] When attempting to use sys_pll1_80m as the parent for clko1, the system hangs. This is due to the fact that the source select for sys_pll1_80m was incorrectly pointing to m7_alt_pll_clk, which doesn't yet exist. According to Rev 3 of the TRM, The imx8mn_clko1_sels also incorrectly references an osc_27m which does not exist, nor does an entry for source select bits 010b. Fix both by inserting a dummy clock into the missing space in the table and renaming the incorrectly name clock with dummy. Fixes: 96d6392b54db ("clk: imx: Add support for i.MX8MN clock driver") Signed-off-by: Adam Ford Reviewed-by: Fabio Estevam Link: https://lore.kernel.org/r/20211117133202.775633-1-aford173@gmail.com Signed-off-by: Abel Vesa Signed-off-by: Sasha Levin --- drivers/clk/imx/clk-imx8mn.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/clk/imx/clk-imx8mn.c b/drivers/clk/imx/clk-imx8mn.c index c55577604e16a..021355a247081 100644 --- a/drivers/clk/imx/clk-imx8mn.c +++ b/drivers/clk/imx/clk-imx8mn.c @@ -277,9 +277,9 @@ static const char * const imx8mn_pdm_sels[] = {"osc_24m", "sys_pll2_100m", "audi static const char * const imx8mn_dram_core_sels[] = {"dram_pll_out", "dram_alt_root", }; -static const char * const imx8mn_clko1_sels[] = {"osc_24m", "sys_pll1_800m", "osc_27m", - "sys_pll1_200m", "audio_pll2_out", "vpu_pll", - "sys_pll1_80m", }; +static const char * const imx8mn_clko1_sels[] = {"osc_24m", "sys_pll1_800m", "dummy", + "sys_pll1_200m", "audio_pll2_out", "sys_pll2_500m", + "dummy", "sys_pll1_80m", }; static const char * const imx8mn_clko2_sels[] = {"osc_24m", "sys_pll2_200m", "sys_pll1_400m", "sys_pll2_166m", "sys_pll3_out", "audio_pll1_out", "video_pll1_out", "osc_32k", }; -- 2.34.1