Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp444913lql; Mon, 11 Mar 2024 07:24:34 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXhWlRaR7gwbX62D0drA4l2fZFTCoEpgNS9osimWcXmiOk2yeP9lm9jfVqpvMvgM3fEc7TX9eJcM9xi/eD2rECbdSrym7JF6DucqYgqTw== X-Google-Smtp-Source: AGHT+IGzyCCoOlYxxOHrVtzdeed73ROGTEt8xLQA4DxqvXb2FpYbdsjk1fZi/xg301Y73sFw6vBi X-Received: by 2002:a19:381d:0:b0:513:4f60:82c4 with SMTP id f29-20020a19381d000000b005134f6082c4mr3907113lfa.3.1710167074414; Mon, 11 Mar 2024 07:24:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710167074; cv=pass; d=google.com; s=arc-20160816; b=TvqUCoxDUCFNoGzXsV7CnPwdluPMgomhyIpN2fXeUpkU31jLqQLBSjdWmFok0nJqkY rI10LXgH86P+nj34O46UAxcTQs2jVqkK3oVvC0FlGtD+rYgHFdepnnXlzxMJzD/0rIbn PkGazxEXdU8Bxp7B3nAieiuPkZr/zrVrmORgoEtC1fKwOelOcU8sDH6hrYB7O5zx6/V/ Wcv1bh9Zknbl/Iw69FcLZhCLCiMJxyFKWawYSZbWfQmxgzvOZRFSL5dDGpl6FF2mx4k0 NDHpx4wm5flIl4buQjx1q86WuavbKqXzxu3fNM/6w1wBqkvO+aO4xnVoxAq72ooMVpf2 kWiQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-id:precedence:in-reply-to :references:cc:subject:to:from:message-id:date:dkim-signature; bh=QDQ3mgpPUgCapF3eUZvCYBDqcxaMhh1YdjLllS/UtnM=; fh=tYWgzPqZw5GnDVCKP8Nq/lS4jWHUL72rkCZNCmSD5Go=; b=a7tvgsokZ7+ty5P41yP/Gbi+qRp9UqW9hsyU0Y5wv8JQHactT4yujlvoI7wmDCR6lt de5KGffjTZJobFVnaAE9lCYpo5IocAcS5I6o8tGS+fPPA8T3PKNTY+w8RqV3/2MOywi9 I8i1u4d4McubJInLImCWbS3uJA60jMTwCdzIz0IEsp8WgEiD39tl1CScQSaieicip6Ce hAAfhGJH7jeWNoQTkxY+4wRC19kEzbqUlVikDL3NNKrUY6RLKg/pV7jjfxyOS0U+JOsZ TM2ezq0jC+Tnsp/UBreBsHd//U/tUnJ47rsQsyy4MOV4d9xeYixBLpLUQmiuxmYwwsue iErg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=noDyMGWR; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-98953-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-98953-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id n24-20020a170906841800b00a46369119d3si326679ejx.67.2024.03.11.07.24.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Mar 2024 07:24:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-98953-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=noDyMGWR; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-98953-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-98953-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id CF1A11F23888 for ; Mon, 11 Mar 2024 14:24:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 26C6743ABC; Mon, 11 Mar 2024 14:23:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="noDyMGWR" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 568B042075 for ; Mon, 11 Mar 2024 14:23:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710167029; cv=none; b=dSTxFQAzVv7LlAnGnkCDaX79rVrqdQ62KrOS8HrQb81GQwX8hrE1CQWkwnt4uYVrtgwpGDBkjLIE6CAxWhIS7rns+RfzS5nlFmwQwxlBLPP7jIkqZcBgf5LFIg793iPuQuiqg2eu2fsllb/SgbXMGINEGT41+jzomJYdVVKoyWA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710167029; c=relaxed/simple; bh=QDQ3mgpPUgCapF3eUZvCYBDqcxaMhh1YdjLllS/UtnM=; h=Content-Type:Date:Message-Id:From:To:Subject:Cc:References: In-Reply-To; b=cuigUYl1jL4aoIccBvsGnueK1noJQnGJFriwHftEvwMvXHJyf/pVuB3FQDrwcSSDGWO+E3tP5pZ1+FCPKpJY6dcPHqgsv2P4dnYjDKMpVIyVD/UbQm5c2HWi3dZslUJFmH8Bzpi2J2Dg05iWALkHJj3ytvzauvQ/umbHUQiUsYg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=noDyMGWR; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7C6E0C43390; Mon, 11 Mar 2024 14:23:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1710167028; bh=QDQ3mgpPUgCapF3eUZvCYBDqcxaMhh1YdjLllS/UtnM=; h=Date:From:To:Subject:Cc:References:In-Reply-To:From; b=noDyMGWRaNHlX2SAIRkaJPRQXdmZ3q54z4Dt4h/hb92+JGu7LJA5i5eR329JzWY3P AogOEnkGerfjVRiPoFW+yloqO8cR3tJ1yAzSFGb6oOzCYuqPPXHs6aR1QHEmBTfnzP C49en5V7LFadI9xRgod9b3CNHHIRjR0TpalnmkoHetxWeC4REHqOJ0jfp7T0C/PpgM 7CduF2bqc57KHihthWWYbhsKdWLc1qIp/uhDtAvwflF4P1mA9sPzGQomzK69Vk5+IJ c9BaiqNo0eTASff7z7epzeRed3Y9Yz3jon2GS0VhDMmt5BLxJbTEh9vUmj/kss4w7F ojdtyGHl1O4uQ== Content-Type: multipart/signed; boundary=29380c7dbc2480426013ef519e8e75fca3b8b1943dcb785ea5fe898a2fd1; micalg=pgp-sha256; protocol="application/pgp-signature" Date: Mon, 11 Mar 2024 15:23:39 +0100 Message-Id: From: "Michael Walle" To: "Aapo Vienamo" , "Miquel Raynal" , "Richard Weinberger" , "Vignesh Raghavendra" , , Subject: Re: [PATCH 1/2] mtd: core: Report error if first mtd_otp_size() call fails in mtd_otp_nvmem_add() Cc: "Mika Westerberg" X-Mailer: aerc 0.16.0 References: <20240307130418.3131898-1-aapo.vienamo@linux.intel.com> <20240307130418.3131898-2-aapo.vienamo@linux.intel.com> In-Reply-To: <20240307130418.3131898-2-aapo.vienamo@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: --29380c7dbc2480426013ef519e8e75fca3b8b1943dcb785ea5fe898a2fd1 Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 On Thu Mar 7, 2024 at 2:04 PM CET, Aapo Vienamo wrote: > Jump to the error reporting code in mtd_otp_nvmem_add() if the > mtd_otp_size() call fails. Without this fix, the error is not logged. > > Signed-off-by: Aapo Vienamo > Reviewed-by: Mika Westerberg > Fixes: 4b361cfa8624 ("mtd: core: add OTP nvmem provider support") Not sure this qualifies as a Fixes patch, I'll leave that to the MTD mainterainer. Anyways, Reviewed-by: Michael Walle -michael --29380c7dbc2480426013ef519e8e75fca3b8b1943dcb785ea5fe898a2fd1 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIgEABYIADAWIQQCnWSOYTtih6UXaxvNyh2jtWxG+wUCZe8T6xIcbXdhbGxlQGtl cm5lbC5vcmcACgkQzcodo7VsRvsSDQD+LmhRjiSOY5riC0MuNIx9H6dvoiMun43b 7fxJYqB2/v8A/1b5xgKNYvveX26fDM80P7xrRKdT4Ev62AIjvgmCtFMP =wkxZ -----END PGP SIGNATURE----- --29380c7dbc2480426013ef519e8e75fca3b8b1943dcb785ea5fe898a2fd1--