Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp5972361rdb; Sun, 17 Sep 2023 22:51:11 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHkBgdn9JA+t2sf3uT6Ghn3B2l2ilRAu5KKgGxlioML5k4Dfw3U8DNOOtkmr5V6vjRERr9T X-Received: by 2002:a05:6a00:b91:b0:68f:b769:9182 with SMTP id g17-20020a056a000b9100b0068fb7699182mr18549495pfj.9.1695016271162; Sun, 17 Sep 2023 22:51:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695016271; cv=none; d=google.com; s=arc-20160816; b=xhQg726AbxELbFCC73BNWEQsJZBW04jPaeKC0UuoDyazLxm1mBW5RbDUtMrfsXQ+lQ bfL5UbTw1gkW40358yDn3g/F/vX9W8y68bL/wP7KjL0Md1Zl5UdpdyjLdOuOHE13CqiS jv/zaBRhYtYlvSKSsB6pmlPVUhPG2C1Q27YQVhqnOIlSrap/MM0tW+dI1hFVKK7Tr3qc OPON61rwroONsm3dbCGImWIsxSAVbd08x6+rjdXISxfufRBBoqblph7WW2yPwe1dcL7+ jpYRb27ZDKFl/86OTv/GvbOvbb1lRNjql1SujHKEV5iHeAAsCsgJ54PmQlUG9+hTgpTe mt6A== 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=51WkUAC1sLCh7qadDPCoYg3QctdCSxGTDI4u7EfznR0=; fh=Gixv+4Sy/T6V6zWy2Lx3+9f8kyCFJobojgWn63yzgEE=; b=fGIFUxNwrJQ5j5HplNWFsabxCV8VV+1PgmqUJONBB6XVX72/5t/lpepj9eaexwYHfp A8XrophDXuL2iVaJsUiCPOdK9n04uTp6P9XToHNu4v+tJCSLAkUIr74zyarsOtF7SDek geUZsXkmhF4PBU3sqjAon5UDGLLZDJZMR1V15x/1e0KwmvxPgfx+43LWBo3HWmfE5l2S tzbtBN08bFO5EeZHf6pgxcRDTZE8O/4m7fDjXC0CLJ/mfAGda9mtBLbl1o0msBHcweNT A74xmBNoeYomUp9UPZlQ+CNdm8lRrzrfkChYFZffAvIWy4SfHc4C6cI34/lFZvbLXDCL DYJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nathanrossi.com header.s=google header.b=Sl2s1YPz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nathanrossi.com Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id k18-20020aa790d2000000b0068fe810e8a0si7160706pfk.197.2023.09.17.22.51.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Sep 2023 22:51:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@nathanrossi.com header.s=google header.b=Sl2s1YPz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nathanrossi.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 2F6D181D6D94; Sun, 17 Sep 2023 22:50:40 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237259AbjIRFrX (ORCPT + 99 others); Mon, 18 Sep 2023 01:47:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34032 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239654AbjIRFrM (ORCPT ); Mon, 18 Sep 2023 01:47:12 -0400 Received: from mail-yw1-x1131.google.com (mail-yw1-x1131.google.com [IPv6:2607:f8b0:4864:20::1131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B068100 for ; Sun, 17 Sep 2023 22:47:07 -0700 (PDT) Received: by mail-yw1-x1131.google.com with SMTP id 00721157ae682-59bc97d7b3dso66247137b3.1 for ; Sun, 17 Sep 2023 22:47:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nathanrossi.com; s=google; t=1695016026; x=1695620826; 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=51WkUAC1sLCh7qadDPCoYg3QctdCSxGTDI4u7EfznR0=; b=Sl2s1YPzO7UM36+ZjIWr5+DlzfkRP3zQxMET72GSnBmbNubLULUPt2lrp3rkzXvrw1 VUOEx5Bkr4JE61cq6e79zZ0/CgEScl1TBzoIzENVUeU0O7zdDKO8U0COlekydM1IR849 zOuX6rwryI/DjmTILuNn7oIwTSlZdnozw/a2FZYXuspXS9CcZM2yPFnmdBkqnruzei64 m5+muQmt75wk7hWRlh0alioPWMIWMU7Gffer/PZf9EDyHnY5jIMefS5VEG7aneHACTIq YSynhjM3F/YOXZWtcuMl6RWfyhwCRcMM5hG2smFOr4HOOVAEyYgofnVzP5U/A09SqF9C tmFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695016026; x=1695620826; 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=51WkUAC1sLCh7qadDPCoYg3QctdCSxGTDI4u7EfznR0=; b=hu2HmPjsT/osjDMKOCY4Uzfktr+wB3BaQZwF8aF9YtsI2Djuk4lPgzNLBWXni9QqpO hxZBhnopQigEl+elpKpUI/dR9LOToPMBb/pvRZBvIxWqB5rKc8H3f7CWb7ZJXOocx4OA IhBaaqVAkVIIQTxpaXDk17yC4aJgVybBmxeb43Ip62dWPuyGp7xrB7nau6M7oao5nJpD iuDWcgJ+nP6lRqFqsBzRX12q+KY/HH9b8d9mLfvszKAA99HPpEc9kegNy6KDeav25cZX bG0MZG5bRsmAxo5POXGYhIgXGxuAwpPC0iEkxGk9hu//pZq/LN2DhETazPX+fPkvboQc wj9w== X-Gm-Message-State: AOJu0YxD1iopG4ZDOVFMTpH/ADG2lz+QLyr3EcmLm7+VcgoCEh+b/pun mCUndoWx0WtSaNJM+ktzBJao/NC2tli9FxOr5wh5VA== X-Received: by 2002:a81:a1d6:0:b0:56c:e480:2b2b with SMTP id y205-20020a81a1d6000000b0056ce4802b2bmr12754977ywg.12.1695016026381; Sun, 17 Sep 2023 22:47:06 -0700 (PDT) MIME-Version: 1.0 References: <20230814015700.70156-1-nathan@nathanrossi.com> In-Reply-To: From: Nathan Rossi Date: Mon, 18 Sep 2023 15:46:55 +1000 Message-ID: Subject: Re: [PATCH] soc: imx8m: Enable OCOTP clock for imx8mm before reading registers To: Fabio Estevam 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=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,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 fry.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 (fry.vger.email [0.0.0.0]); Sun, 17 Sep 2023 22:50:40 -0700 (PDT) On Mon, 18 Sept 2023 at 13:26, Fabio Estevam wrote: > > 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? Potentially, though none of the previous commits (or their referenced commits) attempted to resolve the issue for the imx8mm_soc_uid function so I was not sure if a fixes would apply in this case or to which commit? Though with that said this change would only need to be applied to kernels that have applied the referenced commit, so that is probably the ideal target for the fixes. I can send a v2 with the Fixes included? Otherwise I have included the specific fixes commit information below. Fixes: 836fb30949d9 ("soc: imx8m: Enable OCOTP clock before reading the register") Thanks, Nathan