Received: by 2002:a05:6500:1b41:b0:1fb:d597:ff75 with SMTP id cz1csp210796lqb; Tue, 4 Jun 2024 09:07:24 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVDXRWMWu8fsGoS6+RFu6EiQWL42yEuOhZ1FqYASH0jwrEFF4e0O3blPDFokU7IWEvf8z/aHx7WCJFXGGfcUUbekw3S2bm8Cw1PRNBglA== X-Google-Smtp-Source: AGHT+IEAlj4hWlRu1VBXGIfT4ekuaM3fAM9c1JTqHNjYa42Vkibbet1Spa1DDBL7UTPsIOcXBAtH X-Received: by 2002:ae9:e00c:0:b0:792:ba91:3d44 with SMTP id af79cd13be357-795230a87e9mr9555385a.33.1717517244646; Tue, 04 Jun 2024 09:07:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717517244; cv=pass; d=google.com; s=arc-20160816; b=id1DdI7MuIdIiG1F5JxuelTugYrkAjCs4sq4k5bH0Z8Xv21jQygy6Svh8/VBPNxsEV +cX9K4oXfthOsAIFaL5DoCa0NtBjh6xLVTOmkVEC1x3964d7F+Oey/AYrnHZ5TUJyizd 4zrjN1FGVEBnhDmVOxEvb7dRoSnEqrrD1GtEtWfFIcZ1E/G4Y2aQKn4J4pEm6cEmknbr fZ1ylQ+HSVX1PC9jVomQLMG3ZcgxuXNnJ/Yu8yrpIsawZSVgc8Wd+wD68Vqzxjc5RMZ5 bR5WnN6n3QPzRVXgtfBDbmRO2D2RbGtpd7Z2fYdb8UbQcNhnCrASOKvru14uAG8L/1R5 inbQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:subject :references:in-reply-to:cc:to:from:dkim-signature; bh=DVcQEIP+MENTssUPsqaOZqlKvsqibx0etjqeiTYhCrQ=; fh=a8bKc49iE2ZLFP5ljeRkdlEB9vRwpWj7aX13wMoPJKE=; b=Fx/lec+6ftdOMy3HPBfJMMlLlyeKTPhGyPcDnUcWGlUYSwjV1mwfAnLjtK+mjBvaeT KLvZ/FhHzUhDLaWv/Kb9Gx0RRkR5Gms360uJiLcrqL6BAhlHq5CgJmzIQa6j49bgARi/ jlNs9hUOFn9DSFlHI/Si9TH/jDNHwpblrkoJvaz9+y+8K0WaCQgRdZj2g9geZduW6tFc /WF5toc6V2eRLRVrJIX008iT3K7jei8WUgEqCH2pKnZQaM4/O44VlPnnbNoQb+oCI/ja rbWF4+HATYciJb9GLrBBfZYM/mq5/e3zhDJx2oYM3Phorw81RIwcqReD6pt0cD20tjZr JsUw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EO1Js1NM; 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-201040-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201040-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 af79cd13be357-795183eb40dsi185226585a.329.2024.06.04.09.07.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 09:07:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-201040-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=EO1Js1NM; 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-201040-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201040-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 60BFC1C238E7 for ; Tue, 4 Jun 2024 16:07:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0424E148307; Tue, 4 Jun 2024 16:07:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="EO1Js1NM" Received: from mail-wr1-f43.google.com (mail-wr1-f43.google.com [209.85.221.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 966A117597 for ; Tue, 4 Jun 2024 16:06:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717517221; cv=none; b=mjL2w56wtxZuiPY3UXzwevYyucASmQNDW+fkpGJLkWIxkYprnZxxXUXnR2iqdQtGn9F+qQgnYYWTkpI+5B34GBqFjqjGBW32JdQXoFN5FLdAM0aMVihgMRclICq2zx0dbwXCZSJTOA0Hh9T+L7KfPhSHJGRUVbuByzhelVOnD/I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717517221; c=relaxed/simple; bh=GfgdfxzT8n8+FRMuhvSXa/oYSlEgqKTOgyJud5hAWa4=; h=From:To:Cc:In-Reply-To:References:Subject:Message-Id:Date: MIME-Version:Content-Type; b=LaMPGTYwLL54bGn8fy4RY8dIP0mhnJR7TgHxfAPHfxMec/0KJ9JfbbwyqRHrCd+v55LKT9Jvx5caYPwXoz9pyIuNGZKvQM69UBUd1TwLOPxW/1diRTUrGZcc5hVx9a/O2RwoAKuJ9d2q46sayduO/CnEi+OH6VF/jRSREBXk0zg= 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=EO1Js1NM; arc=none smtp.client-ip=209.85.221.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-wr1-f43.google.com with SMTP id ffacd0b85a97d-35dc7d0387cso5899813f8f.1 for ; Tue, 04 Jun 2024 09:06:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1717517218; x=1718122018; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:date:message-id:subject :references:in-reply-to:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=DVcQEIP+MENTssUPsqaOZqlKvsqibx0etjqeiTYhCrQ=; b=EO1Js1NMIsReXNE7qOnijnyWw/z4jZLzVaGj7Pi5pzOukmCJpNpPiAcQSgftiYgxyL BoYMdEAh8twkkSI0bHzaYEureehs9I/wQ/ZwHSSSFDPlmKHmND4MvQD2tntGROB1UGAt LF1BSqvL4QARxwREwSfjgf05pBUzWvwGd9i+6H6jKw4+o2hcbNXYqAWW+jyxi5TBWwUS uP7E/6QsI8288rWxFZ9J5tF5qyXGrUX1OrL9HzUwDN9wHw6VwCuo9J8s2nHZXDhrm6P5 4QR8/N69eyMubvCyIlW9Qp5bvQQh4P+O130Sk3+rV5Oe/iiWlpYiC8EMZW/hf2y0wl0m CbgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717517218; x=1718122018; h=content-transfer-encoding:mime-version:date:message-id:subject :references:in-reply-to:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=DVcQEIP+MENTssUPsqaOZqlKvsqibx0etjqeiTYhCrQ=; b=X/snfSDJzlqZaeIxcJ+o5jG9Lb75BHjvSelzkKWAZKkz+xHfYNK2iFHnL+H+rC1yUn 3sPIATJhWwBFRR/nhpEQkViAF9zMXNSL07SkYTLm2H/iWPN6q7KRTYhDmyyjSFZ3GYi9 f1G8tLugOn10UzHcr++N8qpqsRnVCmymGkkGX2kj7pdLrDamS68hffdFnlwPMo+M8S6d 0REKlZ3xPz4hyO8iWtti9DZCM9Q65XsS5YXUFDQyPpR+L+khr/8i0UiQkyk1x87LMAHB cmEYYpTKTNhFroX7I1NQzh2zqTkTycUL2vui16p3koZJQW/RbTQr2iRqxCLAgGyQzfd1 iJSg== X-Forwarded-Encrypted: i=1; AJvYcCXY4anKaDGs4sEAjo6Pp93tl0fW9qjWYPLjaTw8d0qz1Xv83HUqrAoG/12oNrOd2TIMJEXHyg+TnKb5ni1o6u7ICsLXCxUm8XPcsN32 X-Gm-Message-State: AOJu0YyGuJd1hYhVbzxsi/Ok3DhtXzACdWzlTHd4TdU08JSZY1G87xhC S7p2WrFxyJdoDcWQFLelVearQoRc4DlyJKxbGPJNEIWwj8GzHV0rUnMN2VUNmoo= X-Received: by 2002:a5d:438e:0:b0:354:c43d:d5a with SMTP id ffacd0b85a97d-35e0f26984cmr10765554f8f.24.1717517217961; Tue, 04 Jun 2024 09:06:57 -0700 (PDT) Received: from [192.168.1.195] ([5.133.47.210]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-35dd04da756sm11983392f8f.59.2024.06.04.09.06.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 09:06:57 -0700 (PDT) From: Srinivas Kandagatla To: Hector Martin , Sven Peter , Alyssa Rosenzweig , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Vladimir Zapolskiy , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , Claudiu Beznea , Matthias Brugger , AngeloGioacchino Del Regno , Bjorn Andersson , Konrad Dybcio , Heiko Stuebner , Orson Zhai , Baolin Wang , Chunyan Zhang , Maxime Coquelin , Alexandre Torgue , Vincent Shih , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Rafal Milecki , Kunihiko Hayashi , Masami Hiramatsu , Michal Simek , Joy Chakraborty Cc: Greg Kroah-Hartman , asahi@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com, linux-sunxi@lists.linux.dev, manugautam@google.com In-Reply-To: <20240510082929.3792559-1-joychakr@google.com> References: <20240510082929.3792559-1-joychakr@google.com> Subject: Re: [PATCH v3 0/1] nvmem: Handle actual amount of data read/written by suppliers Message-Id: <171751721565.70889.16944298203785853489.b4-ty@linaro.org> Date: Tue, 04 Jun 2024 17:06:55 +0100 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="utf-8" Content-Transfer-Encoding: 7bit X-Mailer: b4 0.12.2 On Fri, 10 May 2024 08:29:28 +0000, Joy Chakraborty wrote: > This Patch series stems from discussions in patchset, > "[PATCH v2] nvmem: rmem: Fix return value of rmem_read()" > (https://lore.kernel.org/all/20240206042408.224138-1-joychakr@google.com/). > Where we come across the fact that currently the nvmem suppliers do not > actually let the core know how much data has been actually read or written. > Instead they are expected to return 0 for success and the core assumes that > the amount of data written is equal to what the core has requested. > > [...] Applied, thanks! [1/1] nvmem: Change return type of reg read/write to ssize_t commit: f5de138db5b76de7d96d4cf92f871ba893ba0119 Best regards, -- Srinivas Kandagatla