Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp28085rwn; Wed, 14 Sep 2022 15:21:04 -0700 (PDT) X-Google-Smtp-Source: AA6agR6I/ntC0kxGchYU0rprBJ4u1Yso39gM/dZGi+3s8x0fWiR+SUWBMhXJ8cVTClVz4i/v7TeR X-Received: by 2002:a05:6402:b29:b0:44e:d429:749d with SMTP id bo9-20020a0564020b2900b0044ed429749dmr32774563edb.423.1663194063938; Wed, 14 Sep 2022 15:21:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663194063; cv=none; d=google.com; s=arc-20160816; b=prn9X71/swNRzkM0zcVx5c/1t9uTgtTY0rG10qzrsv7d/6w8MSMB1OivQsibhK2Klt eqTjFcyQpxdi7SUkSjTf1HEey1hn/s7JaQ+0Weer1+rMG0EfQo831dbl0qy25sa+1fyk 5qN7Sre53qOaK6iKyHhVD8iThA74rfNe9foEcJQE+TNv+dezBfAOPcPVwWun3ziYU0u6 6wIMoBwwVmxNHzR8YPiSt6mmNFbT5NKn74RdseNpgnO2uLe/ZpsdYgoU9a7F/EfZ5H0c jgm5sIejsu+5dNwJs5QaOFILSh7oCkfgYiC0xuJQgFUF2QY+u2iNLPYBD0kHCxZ/P6xv ZGuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=NtHUpnkTzZLClNVo69m+97iJj6YVMUW1mrBbO6+GYx4=; b=jjPpGjCHK6pqfqybCoAOx+1MyapAFFnQzugBkppSxkMdDio/SZ5Q3jKkYGoIO1qtCQ aaXp6OTUAqlSvJvN0EgJpfvIkU6QzpSdV9JMJ0sn1yQOAIOUrkaf+PTjeHQ27jKe15r6 NWOHVW8kQHUsxkpyF63caNX7EyrSPMoVT67IjPsa9eEZchSb9goLJNTaRE3SHbKmc7mm e9JHyoXYew2HyDnk51zQ6vFMI70zQ2b1F/z/RmIHi+KG/6gK5VTPTxvJh6Sd+4kbvB5u k67Io7PP30Opz/EapYeYCBfb317gvmr4QcORoLx9x0CSqWjFKVSaRQDBRic2S2cL6253 9NGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=k2pheIKK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p25-20020a056402501900b0045102ae16f9si13022670eda.605.2022.09.14.15.20.27; Wed, 14 Sep 2022 15:21:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=k2pheIKK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229499AbiINWLO (ORCPT + 99 others); Wed, 14 Sep 2022 18:11:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46984 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229653AbiINWLI (ORCPT ); Wed, 14 Sep 2022 18:11:08 -0400 Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C3B9186FC5 for ; Wed, 14 Sep 2022 15:11:05 -0700 (PDT) Received: by mail-wm1-x334.google.com with SMTP id o20-20020a05600c4fd400b003b4a516c479so1998388wmq.1 for ; Wed, 14 Sep 2022 15:11:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date; bh=NtHUpnkTzZLClNVo69m+97iJj6YVMUW1mrBbO6+GYx4=; b=k2pheIKKkU+v+L7T78yXrfbXdox99kc/Tr45O+C7PY7veqxy0014cMCxQVXON4s2s5 bjH2835AjYfVooRAqAaLXN46FFfFKz+yTuex+r2f7lCxZurHDc4UdYiF8eLRo0KAplWR howoQOCotQNuEVzUXqcqGIoxmMAnxUpg1Nfe9d0Jxelq/67lT0FWysxG1WSfq+tllrjF MJGftTJiPRdKNtaMK8f6XZUTaNntZtfd/XstIgXIWzhi4UbcNZACk5afdo4Gcg15URcE POfHX75eaFbmiVIcvYCWJEfT2RE09oo6kgsX5SeMsEEBrOhKyU0oNum9hOQ4q8nVbdPe lGkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date; bh=NtHUpnkTzZLClNVo69m+97iJj6YVMUW1mrBbO6+GYx4=; b=YOkKf3Y4LBDt2oHmesmOM5KL8iayzsv+tkCT5IZQ55OxXx/svWRGbEtB7T7xxdLWpz byOVrm65hwUPOLtMo2560nG26vfETYMwnN8jkTVxV++jSxKycb6vnnrnuI+GhlS4ollL hPvaIODjMfF9/9LRZqYQQsBgn2FAoWMLBJ26eRXbn7YogFQWSvxz+vQZwWBvDKP9RbFw 5lyUuj2VUhtPVh842rvZBimz5GUUpkFPRKSBZmpujxP9Yx3OCx+ah3PllUi/bfIt74BF RprSuXErvlktZ72DTA9iClRKvDinMfHPT7IILD9APyViYNpWp0jh3PINV/1Y1u0knhNm RaUQ== X-Gm-Message-State: ACgBeo2+I9+YEltU9vdFinntku8kHMnVsqxNgZx67IiMNCUZCCnuKDdU SlTMvLIx4B2dfAutJ76EP7COcA== X-Received: by 2002:a1c:4b0d:0:b0:3b4:76ae:f7a5 with SMTP id y13-20020a1c4b0d000000b003b476aef7a5mr4848503wma.23.1663193464311; Wed, 14 Sep 2022 15:11:04 -0700 (PDT) Received: from linaro.org ([94.52.112.99]) by smtp.gmail.com with ESMTPSA id q16-20020adff950000000b0022a9246c853sm396428wrr.41.2022.09.14.15.11.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Sep 2022 15:11:03 -0700 (PDT) Date: Thu, 15 Sep 2022 01:11:02 +0300 From: Abel Vesa To: Han Xu , Stephen Boyd Cc: Abel Vesa , Michael Turquette , Stephen Boyd , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , "open list:NXP i.MX CLOCK DRIVERS" , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , open list , miquel.raynal@bootlin.com, linux-mtd@lists.infradead.org Subject: Re: [PATCH] clk: imx: imx6sx: remove the SET_RATE_PARENT flag for QSPI clocks Message-ID: References: <20220914201049.3508104-1-han.xu@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220914201049.3508104-1-han.xu@nxp.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 22-09-14 15:10:48, Han Xu wrote: > There is no dedicate parent clock for QSPI so SET_RATE_PARENT flag > should not be used. For instance, the default parent clock for QSPI is > pll2_bus, which is also the parent clock for quite a few modules, such > as MMDC, once GPMI NAND set clock rate for EDO5 mode can cause system > hang due to pll2_bus rate changed. > > Fixes: f1541e15e38e ("clk: imx6sx: Switch to clk_hw based API") > Signed-off-by: Han Xu Acked-by: Abel Vesa Stephen, will you be picking this? > --- > drivers/clk/imx/clk-imx6sx.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/clk/imx/clk-imx6sx.c b/drivers/clk/imx/clk-imx6sx.c > index 2301d8fb8c76..1e53e366cde7 100644 > --- a/drivers/clk/imx/clk-imx6sx.c > +++ b/drivers/clk/imx/clk-imx6sx.c > @@ -324,13 +324,13 @@ static void __init imx6sx_clocks_init(struct device_node *ccm_node) > hws[IMX6SX_CLK_SSI3_SEL] = imx_clk_hw_mux("ssi3_sel", base + 0x1c, 14, 2, ssi_sels, ARRAY_SIZE(ssi_sels)); > hws[IMX6SX_CLK_SSI2_SEL] = imx_clk_hw_mux("ssi2_sel", base + 0x1c, 12, 2, ssi_sels, ARRAY_SIZE(ssi_sels)); > hws[IMX6SX_CLK_SSI1_SEL] = imx_clk_hw_mux("ssi1_sel", base + 0x1c, 10, 2, ssi_sels, ARRAY_SIZE(ssi_sels)); > - hws[IMX6SX_CLK_QSPI1_SEL] = imx_clk_hw_mux_flags("qspi1_sel", base + 0x1c, 7, 3, qspi1_sels, ARRAY_SIZE(qspi1_sels), CLK_SET_RATE_PARENT); > + hws[IMX6SX_CLK_QSPI1_SEL] = imx_clk_hw_mux("qspi1_sel", base + 0x1c, 7, 3, qspi1_sels, ARRAY_SIZE(qspi1_sels); > hws[IMX6SX_CLK_PERCLK_SEL] = imx_clk_hw_mux("perclk_sel", base + 0x1c, 6, 1, perclk_sels, ARRAY_SIZE(perclk_sels)); > hws[IMX6SX_CLK_VID_SEL] = imx_clk_hw_mux("vid_sel", base + 0x20, 21, 3, vid_sels, ARRAY_SIZE(vid_sels)); > hws[IMX6SX_CLK_ESAI_SEL] = imx_clk_hw_mux("esai_sel", base + 0x20, 19, 2, audio_sels, ARRAY_SIZE(audio_sels)); > hws[IMX6SX_CLK_CAN_SEL] = imx_clk_hw_mux("can_sel", base + 0x20, 8, 2, can_sels, ARRAY_SIZE(can_sels)); > hws[IMX6SX_CLK_UART_SEL] = imx_clk_hw_mux("uart_sel", base + 0x24, 6, 1, uart_sels, ARRAY_SIZE(uart_sels)); > - hws[IMX6SX_CLK_QSPI2_SEL] = imx_clk_hw_mux_flags("qspi2_sel", base + 0x2c, 15, 3, qspi2_sels, ARRAY_SIZE(qspi2_sels), CLK_SET_RATE_PARENT); > + hws[IMX6SX_CLK_QSPI2_SEL] = imx_clk_hw_mux("qspi2_sel", base + 0x2c, 15, 3, qspi2_sels, ARRAY_SIZE(qspi2_sels); > hws[IMX6SX_CLK_SPDIF_SEL] = imx_clk_hw_mux("spdif_sel", base + 0x30, 20, 2, audio_sels, ARRAY_SIZE(audio_sels)); > hws[IMX6SX_CLK_AUDIO_SEL] = imx_clk_hw_mux("audio_sel", base + 0x30, 7, 2, audio_sels, ARRAY_SIZE(audio_sels)); > hws[IMX6SX_CLK_ENET_PRE_SEL] = imx_clk_hw_mux("enet_pre_sel", base + 0x34, 15, 3, enet_pre_sels, ARRAY_SIZE(enet_pre_sels)); > -- > 2.25.1 >