Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3091395rwb; Mon, 15 Aug 2022 17:55:08 -0700 (PDT) X-Google-Smtp-Source: AA6agR4eXFmh5MKEE5jj+xGX91/GcljaoAnbeGmMiab/VvcDa0/fZAJphgsZT1HJDmRxgEbmrNFn X-Received: by 2002:a05:6402:11cf:b0:43d:fc84:c51a with SMTP id j15-20020a05640211cf00b0043dfc84c51amr16135039edw.80.1660611308132; Mon, 15 Aug 2022 17:55:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660611308; cv=none; d=google.com; s=arc-20160816; b=x774LzQ1dqxZrVbqMEEKhpwV2DA9okYzz3LzLmCtvMjb/XmITCTXclN0matbbwCNeO l0Dpw1XzfQdHRJGXHSOvS2Y8mSFVQy8TWqEGyZZi/WqRlM9/FsZJLqpJoAPmXb4WLkqB gXZcxm+HL75pS/y4jcLtDH1OlYj5sApfSET3RvzgKj5HqftqWZAKJZOgIsaGcinT5U0O mL4wRhWm9Pb1c2kFUF28uv1QzqOPz8EOzuPDFfDdKngXemgxMGByiB/otSgq3ToC1fdF i4z6c0MedJf6+2Fz/rJFyM8bfnqbwzCfsmA0MbIZBqnGgG2+Fi4eBQRzi6meRrMf4U9B 5s8g== 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=PWkadbp76xnz6wcPs86B7QBLV4VWiGNicOlQLUcHmQU=; b=YxOev2Ig90XAdVd5py58RdhKACnw5D7Ii6axcu61SguJX82Co4Xt+1gdpSABoYAhLp osYsyCVyhCi9AuGEleVqAu3Y/AeuG8q0cdT4gulkoUsmNsROwf+VabJLMld+GQ5+hMuh aOEKzhqi2t1Buu5oIaCN7MV+Z3E4i3JewfJJj+ffC83W/OlBnbXSQrGNSLDLK805A3Dk fIvwoAROo/HSH8Wv7Us+dnTnoZLTK3VLWil/er7eSKPZyksubOmv36cIoVN7z1HqQq9d y+QHNZ7G0GCyynKwaG52hF4yvzGBlEZ159mXGXVcTiH6ada2ICtd1Su6OxGHjrScY/ms kU5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=xM7dg68d; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sa24-20020a1709076d1800b007318692f59csi8914940ejc.935.2022.08.15.17.54.42; Mon, 15 Aug 2022 17:55:08 -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=@linuxfoundation.org header.s=korg header.b=xM7dg68d; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232142AbiHPAPo (ORCPT + 99 others); Mon, 15 Aug 2022 20:15:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54016 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354632AbiHPAGS (ORCPT ); Mon, 15 Aug 2022 20:06:18 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 607881705F9; Mon, 15 Aug 2022 13:28:26 -0700 (PDT) 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 dfw.source.kernel.org (Postfix) with ESMTPS id 8CE3C61089; Mon, 15 Aug 2022 20:28:25 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 755D0C433C1; Mon, 15 Aug 2022 20:28:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660595304; bh=1zVo5EEaQatHXI3wYiQzTgBe1L4ws1B/mp02biI9KXI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=xM7dg68dgMHMa9w06L6WAUOhlejlqcEc2z+eKk/R+SuVU21WVoyOBoiY6rPnXEnNb eR1+0wsm10ifFFnE7/p3Z0CaJTY08VaOSymQKUM4XA9u8dxfN/Ohfx010BE3zeh+HX noTPoyVrxqA2gB/AvhGOMmO3WPOYTx7bpx5k89sA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Haibo Chen , Jacky Bai , Peng Fan , Abel Vesa , Sasha Levin Subject: [PATCH 5.19 0721/1157] clk: imx93: use adc_root as the parent clock of adc1 Date: Mon, 15 Aug 2022 20:01:17 +0200 Message-Id: <20220815180508.329065034@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180439.416659447@linuxfoundation.org> References: <20220815180439.416659447@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 From: Haibo Chen [ Upstream commit 18d6d8fe4f24938985844d52c481b86fcce9d102 ] When debug, find after system boot up, all adc register operation will trigger system hang, this is because the internal adc ipg clock is gate off. In dts, only reference the IMX93_CLK_ADC1_GATE, which is adc1, no one touch the adc_root, so adc_root will be gate off automatically after system boot up. Fixes: 24defbe194b6 ("clk: imx: add i.MX93 clk") Signed-off-by: Haibo Chen Signed-off-by: Jacky Bai Signed-off-by: Peng Fan Reviewed-by: Peng Fan Reviewed-by: Abel Vesa Link: https://lore.kernel.org/r/20220609132902.3504651-2-peng.fan@oss.nxp.com Signed-off-by: Abel Vesa Signed-off-by: Sasha Levin --- drivers/clk/imx/clk-imx93.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/imx/clk-imx93.c b/drivers/clk/imx/clk-imx93.c index edcc87661d1f..172cd56c9610 100644 --- a/drivers/clk/imx/clk-imx93.c +++ b/drivers/clk/imx/clk-imx93.c @@ -150,7 +150,7 @@ static const struct imx93_clk_ccgr { { IMX93_CLK_A55_GATE, "a55", "a55_root", 0x8000, }, /* M33 critical clk for system run */ { IMX93_CLK_CM33_GATE, "cm33", "m33_root", 0x8040, CLK_IS_CRITICAL }, - { IMX93_CLK_ADC1_GATE, "adc1", "osc_24m", 0x82c0, }, + { IMX93_CLK_ADC1_GATE, "adc1", "adc_root", 0x82c0, }, { IMX93_CLK_WDOG1_GATE, "wdog1", "osc_24m", 0x8300, }, { IMX93_CLK_WDOG2_GATE, "wdog2", "osc_24m", 0x8340, }, { IMX93_CLK_WDOG3_GATE, "wdog3", "osc_24m", 0x8380, }, -- 2.35.1