Received: by 2002:a05:6500:1b41:b0:1fb:d597:ff75 with SMTP id cz1csp194879lqb; Tue, 4 Jun 2024 08:44:49 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXcHwvhELZKfumFxtw1DGr3rbiwhkonBkGy3PKpkqTKgVbybI6igYrD6pXtmeNUfGmfNFIm2sExCy7vcVPEn9uNRtmXobp1VWRXEc3XWw== X-Google-Smtp-Source: AGHT+IEl/wlzNB1LTXUjj6AZ8ta27oJOpsILjG2yRCeC61qLaYXMMNieI35TTFXAXXfPnxKVRB+G X-Received: by 2002:a05:620a:394c:b0:795:1df7:b436 with SMTP id af79cd13be357-7951df7b521mr160780085a.62.1717515888754; Tue, 04 Jun 2024 08:44:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717515888; cv=pass; d=google.com; s=arc-20160816; b=f9sKtm/NFuVrvRKxAI80rS9VCoJu78+toOZasxJElnc2m+ctdm0xYk+h61xQEhPCHe Ae4xCKvnWAPVO4AMaPn4/UwoMd8PcFNSnFuXUrEkK0qaILWicN7Z6WRyVUXMb4CJ1JY1 SPOiyulDYSSFvmNFVdPYqlJhBsJs+13xCb07ogMP1At1K/twuSYWUVA7yK65GZ3a99ck KB4VYK5qcxuQJwo8Vl3+gNlBUgclP+1na8+ZSFB9td/WSR0oeTvwpewE7xiOyFNSRXyM wtBbN3BwEg7+CXD7qO4W55w1+rQ4kDm2YZ7Le5sR6k5qvi/+ltf2fqz03at1wwFZbJrt yWYQ== 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=xOzwspco9m1fk0/3X/vN1/Fn9+eqrj7CPzvWL0mp6Ho=; fh=xEwtlrvOVmUu91N2iSfQOzNyCD1DR0MkVF4MRxxe8W8=; b=f1HlhOhunFSjmi6fPdVFe+IeJ7MbNoZ8LbAJn233FCZ4LaDETKsK6XwBYqxAGT8v/8 f/TZ+HbbeML5+piH+gAAkhbefBvZDgcazt2mZQem8S/ZdpjDy34tA/XaDjbhpPGWufe6 XyEcJV18hXW0tNczRKxI35sbM5a/vg5VBSNlNHOV4r7V8TsgFQeI5rt0yyv1PaxJrcnR UFdTOm0LXSioy5m9xzrgdGenbIAH1kTh9No5/rpJcXfEloR5cn1nIKE7BWINCTflY9eZ D8tdd5b1EnPbxuJU9aXoU8B/UXi75Ok+YWac6f+X7q6YzkSmLEcIPRTi/y9cHeAWAJR7 k6KQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=1p0RL9O1; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-200978-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200978-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.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-794f3064c9csi111091085a.280.2024.06.04.08.44.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 08:44:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-200978-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=@linuxfoundation.org header.s=korg header.b=1p0RL9O1; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-200978-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200978-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.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 4EE051C22562 for ; Tue, 4 Jun 2024 15:42:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 564A6146A97; Tue, 4 Jun 2024 15:42:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="1p0RL9O1" 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 6D47E144303; Tue, 4 Jun 2024 15:42:29 +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=1717515749; cv=none; b=sgxijqImJpsq58BnlGfeI7umX9GhDlv0TsaTe7tmam+80MsbI+2P8vdslokI1iHXEVJk7vwROpDkMmRnjOKwYu330e4GwsRIvo/RP/CCr9o33MmoOOe/oZbgwBpiRlXAYMxB26cclPtIlZCc6Wa3yEriCNBKxAlnh46wyKzdj0Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717515749; c=relaxed/simple; bh=gvxpfHQ65oWsKW/gpsh/uvOZGyM//B6SX2D/4rQ0Nsc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=NlwVQTTYvgoIMsEYPvFrQvG9MxB8eOpDjkoHlIqxiJrK9K1lHQOtwj9UxrJSEhtGfJQuFsxFvy7Jc2NGZR9WCVY6Wrf2iW0tzErYhsutb6tmHUX8rKh/DQERthyFJDZrz92SLZ2vlP+rvtn6KlpE9T+yIzYaIH4z//L4aw4NckI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=1p0RL9O1; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5AB18C2BBFC; Tue, 4 Jun 2024 15:42:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1717515749; bh=gvxpfHQ65oWsKW/gpsh/uvOZGyM//B6SX2D/4rQ0Nsc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=1p0RL9O1txeF88r7BI4R3mZCPecX9o5eCeU291B62J/7N4Hkguvf1lfLd3cqQUs8P 4Y1/0W4FQ0ElqLZ7UU0nmattnWlXk/Z10eyZip8sZHsKgLIIU/ogQGQB9n7FHaJ/iv fP0oOcb6nC636FrLvgUA+RegIdHHg80BK9dpAXYI= Date: Tue, 4 Jun 2024 17:38:24 +0200 From: Greg Kroah-Hartman To: Joy Chakraborty Cc: 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 , 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 , 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 Subject: Re: [PATCH v3 1/1] nvmem: Change return type of reg read/write to ssize_t Message-ID: <2024060445-amaze-sitter-88da@gregkh> References: <20240510082929.3792559-1-joychakr@google.com> <20240510082929.3792559-2-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: <20240510082929.3792559-2-joychakr@google.com> On Fri, May 10, 2024 at 08:29:29AM +0000, Joy Chakraborty wrote: > 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 I thought this would be two patches, one to change the return type, and the second to change the logic involved here (making it easier to notice the logic changes.) But it seems ok to me: Reviewed-by: Greg Kroah-Hartman