Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1888335rwb; Fri, 11 Nov 2022 01:44:48 -0800 (PST) X-Google-Smtp-Source: AA0mqf6c1Sym8SCqS7l43LJm5zjIk0oy+UVqGnAkEDCvsaLW7gtYlb+zmaL6gbvcH94fyzyqVT/h X-Received: by 2002:a17:906:24d9:b0:7ad:2da5:36e1 with SMTP id f25-20020a17090624d900b007ad2da536e1mr1117133ejb.548.1668159888432; Fri, 11 Nov 2022 01:44:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668159888; cv=none; d=google.com; s=arc-20160816; b=BTNKiP0PAqN0MecKqsGzjt21smfZhuvMkDZ9dBGJ9oDQebEcRI6mug32GJtXjZ0axi SJ+DRpxPxrzST5D/GwssNBchA3HADu2OQxRPE/Q72vUFeqweLsJBT5tlEHEx2JS2srs8 2wsZl4hix28ntLyMyMBfS5QfNk8ELgyAgc5ejQb+ONUw2jzCFgiOGH/p/IDBmgxme4Td h/QglHkBJ57YSfY9cI8jVhQS7sBrjGu0mQu3hdhdDJYKN6xXs61BT9GBafiouxYXniQq AYXTJ/EXq1K2FY3/Jq8c2CSyHgH/Te41BoN5JBzqzQBoUDP0P5JF38gFlrFoiuxaq5Me V4TQ== 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:date:cc:to:from:subject :message-id; bh=2bHVjJd5MkGAJ5H3W3Pr7e4dmoXyBr8oQnaNB0kJB88=; b=jxudmCSN23HPyopcsn3B3Uod8vtXNEui0OK+Wx2XePILWnVJR/F7dToKlXTyXfZ7TR tqXog5HQ4XRj+cnG8QkpTXJ9L+TFmw9nLzWJhKC9cy4w6Vn/8l0V7RSFjg4hBpwoiI4v FDmOZ7mVC2F8oAKbhbzVBs1X+4B7UOj328qjHQqJ3AmJXDVXmk6QeQGIL7P4+jiR2i2O Lee86N7X48V1pThiZSKcKFWWz/3g6Ua3ijiG+uzprzod8MJufdOGf+YwpGzCKdOY3+Z4 T9RY1OEQdRlrvEIh4NhmQpDJOh9LVlAeZFppWl0WC4yw/J+Gi6SC9apfSgNOg8SNOWXy ZQgA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s7-20020a50ab07000000b00447eb58b921si1927695edc.38.2022.11.11.01.44.26; Fri, 11 Nov 2022 01:44:48 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233514AbiKKJFy (ORCPT + 93 others); Fri, 11 Nov 2022 04:05:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52900 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233553AbiKKJFf (ORCPT ); Fri, 11 Nov 2022 04:05:35 -0500 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E81D41F620 for ; Fri, 11 Nov 2022 01:05:29 -0800 (PST) Received: from ptz.office.stw.pengutronix.de ([2a0a:edc0:0:900:1d::77] helo=[IPv6:::1]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1otPyV-0004XQ-En; Fri, 11 Nov 2022 10:05:23 +0100 Message-ID: Subject: Re: [PATCH] soc: imx8m: Increase the clock enable before reading the register From: Lucas Stach To: Shawn Guo , "Wang, Xiaolei" Cc: s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Date: Fri, 11 Nov 2022 10:05:21 +0100 In-Reply-To: <20221111035304.GL125525@dragon> References: <20221028041418.4033261-1-xiaolei.wang@windriver.com> <20221111024607.GH125525@dragon> <20221111035304.GL125525@dragon> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.40.4 (3.40.4-1.fc34) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 2a0a:edc0:0:900:1d::77 X-SA-Exim-Mail-From: l.stach@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS 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 Am Freitag, dem 11.11.2022 um 11:53 +0800 schrieb Shawn Guo: > On Fri, Nov 11, 2022 at 11:01:15AM +0800, Wang, Xiaolei wrote: > > > > On 11/11/2022 10:46 AM, Shawn Guo wrote: > > > CAUTION: This email comes from a non Wind River email account! > > > Do not click links or open attachments unless you recognize the sender and know the content is safe. > > > > > > On Fri, Oct 28, 2022 at 12:14:18PM +0800, Xiaolei Wang wrote: > > > > When executing kdump to start the second kernel, > > > > since IMX-OCOTP has turned off the clock, the clock > > > > needs to be re-enabled, otherwise the system will hang. > > > > > > > > Fixes: ac34de14ac30 ("Revert "soc: imx8m: change to use platform driver"") > > > Are you saying this fixes a regression caused by ac34de14ac30? > > > > > > Yes, > > > > Although there is a problem with commit 7d981405d0fd, it also solves the > > kexec kernel hang, commit 7d981405d0fd is reverted, and the kexec kernel > > hang will also be introduced, so the clock needs to be enabled when the > > kexec kernel starts. > > Ok. > > Lucas, > > Any comments here? Yea, the explanation with kdump in the commit message is a tad too specific I think. The simple fact is: OCOTP register access needs the OCOTP clock to be running and this code peeks into this register region, so it needs to ensure the clock is active. Other than this minor issue with the commit message, the change itself looks fine: Reviewed-by: Lucas Stach Regards, Lucas