Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp641023rdh; Sun, 24 Sep 2023 05:52:02 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGyhPEwPkNAu7jERmVZq7T9/oTSWVIj8CR/8XxBuPeDhTsFbTHPmLidL7JIbBli/xN6dOvY X-Received: by 2002:a17:902:7798:b0:1c0:d5b1:2de8 with SMTP id o24-20020a170902779800b001c0d5b12de8mr2347107pll.9.1695559922102; Sun, 24 Sep 2023 05:52:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695559922; cv=none; d=google.com; s=arc-20160816; b=aW//xQs6NJfb8rdFtyIyDmDjDQxcoWMYyTsOrNnQFd6WqMO0KVO3dYrefs5RVIo81O yOJ2dzWuoyQ4ycW/XxMvDvwNJvAfSg4ksR0w3zDZSEgDkNVZ+6Ed9yypbFzi+EyKT9hT CiGPHRsonLJDsug6jA6Nhan9v3ExnOzAO5ugl+ZQolAx+rmCcPzFz18Wab+mQriwEXof TBzBBFDKAl7id/1UQJxb8UwDngFumbsfyOmXrqcJRP2Ih6TdV2/G45CISkkKWrNaUyXY U9a8t1tYR+eU65WsQ+e/Q+rMiH1b9aC1xhU0M38Dj6JnTSpG5LbtOq4urohyckjaAvE7 Xx8A== 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=rGg0GkpzMKdYzFMnpmJHRL7t1F0lQdLme0PwfROG7pM=; fh=2J/hxRKiOJzeHKEL0WwKU6JKSAOEjiuTZmZRU2+VnXU=; b=fE8rSI50Y1MdMD+uq/J4bBDEAE2CplKFt20QxNjGhKzU8XBDAaQPW5XnKIyP8CWKJR j4Z03JA2Bn1LtFShn/Fi52vrLRLIpDVkAt1MZm/EC33NzZOQlG5gLrqZZa8VVTiitFE5 kzwwqsZIk4LhZYOvKarZ+umNvn7usTjOUALtq7PK9E8RANVapYwedhG5R0+7vM8S+iAy XMrLquiuniLdGf286ilBIqqQ6twyKCLIDG7qdFzJBoL77xvF6hoWKvR7j/moqsKYoeJB dBWhu7mvKIVrYY6d3BwrtgkSnwP9p5TbJFQt1Vn4yw2jeByVCD0RvRrEzzq5bf9QcFK0 KBkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=t8Crc2L8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id p16-20020a170902e75000b001c3e500e6d4si8201984plf.344.2023.09.24.05.52.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Sep 2023 05:52:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=t8Crc2L8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 111D0802FA37; Sun, 24 Sep 2023 05:52:00 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229526AbjIXMwA (ORCPT + 99 others); Sun, 24 Sep 2023 08:52:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59444 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229450AbjIXMv7 (ORCPT ); Sun, 24 Sep 2023 08:51:59 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D651CFC for ; Sun, 24 Sep 2023 05:51:52 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 504D8C433C7; Sun, 24 Sep 2023 12:51:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695559912; bh=Ec0Vn7quyagdyOco4KV9JC+vyZ+v9g289IRTEXvFvKc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=t8Crc2L8lOIU5IHTTuinuS9vpV5eMuU2V17OQ34N8n87SNukriYY8bp6V50D/H9Rr 3/6gVlQewDazwH0Jr4n29i1WXlZhzlBGWWJK8+VdITT7WrqQHDr1103mHUS+VFYyr2 h/XOgsXGr4oBup8wdijgNpfUMOEzUC3BfCBjss5ePFOLH52kajtjWYayZz9MjzomkW vyfYOIFJjR0FmujpbtPVO9qNfPJ0JaVQl0KI6pLhD5xMetzV0TuGVupPHKu6Ljb03V 6ieAjr7e1NZDk4e/UTIjOrkVDwa0JAyPCEoE2c5LdeWazhuWekgwpId7etxROcyEc4 fF6Yvv3A0Wcow== Date: Sun, 24 Sep 2023 20:51:42 +0800 From: Shawn Guo To: Nathan Rossi Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Nathan Rossi , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team Subject: Re: [PATCH] soc: imx8m: Enable OCOTP clock for imx8mm before reading registers Message-ID: <20230924125142.GE7231@dragon> References: <20230814015700.70156-1-nathan@nathanrossi.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230814015700.70156-1-nathan@nathanrossi.com> X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Sun, 24 Sep 2023 05:52:00 -0700 (PDT) On Mon, Aug 14, 2023 at 01:57:00AM +0000, Nathan Rossi wrote: > From: Nathan Rossi > > Commit 836fb30949d9 ("soc: imx8m: Enable OCOTP clock before reading the > register") added configuration to enable the OCOTP clock before > attempting to read from the associated registers. > > This same kexec issue is present with the imx8m SoCs that use the > imx8mm_soc_uid function (e.g. imx8mp). This requires the imx8mm_soc_uid > function to configure the OCOTP clock before accessing the associated > registers. This change implements the same clock enable functionality > that is present in the imx8mq_soc_revision function for the > imx8mm_soc_uid function. > > Signed-off-by: Nathan Rossi Applied, thanks!