Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp61138rdb; Mon, 18 Sep 2023 08:17:00 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGE6T6saW01JcA93KE/fuoFYabpbNnurj8b6EAiQrno0oB3DhknE0/A8+XnMF5P1Mt6/SpT X-Received: by 2002:a17:903:41c8:b0:1c4:67ae:9431 with SMTP id u8-20020a17090341c800b001c467ae9431mr7592847ple.57.1695050219408; Mon, 18 Sep 2023 08:16:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695050219; cv=none; d=google.com; s=arc-20160816; b=CsoKH5UU104s1sg21ZeIitgMFmYFZ0cu/P5SjIZh3qWO4Suj+fLL7g+ga5ZRP0DVeO k8NbnhtDpK52PcTORC3bjjBB6iTq+IeAKK4aUf2Ben8NlcfhLoLvd3qKzBkIej6IOQcw YfGTtExcyJYar8FzICHSmgDLtVjFTfqhJov8WHFvwdX3kgBII3IrWENqZMf3KhhlNcpv uJmEoDbLzzq0UFAWpSRf1PbwcRqopSBdgOIB/bwJz8x0itSlhnhekBON38e5dXPYO2Af A0XoRSZ/gsjQw1Po+NsM4x0pgFLUvtiZOkgKTVzyAOch0SxOzIoBJ5BgrnrRROZ8huHp T5oQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=4VaQ8e1tcDCEt2B7UAQZ9FdVlA0XHxA3g4hSo8H0L68=; fh=0nv6U19+ye5fLXDp9mrdwVpFpenuyACYIGQNOrVVLOk=; b=GC1TmLPRDQKtzAoK84m0XZ0dQupyB4mNT8Ek4IOfyF3jir5HfO1QT8McJLAoJJcAb7 vLTBHB/i1kRSoLXtIAOYNVY3URKN9R3QzNf9U/jANzabXz4UXEPvp3PB6Q6RWVYWUuXf Y/m9fM++ZrBIOnxyL6nG/Bldj+gxESL6FHDOesuUZ1i61qFxOeMns5rJmNcrm0Vj8m54 nOX86qvDCqY9/MijYuwSPkRPD7jw/+4bytXan35CSeFl1Z6/Zp6nw9Z+NTVHQ+R0JhLX N7xKjwVan9V/Y1N7UVS1xuQ76075zaNocGpAqL3zkE8mGJSpzolmb52s+qdXFBkofUoq 9z0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=hiGaaq76; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id x13-20020a170902ec8d00b001b9d180fd9asi3553193plg.121.2023.09.18.08.16.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 08:16:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=hiGaaq76; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 116C68371D28; Sun, 17 Sep 2023 20:27:20 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231454AbjIRD0w (ORCPT + 99 others); Sun, 17 Sep 2023 23:26:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57570 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229615AbjIRD0o (ORCPT ); Sun, 17 Sep 2023 23:26:44 -0400 Received: from mail-pf1-x42b.google.com (mail-pf1-x42b.google.com [IPv6:2607:f8b0:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D7CD210C for ; Sun, 17 Sep 2023 20:26:39 -0700 (PDT) Received: by mail-pf1-x42b.google.com with SMTP id d2e1a72fcca58-68fc94307bfso1021348b3a.0 for ; Sun, 17 Sep 2023 20:26:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695007599; x=1695612399; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=4VaQ8e1tcDCEt2B7UAQZ9FdVlA0XHxA3g4hSo8H0L68=; b=hiGaaq76ZVsCwdbfQbhN1IyYExQZchCK29kSrJgEvZx6WNUwsfMcTQUWpTY1od+S+v a5sZJtuPO/N7qojUe2ZkelVt/0H1ciAgNtv6d8+ZWFMj7AbPvTrsp57csWuYgJWWwWTA SKrCC9536aDemJ2XJ80yAuJZEsUHAcZ2L6a5jn9H1HAmBU10rovCfKHnN6dVuffb/R6I wSS+sQEvFkWY/iiY5yWXNHDMz0lwGMOOFWXKyg+eOHOmnZrTtXRLN38RRy28E9+xYKYM UnGoW0Z9zV1+mQwrHp/0Rk2N9KcVvknzA3CTKkMkXEUBz5H8SAIhMjE6gSLiKzGFsVrR e0fg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695007599; x=1695612399; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=4VaQ8e1tcDCEt2B7UAQZ9FdVlA0XHxA3g4hSo8H0L68=; b=qlsS4pcc0Zu5XUnfRg6yBrQBolqd0IwoE0CMVWw26jIGC1ynRjs5wEjzPs+NZFmYWV aHCu7cT0+KYu2jGrUc7Vv9XedE0DFq//eRWq9Y2kAEv4A+sFzWLJS/TPMcNqZi7TcN6N DecN+6ebu8ja0S/HZshZMbpa+w1YX8PokVxi3q7AQ+qRfD024/eccPllAn8ef+HaJh9w YzzXsMnOnMuiB1oQUH8KDciI+ej9QQjubdQ3hH+lsvy8BcHS5A9YOkCtstix/pDBarmo tdGZnVn4npv3gTQ9vEQqIs1d/vxkwp8ZZeronIjHonEnzNUuLcoJj9Moth8lvc10VWgp PQ6Q== X-Gm-Message-State: AOJu0YxsVtyAwrM1rh63k4JInZg6itIg0wgiyGxiVwQGr2/lTzdhWkyu HUZSR/SXrbeKxjTDW8lpPmUwRvla1L7MtZTRKSuVREqu X-Received: by 2002:a05:6a20:3d0d:b0:13d:d5bd:758f with SMTP id y13-20020a056a203d0d00b0013dd5bd758fmr11098968pzi.6.1695007599258; Sun, 17 Sep 2023 20:26:39 -0700 (PDT) MIME-Version: 1.0 References: <20230814015700.70156-1-nathan@nathanrossi.com> In-Reply-To: <20230814015700.70156-1-nathan@nathanrossi.com> From: Fabio Estevam Date: Mon, 18 Sep 2023 00:26:27 -0300 Message-ID: Subject: Re: [PATCH] soc: imx8m: Enable OCOTP clock for imx8mm before reading registers To: Nathan Rossi Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Nathan Rossi , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , NXP Linux Team Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED,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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Sun, 17 Sep 2023 20:27:20 -0700 (PDT) Hi Nathan, On Sun, Aug 13, 2023 at 10:57=E2=80=AFPM 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 Thanks for the fix: Reviewed-by: Fabio Estevam Should it also have a Fixes tag?