Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp392450lqo; Fri, 10 May 2024 03:11:45 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVtGuHWKNW0JpMGFoEQ0+H29LDnyX3fsyPC28EQy08Pr3wxARWAq79NiA/VnfKSGgOmrjd8PMrOu35jp9rJD+isvVqItDBDGIRYkkZN+w== X-Google-Smtp-Source: AGHT+IGuV9nhZqBOIKjsVNstJHevEjBZysZSkTXrYoHAq5mAsuZvMSKLY9KKRiZwyKTAgfn/oFBm X-Received: by 2002:a05:6102:3e23:b0:47f:2eb1:875b with SMTP id ada2fe7eead31-48077eb1ca7mr2696508137.32.1715335904652; Fri, 10 May 2024 03:11:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715335904; cv=pass; d=google.com; s=arc-20160816; b=dQCiInqxMU22UPKi5L24MymKn3C79Li++NrVtYUg5OI/bN+iNx0EMlTfp7UoKdp3Eq lZI+GGqxcKLOpePIbkreLHx6fRXxcROaUR1KYPg2AcF6xNlKPCJG+iHhqy5g8Tku0/dc ZhGo4vT7jc+Pb89UYIpZofjMn0AR67UUB1sC9qghk6HNcGjs7W3qMGBsfeZcnqB2nl8D VHjSy6OK+kLSPzlUdFaFo9nJja1PrrRt1XrX816Zhvy2JZXMuLl7p26Vulm9BYYySdJI U/bQVGYD/vtuAKylF6ygn2lAZZn05ewYMoiA/6rN0DePv2H4Tzj0lT3o5Auylsm7w8pL sMHQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:content-language:from :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=6SjqpeMgnNWzpS1QEhyKPEdfiZAfk0s+YPyTcOM6xKQ=; fh=JHtfHt7evdQ9yQExfPfYjpGTNxxp54MdJ4ry27c3Lcs=; b=u4GtjCa51w24haDvDiIgTIOhY5vzzbC9GoU7F1g8UiU4nXAAcw8gB9CHlTGkV7ML7U y+ZLrUHf8CxpUH6JvLfwXQoqMBgjvjMlHQBwUTy85pNKpn+Et4dzsNQo7PFODBcSuHdf TZFWfPz26dun9UOU3VKvmZk0/lHbGvrrzakwRw4saqv75alPaNKwgsSHtyN9cUILsq4A nNXQKzR2WGW2E7eHV+qu98y9ejHzs8K+cmoe8GARhBzjp8B6TBaB/8APwxumEGxHNUTm ud7uX/T0XnJ7ZUXAlWgYvXsTi3QJmeLUd9vHS4muAFh8kC9ZuaeoU00QDl/DBEq9C2VA DpPQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=xJk+hOhp; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-175578-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175578-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d75a77b69052e-43df568a42asi32948261cf.417.2024.05.10.03.11.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 03:11:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-175578-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=xJk+hOhp; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-175578-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175578-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com 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 62A2F1C226EE for ; Fri, 10 May 2024 10:11:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 44283165FCB; Fri, 10 May 2024 10:11:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="xJk+hOhp" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (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 79E8A168AEE; Fri, 10 May 2024 10:11:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.227.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715335898; cv=none; b=lrESvuR4ipJZHWyS31lMg/N4qFJtvQ/r1f2QWdNIKm4phqKm+GuJLVuF20UXhUlokqf8tyyIRILcHKSRRwqnZTc5BPe9koMwUQ/ceJYgeWFgByORoIoDQF2lLjy/hBzb9K5WX1ZAodxX/Wrq9eKo/jGFRTxlF/U6SXGBdKt2Bk0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715335898; c=relaxed/simple; bh=c1waZ+eyh/3LEv2xQyu5LjuVf0SWbog1966q3KjkEqw=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=YtNlyYH6Pl8Ccl0z2REiQLej2aYx7J6E6RnFYtnDFj4dZDApSKOFl59mpo1z+2dCBn1pZa6dAajN2snkGuBNSClaihqD4lEdxLVtfGKmqZr0Hn6irfRUN86gIC8uP/3Eg3Gzf8SGQNq3Lg32PvWvL3DM4VWKVYZkGQ8IgMVVfL4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=xJk+hOhp; arc=none smtp.client-ip=46.235.227.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1715335884; bh=c1waZ+eyh/3LEv2xQyu5LjuVf0SWbog1966q3KjkEqw=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=xJk+hOhpaV0T+ju3F8+sGmHBtzFTyVUG4277e8N/HYwbkr3BX3CzBx/+wcN2hgGpe y3AQfCENjfRWsQqdzX9NFQcE6TCs0Uotjwtt9fg9LZId1pbDM11ZYIgJo4uNpzZkdY PnTqo9/+m/7JFxbRrFDEoqFkqIJ0VZ6crTG9McyI4maP8wggHhvKx30Wg8XTzClStG 9FwDc0JokaW1oDrkqv4OxNLzVAO+B3GnAKvPKu5ny7tz7dWVkxfryNJjCzGuw1FWRn SruPRMpQcZD28dXZLjtT+UObBpWlZRpJ164RAFgDp6ZALOCqDHsItLhm9U+1Qm20Vt af9aDi8aR6llA== Received: from [100.113.186.2] (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madrid.collaboradmins.com (Postfix) with ESMTPSA id 1D92A3782185; Fri, 10 May 2024 10:11:22 +0000 (UTC) Message-ID: Date: Fri, 10 May 2024 12:11:21 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 1/1] nvmem: Change return type of reg read/write to ssize_t To: Joy Chakraborty , Hector Martin , Sven Peter , Alyssa Rosenzweig , Srinivas Kandagatla , 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 , 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 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 References: <20240510082929.3792559-1-joychakr@google.com> <20240510082929.3792559-2-joychakr@google.com> From: AngeloGioacchino Del Regno Content-Language: en-US In-Reply-To: <20240510082929.3792559-2-joychakr@google.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Il 10/05/24 10:29, Joy Chakraborty ha scritto: > Change return type of reg_read() and reg_write() callback to ssize_t for > nvmem suppliers to return number of bytes read/written to the nvmem core. > > Currently nvmem core assumes the amount of data read/written is equal > to what it has requested from the supplier, this return code facilitates > better error handling in the nvmem core. > > Signed-off-by: Joy Chakraborty For MediaTek: Reviewed-by: AngeloGioacchino Del Regno