Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3022785rwb; Mon, 15 Aug 2022 16:20:15 -0700 (PDT) X-Google-Smtp-Source: AA6agR6o+WnoNOR8zlNWQ0hF0qJCMuDnRnRYxPcZfEXUJx73CDvLAccpzMGZEzgFRTGGlL4eYoCh X-Received: by 2002:a17:90b:3ec1:b0:1f5:15a6:aaf5 with SMTP id rm1-20020a17090b3ec100b001f515a6aaf5mr20785544pjb.123.1660605615375; Mon, 15 Aug 2022 16:20:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660605615; cv=none; d=google.com; s=arc-20160816; b=xQZDWjZVxxxENfLk3ohUCsEA8hd1RaI/00ehv5wju0uZMjA8nEaOlleN/APOPLIaEM W2J0e/CS3qIpAVQ2boJ61/ey9zKH5F4I8xL6fB9viG2V/RHh+pxPG6z39sHwD7rDHPyG QF/ahd5kj/bb9GYcGchL4C4cqRCp5LmhW/oS+lzUVrXXbugjp+k4BJR8qFPUueROINHJ BNPHRMC7teAOJOcTzLtWLIi+yHSzVB6t0kdMsHCsNkpAOhWeRtvrsiCrZMa0/44s0Wdi TbnanJMmxjSDIFoJALUbmwsI4gf3ItD0RSMNe+gZakeRRYErxPwn4MLhZqk6DhuRmQsM 5BGA== 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=eFxbRXsLHETEdc5Kch3EZNGDP42mhxkvdzUk5GvQT9nc6+ROWBkwv+cVfxVPx/wpbP iW4sNpkgvZLZQ0AXdKTb3JbxIhVKtY4/lKAwKs7XByHWcMv1duAEPnwhDcJ9SELPZVhn I2HWO3CFCoGrjmAWxp7UgEwIwcWsb+vrmD/c0ydKMZFuqHccojRPsEM0V+/fHr1/Iflg Wt/xM9UcyBfAKErmElu5+iISDC69taOxnAmY3WfFx//yNZJD0Gz3ubzBcG4Wg3MbxmkQ wzT4wQL8Rgt7ukZSMpfTFWBGTsIRuNEdXV8Pn3XJmhYCyx80H9LcYhat85j3pMOyoz0w GDpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=I2byXRrT; 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 h2-20020a170902b94200b0016d9ed57b9csi10154655pls.402.2022.08.15.16.20.04; Mon, 15 Aug 2022 16:20:15 -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=I2byXRrT; 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 S1349345AbiHOVpW (ORCPT + 99 others); Mon, 15 Aug 2022 17:45:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47514 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349559AbiHOVl0 (ORCPT ); Mon, 15 Aug 2022 17:41:26 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 67CAC5B7B1; Mon, 15 Aug 2022 12:29:14 -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 71C6761120; Mon, 15 Aug 2022 19:29:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 61F59C433C1; Mon, 15 Aug 2022 19:29:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660591752; bh=1zVo5EEaQatHXI3wYiQzTgBe1L4ws1B/mp02biI9KXI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=I2byXRrT1hJJyNn8R+BE3wQWvI731WlrVgdittIgIlzBS2cRX8ME3fqreVLslX1mB mVoNZy7lIU6/+vTNyuZhZjZxDbg6su3VHlr2HVt0rtt8YEpjB3K+VhWNN4wghTf7Pn cIDeNRHOQ0J9MyEouTR1zI3FOPsLlSbDuDU9JYco= 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.18 0676/1095] clk: imx93: use adc_root as the parent clock of adc1 Date: Mon, 15 Aug 2022 20:01:15 +0200 Message-Id: <20220815180457.344062796@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180429.240518113@linuxfoundation.org> References: <20220815180429.240518113@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