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 B738BC6FD1D for ; Mon, 20 Mar 2023 17:18:52 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id DE9F985BD0; Mon, 20 Mar 2023 18:18:38 +0100 (CET) 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="728MZC1F"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 9BB9E85B3F; Mon, 20 Mar 2023 18:18:34 +0100 (CET) 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 D553585B59 for ; Mon, 20 Mar 2023 18:18:29 +0100 (CET) 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=uCWQwt7CQ70d7bE1XKNUsFi2XwNWqS1MAVeyLacCB2g=; b=72 8MZC1Fvp5LXfGQRdBH5fseRM3cm6u0pO0nCbYce1bbqdXag6w5CKgs1SrQo8VdHI2PDYJjk55Zow6 dQS/RhkipWx2kFrSrjYKdTX94bzr4tIgo6DKBD3i0v55ATeEJZKfQQjbihXtmodslIle/ECXhgC0v v+wthdCPy5gQP52q/Lo+7VVCRfrtYtBkw0EJL4CONGeTrMXRHllLrcGzXvK3cnjFl15UsoH4ubljT NB3tSePKZDARF8Oo1H70gnbZ3i8tWpmpYxvHo09qOGQMEaBrouz826+TFc13OM5hr3rWZw9b5zNJe kt3jZHeXzEujV9e/Y/EKUMCXMiEZ6nPg==; 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 1peJ9N-0003OU-Sm; Mon, 20 Mar 2023 17:18:27 +0000 From: John Keeping To: u-boot@lists.denx.de Cc: Simon Glass , Philipp Tomsich , Kever Yang , Jonas Karlman , John Keeping Subject: [PATCH v2 0/2] rockchip: fix efuse/otp misc_read return values Date: Mon, 20 Mar 2023 17:18:20 +0000 Message-Id: <20230320171822.1605531-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 v2 the rockchip-efuse patch is change to correctly handle block_size > 1 and the rockchip-otp patch is new. John Keeping (2): rockchip: efuse: fix misc_read() return values rockchip: otp: fix misc_read() return values drivers/misc/rockchip-efuse.c | 12 ++++++++---- drivers/misc/rockchip-otp.c | 12 ++++++++---- 2 files changed, 16 insertions(+), 8 deletions(-) -- 2.40.0