Received: by 2002:ab2:69cc:0:b0:1fd:c486:4f03 with SMTP id n12csp429616lqp; Tue, 11 Jun 2024 08:29:07 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX6cqtWwG/UmMn/zlAkohvphOC8oh9MMld0gxtWVmuKKUFQMO15NIQZ4qyAkmnoLn765pNZAR6W+ds+KNCzcgbSgZl1/A7JAOhrF7p78g== X-Google-Smtp-Source: AGHT+IFK00g2SLwO1SLsxhqxIoG759lKYAIHvReZIwAYgGcgh6YS2wVboVSD6MxAIS7EXzk6d4q/ X-Received: by 2002:a05:622a:1989:b0:440:586f:4971 with SMTP id d75a77b69052e-440586f4e1amr114326951cf.15.1718119746979; Tue, 11 Jun 2024 08:29:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718119746; cv=pass; d=google.com; s=arc-20160816; b=VfL2TtSVhR/i5EliJkvQyJjXUw2u2NhKUD+UJEbnRC8yF86E+ulzqDAsvf8tBa7Kaj kvTcARamQorFpcyyTYPfzgvm3FcbH33/0lsUTbpv93B0aI1E6/YOk8E7+sP9p0BExM9D a2pUGdx5ZuzxaD55qNznc+2a5EUGAjpJlpItePa3jo58J+a3bag7yNndeh4MK1DbwH20 gTX0SkmwIuQdESELhScGm9JYPtL+dSmtdKaNCbKPPU9G5FU9sqPTQ/6wMLBkZ4KnjUvj pGAEju4xbGfv9kEmM3gM1c2XR0kLxtSlcDQFjzXzbO0/+3+4KpmqRX/G0SJ3g3sBTh+h YBlQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=vX66emLSPsiCozjYEcIgCjpS44vD4TxBAyFyr2wQO6Q=; fh=Bdh7gRDuNp/T5Y+U3bhQ9+Fz1HVp+1eHUEXiJLAr3sU=; b=W4ibIWDvCoRDBxfJAnkYp+ej+mGRI7p9aQjp/9X3m8NkpHu90Ngc0DXFkpouwBE9ek jpFtCRt5eTkG9kKL6y+FtwASLkbx4bAM86qi7fKPUFY8uGEVhoCl6E2UUTwpljjfsSx/ 489jsNLg712QHogfAtAHFNUTH1+ss9cUjwpkHme6MOkn6usKlGMEOhO1ddGuaYCiIeoN sX9IT7YUN6HiYMaOC8Q4PGhvPuzaiJN+x3j5VGzffOoaoGEX7FQckRlVtB8tBluId51L wAIq0jBPZnpEGHXzdEY9JtjVHZebVxG9HJsizEggmVICh7tj4M0yAhzHN5rUKjluan7h uuUw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ouftaKNP; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-210152-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210152-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d75a77b69052e-44101f74f55si48930651cf.382.2024.06.11.08.29.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 08:29:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-210152-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ouftaKNP; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-210152-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210152-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id B2DBF1C21DB4 for ; Tue, 11 Jun 2024 15:29:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1A98328E0F; Tue, 11 Jun 2024 15:29:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="ouftaKNP" Received: from mail-lf1-f43.google.com (mail-lf1-f43.google.com [209.85.167.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A4E3E219E7 for ; Tue, 11 Jun 2024 15:28:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718119740; cv=none; b=TeU/OYAKn1s9kfXTX68S51Hp3WNHjjMR3z4wgSLl46wELQpGomy9BSYA3G3RAppEIWyxQ1N0VLeA5tM4Mok9/EUjujwhIq5+VrBGnZF9wUR/qK6rXT8SucRNie8JxcgKxQ1UA31iezJ7HHbMK8K690wZT9OElCnIqLOvKmr1wm0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718119740; c=relaxed/simple; bh=2WrLQnRkJJW8PIvN+lSkf9M7nln0JfBNhjWZYvJKsAY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Ey5Gfnn8wqEOlKNLbYpA58konKwmnZKgctbwj47ZLJun8Ejj0/JxMke83POp6K/T3fZM8YfOdSxCM/rBMwRT+H0dOHxRGf1oE42wm+h/fsjZiCAhIZqnCWClo9SnGFWlmgg9fFkDi/LOJuPLFvE8QRd49ch3tmdHCyOxUzEvdUE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=ouftaKNP; arc=none smtp.client-ip=209.85.167.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-lf1-f43.google.com with SMTP id 2adb3069b0e04-52c4b92c09bso1599747e87.1 for ; Tue, 11 Jun 2024 08:28:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1718119736; x=1718724536; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=vX66emLSPsiCozjYEcIgCjpS44vD4TxBAyFyr2wQO6Q=; b=ouftaKNP7UxCOE4g6sSn40JDBRbIK0YL9awoFAbYsdjwKS/hhDYcHouLxtKcQRf/qM E2fDhUjdidGA9FEQ9g7KOX0htmyuOygZSmXU+ok9HuODZdxExOQGc5xI2FOi3xK7xfTb rmwsPDg7+/k9CZSSi+T0SxSmKUa2F1UBbLnMUsauFGx3RbcAoqZsdwMUiYYKsDBVfJne PmkwpZHAupjL9SouQgOyuGGIYLCZzqZUTdxkpTBI4NVmUV6D+zzzL7+0lH0s5TOVxfLD o87O2DJgVvc2f/0CD1ktq763UTtavEG1MhYA8dVa4sVMaxL8i+D7Q9JwXYlKW396CEat l1uQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718119736; x=1718724536; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=vX66emLSPsiCozjYEcIgCjpS44vD4TxBAyFyr2wQO6Q=; b=hVUqnuBIjK+196skVLcvLCy3mDdMQtxsO0jeBycsVgWZf3E3tn3LILJbpMIgBUhsyH ICqw2F4PGQbkG6sESAyerd5zHPwJXHeAEMsOOz5iIAeg94fgrkTOGG9+WyGzA2irezUb 0De1QtN9MlR9ZWD9WhwbU8Tc0xUAU+wkvTwJgo3dupmepn0GhrbhqLLLpByCYmzjJBW3 pTfRu/mJGDli5uq3zAwKvs5Orl1Cpbg0dlG9GKx93qsINYosePgWxdLJcgwqO4Qc1jUl QH2X0y3rJsOzTxnpuZ6lKSBB0WZCsIqOFGw+2eoz9XATEx3fn8GvSxwKK9DMvSB4vhzA gT7Q== X-Forwarded-Encrypted: i=1; AJvYcCUqccSi6MB/X+pJwCTpzUIesTkn0HtJaVzfZqPp8QHohh/Xuto/EOrxRetVaCe7dQntCMmQrpe5Q4SY/CoEg/w5zGdgxtStQPYA1mJ9 X-Gm-Message-State: AOJu0YxHlp/RTfa7Elib+8U/Fk9FKcvaEJiHvdsEo098M2xajBPpDz2r jiWrFWtBX4t0p9ngCEXwvlgD9UnGYBHQRBOXWqsTTsLxybuEun9t8UZR868wAqk= X-Received: by 2002:ac2:4644:0:b0:52b:c10f:995d with SMTP id 2adb3069b0e04-52bc10f9afemr8727418e87.67.1718119735587; Tue, 11 Jun 2024 08:28:55 -0700 (PDT) Received: from localhost ([102.222.70.76]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4215c2c7e8fsm182702335e9.38.2024.06.11.08.28.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 08:28:55 -0700 (PDT) Date: Tue, 11 Jun 2024 18:28:51 +0300 From: Dan Carpenter To: Joy Chakraborty Cc: Jerome Brunet , Martin Blumenstingl , Srinivas Kandagatla , Greg Kroah-Hartman , linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH] nvmem: meson-efuse: Fix return value of nvmem callbacks Message-ID: References: <20240611145524.1022656-1-joychakr@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240611145524.1022656-1-joychakr@google.com> On Tue, Jun 11, 2024 at 02:55:24PM +0000, Joy Chakraborty wrote: > Read/write callbacks registered with nvmem core expect 0 to be returned > on success and a negative value to be returned on failure. > > meson_efuse_read() and meson_efuse_write() call into > meson_sm_call_read() and meson_sm_call_write() respectively which return > the number of bytes read or written on success as per their api > description. > > Fix to return error if meson_sm_call_read()/meson_sm_call_write() > returns an error else return 0. > > Fixes: a29a63bdaf6f ("nvmem: meson-efuse: simplify read callback") > Cc: stable@vger.kernel.org > Signed-off-by: Joy Chakraborty Thanks! Reviewed-by: Dan Carpenter regards, dan carpenter