Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1911069pxb; Thu, 16 Sep 2021 20:00:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzXh23Xi2wQY+UaxTBaRazEz4CikXk1FmQH96T++TNLhP2ECYhV0rxIyLjj/RlE35jOZhIk X-Received: by 2002:a6b:5a1a:: with SMTP id o26mr6849586iob.40.1631847649528; Thu, 16 Sep 2021 20:00:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631847649; cv=none; d=google.com; s=arc-20160816; b=t1rTuzdOBBs2n/cX4YfF/ExOd+P1VPxsDzQFoK/gA7pV8q6X+jbGFmKZn1RCd1xf3h nCTjMpW+k/Wk4cnHHlCv70/jW6HWnl1IBvZcOO9wSdtHuEO7L/vNixl0u7GbWhzRahkZ jthHxP3c4zNlZNVtmy0LnM/yx+/F6W0jY772IC0A+xBxlEnWTzGhryOzuhYDCDDpScs0 BWe/+PVDcxqmCAVDqDYPzSRy3pIl3SUkAZmhbPkpvxNJ0iVFmTJmRrHSCA8GjfRzVC4X 1wc6fAQYl3zl+WKFtQaF8S/IPIBI/cshs+407fGsgT83Skll/roQsgv+ZX3CGk6QYTOg NlKA== 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=mXj4MukpU0O7ZCshSUnrmjT4CIJV8UZFZMMw6bESzBk=; b=YJm+ZqZoDSLbP/dFEvsJQK6redDYDdxRWQEisfEfTRXB6K+Iyc7I7fC/ajYL4tzT13 JUFvwzdjvknDhZKQ4WKAFBpjNwGCkdhpXPtaX5B3rG0HF3zF4Tm38wIJ9RhTsJAYwmiI 9coVKpElMiVsFnT11TDf4d63BzkDIMxO1SzaJK5UF19YXCrfPWBrYo6KNw/Px0gDzG1k NJ1u8pvjTA8JjWlDWv54pgKwFTRxbw9j8COeiIJJtNfBzK6PxpgYh2UJLc1JQupvvXum VhJduJZRm9Ym0w4hkYHCaiW/X2sPHeNk3kqrjlN7dLmj93QezQ6Xt9+MKbGg14lkZGdq 3ZvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=jCIEOhyQ; 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 q11si4227857ilg.114.2021.09.16.20.00.37; Thu, 16 Sep 2021 20:00:49 -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=@linuxfoundation.org header.s=korg header.b=jCIEOhyQ; 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 S1347765AbhIPR2C (ORCPT + 99 others); Thu, 16 Sep 2021 13:28:02 -0400 Received: from mail.kernel.org ([198.145.29.99]:44126 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351626AbhIPRSx (ORCPT ); Thu, 16 Sep 2021 13:18:53 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 3C95F61501; Thu, 16 Sep 2021 16:41:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1631810479; bh=I0QPgwcFRJ/GnSD7wz7KIPD699W5Jik5I6B903Tw7dA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jCIEOhyQkoDur3cJK+liIZfr+UozlOUav5ppTFbvHZAMeqpt8gbxQ6f4uqbKj9R/h 2pdswxFHXnUMrVVDKkSHKc1aM8unaxIWluqpsSL9FbezT1+kud/YBYsgi+J4wv4h0M 3e96ADW17JQwG1Km3U0DVpB7X2y3a5c1xYoGnlcA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Lucas Stach , Abel Vesa , Sasha Levin Subject: [PATCH 5.14 129/432] clk: imx8mm: use correct mux type for clkout path Date: Thu, 16 Sep 2021 17:57:58 +0200 Message-Id: <20210916155815.141285053@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210916155810.813340753@linuxfoundation.org> References: <20210916155810.813340753@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: Lucas Stach [ Upstream commit 1822b4dedc4d8cab96fd1d87bf8ff98194e29d9b ] The mux in the clkout path needs the current selected parent to be enabled for the switch to work. Use the correct mux type to have the clk framework take care of this requirement. Fixes: c1ae5c6f789a ("clk: imx8mm: add clkout1/2 support") Signed-off-by: Lucas Stach Reviewed-by: Abel Vesa Link: https://lore.kernel.org/r/20210628211554.2510238-1-l.stach@pengutronix.de Signed-off-by: Abel Vesa Signed-off-by: Sasha Levin --- drivers/clk/imx/clk-imx8mm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/imx/clk-imx8mm.c b/drivers/clk/imx/clk-imx8mm.c index f1919fafb124..ce7127ccddab 100644 --- a/drivers/clk/imx/clk-imx8mm.c +++ b/drivers/clk/imx/clk-imx8mm.c @@ -407,10 +407,10 @@ static int imx8mm_clocks_probe(struct platform_device *pdev) hws[IMX8MM_SYS_PLL2_500M] = imx_clk_hw_fixed_factor("sys_pll2_500m", "sys_pll2_500m_cg", 1, 2); hws[IMX8MM_SYS_PLL2_1000M] = imx_clk_hw_fixed_factor("sys_pll2_1000m", "sys_pll2_out", 1, 1); - hws[IMX8MM_CLK_CLKOUT1_SEL] = imx_clk_hw_mux("clkout1_sel", base + 0x128, 4, 4, clkout_sels, ARRAY_SIZE(clkout_sels)); + hws[IMX8MM_CLK_CLKOUT1_SEL] = imx_clk_hw_mux2("clkout1_sel", base + 0x128, 4, 4, clkout_sels, ARRAY_SIZE(clkout_sels)); hws[IMX8MM_CLK_CLKOUT1_DIV] = imx_clk_hw_divider("clkout1_div", "clkout1_sel", base + 0x128, 0, 4); hws[IMX8MM_CLK_CLKOUT1] = imx_clk_hw_gate("clkout1", "clkout1_div", base + 0x128, 8); - hws[IMX8MM_CLK_CLKOUT2_SEL] = imx_clk_hw_mux("clkout2_sel", base + 0x128, 20, 4, clkout_sels, ARRAY_SIZE(clkout_sels)); + hws[IMX8MM_CLK_CLKOUT2_SEL] = imx_clk_hw_mux2("clkout2_sel", base + 0x128, 20, 4, clkout_sels, ARRAY_SIZE(clkout_sels)); hws[IMX8MM_CLK_CLKOUT2_DIV] = imx_clk_hw_divider("clkout2_div", "clkout2_sel", base + 0x128, 16, 4); hws[IMX8MM_CLK_CLKOUT2] = imx_clk_hw_gate("clkout2", "clkout2_div", base + 0x128, 24); -- 2.30.2