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 phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B95DDC76195 for ; Mon, 27 Mar 2023 11:02:14 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C30A78609D; Mon, 27 Mar 2023 13:01:42 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=metanate.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=metanate.com header.i=@metanate.com header.b="Awv/j2cu"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 555EA8608F; Mon, 27 Mar 2023 13:01:28 +0200 (CEST) Received: from metanate.com (unknown [IPv6:2001:8b0:1628:5005::111]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id E0A2586070 for ; Mon, 27 Mar 2023 13:01:20 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=metanate.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=john@metanate.com DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=metanate.com; s=stronger; h=Content-Transfer-Encoding:Message-Id:Date: Subject:Cc:To:From:Content-Type:Reply-To:Content-ID:Content-Description: In-Reply-To:References; bh=9WIcTO3E1JrnZC0Y8WnqQD+yxMS+jN6bLIxU98snlE8=; b=Aw v/j2cus77LJIKF71dO0LheWLGDY0/4yzfX4fNFWbg/sbnkyVFWG/KhaDri7CO/NK1x4yLVFxMGN08 p6m/WFMlU/pEFZ10GMfprvDd7ZMwAV9rYt8c5BdLZdM7XN43CQudWkCfBS+2bUNFHGJQAzKi0TREB TiU0igWCdbQndFrAMZBcLmhW46bqcEQEE3jQtwJ90B47ZNiauOr4WLCjf480aVZi1oF3+40MoMjrF 6S+hC1TObRXesiMrNO7fdpqueLgl0EuQ/zDRAdhhsp0MtApGhnmv6RBDmp9a9wJAi5sTZWlhUXpkf oWDO/m/XOhTtydOgg94Q7qvMOOq6+9mg==; Received: from [81.174.171.191] (helo=donbot.metanate.com) by email.metanate.com with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1pgkbF-00079X-E7; Mon, 27 Mar 2023 12:01:18 +0100 From: John Keeping To: u-boot@lists.denx.de Cc: Simon Glass , Philipp Tomsich , Kever Yang , Jonas Karlman , John Keeping Subject: [PATCH v3 0/3] rockchip: fix efuse/otp misc_read return values Date: Mon, 27 Mar 2023 12:01:07 +0100 Message-Id: <20230327110110.1312992-1-john@metanate.com> X-Mailer: git-send-email 2.40.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Authenticated: YES X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Fix the return value for misc_read() in the two Rockchip nvmem drivers so that they return the number of bytes read. In v3 there is a new initial patch to fix the one place that uses this return value to correctly check for negative error returns. The other two patches are unchanged from v2. John Keeping (3): rockchip: misc: fix misc_read() return check rockchip: efuse: fix misc_read() return values rockchip: otp: fix misc_read() return values arch/arm/mach-rockchip/misc.c | 2 +- drivers/misc/rockchip-efuse.c | 12 ++++++++---- drivers/misc/rockchip-otp.c | 12 ++++++++---- 3 files changed, 17 insertions(+), 9 deletions(-) -- 2.40.0