From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id ACA27C27C53 for ; Tue, 4 Jun 2024 15:42:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=CQFBuKMvyxtjA6QkomT2w4rxzKTk0tvkmUE8a2zqi8s=; b=lDa4Oitpywq20E VO0nLdoUG0+M4ERZpEslUZiMjBp1ixw4DAsyFDB2VRVWBauqySQqtewKyARvq/PUSSFW5U6/M/mQQ z8xDRA18phAtCndKd9Yo2WLUsMU10nv5HLTFZIT3q84YawGGLSkv1PupzxHCJJVT1Do0w1qhFZUVf k5aH8CL9X6bK6nmuAszCPN20L/tMbO8oYcQmf23/D156w1T7q85DHmG/ltXgrjCWIlJQlgrhMt8Fc JUB0cspwe4Uf47GP0NykFzH95Yq6YhprgLuM66wmfvAZf4QLkc0yAoXA5zOY9LrVrWY6h2Q5vcTQf fHxSSDKXkCvD4zbepZMw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sEWJ6-00000002xpo-3JFb; Tue, 04 Jun 2024 15:42:40 +0000 Received: from sin.source.kernel.org ([2604:1380:40e1:4800::1]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sEWJ0-00000002xnW-0hMy; Tue, 04 Jun 2024 15:42:35 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id 14AA9CE10B9; Tue, 4 Jun 2024 15:42:30 +0000 (UTC) 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> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20240510082929.3792559-2-joychakr@google.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240604_084234_403781_10C42A93 X-CRM114-Status: GOOD ( 12.78 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org 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 _______________________________________________ Linux-rockchip mailing list Linux-rockchip@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-rockchip