Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3347069pxj; Mon, 24 May 2021 04:47:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxeVLqgbhlhTvBbK6ues3fBgaNuLC5TBTtWgrSy9UWW7JsRxXtYLO3b/WhtNPSeXfo8GAd1 X-Received: by 2002:a02:c04c:: with SMTP id u12mr23655369jam.129.1621856850761; Mon, 24 May 2021 04:47:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621856850; cv=none; d=google.com; s=arc-20160816; b=caWTcO0iJvkO4Bz+YzIawkJg7Qs3SqB1FksQfmyP0QKBORcJm5xgQ/Hq/tBQIXLRH9 BE8QCMT2CpCABtQH98/ivXl72HT4XRwnoHDF6A3rJoHs3ND4OsmN/8zIFQ6D5AuISLK1 X1qwvOjk59YdstHZ2NCwLZKD8MZXPMGsvFZgA0P0L/O2WsaOtkv3Q9SwdzAyTdPb9cGQ NhATCFFiXDAN6k9Guk5J3QuHAOYrK6QslAmYt80SrbqQHKKZh5Mngg4AGk3tsm6hfCes WbgV4FPgAtSKvrQ1nY8odWSAwY1d3GuJv7Ju4QpeSiUuVDgByI1K0NJzLoRn+f4HQuHd H1/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=rAafNi0SZ2NEjOf8TkXLBcHHsXGUwxyvQxpUbPEPfi4=; b=MHJdyb+COu/Qx9gdFayYIoqBnvMN0x0Bc8S+L+1dEcMnjnoNJ6WYV7GSBB3mlf5sr/ fCzluiXYwyDQ/+f1Jp9gdeCxxR6MkO1qewrBZfOE8nsZKcLiSgv0FY3kfRmEGma6s/ej t4kFUSlxV2t326QfmlIRHvGyCnivjz860EMV08JrnyUu3K419kS5/LzHPKOB9Q2PuZ7+ LrcfCw6vdLGUjWmqZMAVufkDqQkGg5kBS4AaGIInMFORjgZ+xs5OfPkwRQIteLh1xBju Ciuct2fslvgO1qArLfocwiOhvinG1Tiqay+CkFZ7MdO0zFznR++xX4BTGAyDY3gQG0FL mDnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@flawful.org header.s=mail header.b=WoCK2IgX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j6si14697345iow.6.2021.05.24.04.47.18; Mon, 24 May 2021 04:47:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@flawful.org header.s=mail header.b=WoCK2IgX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232778AbhEXLr2 (ORCPT + 99 others); Mon, 24 May 2021 07:47:28 -0400 Received: from pio-pvt-msa1.bahnhof.se ([79.136.2.40]:51094 "EHLO pio-pvt-msa1.bahnhof.se" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232625AbhEXLr0 (ORCPT ); Mon, 24 May 2021 07:47:26 -0400 X-Greylist: delayed 397 seconds by postgrey-1.27 at vger.kernel.org; Mon, 24 May 2021 07:47:25 EDT Received: from localhost (localhost [127.0.0.1]) by pio-pvt-msa1.bahnhof.se (Postfix) with ESMTP id AA9DF3F5C5; Mon, 24 May 2021 13:39:18 +0200 (CEST) Authentication-Results: pio-pvt-msa1.bahnhof.se; dkim=pass (1024-bit key; unprotected) header.d=flawful.org header.i=@flawful.org header.b="WoCK2IgX"; dkim-atps=neutral X-Virus-Scanned: Debian amavisd-new at bahnhof.se X-Spam-Flag: NO X-Spam-Score: -2.1 X-Spam-Level: X-Spam-Status: No, score=-2.1 tagged_above=-999 required=6.31 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NO_RELAYS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no Received: from pio-pvt-msa1.bahnhof.se ([127.0.0.1]) by localhost (pio-pvt-msa1.bahnhof.se [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fJFEFzrhEmgJ; Mon, 24 May 2021 13:39:17 +0200 (CEST) Received: by pio-pvt-msa1.bahnhof.se (Postfix) with ESMTPA id 79B0B3F52E; Mon, 24 May 2021 13:39:15 +0200 (CEST) Received: by flawful.org (Postfix, from userid 1001) id 5BA316B7; Mon, 24 May 2021 13:39:15 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=flawful.org; s=mail; t=1621856355; bh=rAafNi0SZ2NEjOf8TkXLBcHHsXGUwxyvQxpUbPEPfi4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=WoCK2IgXRO/aRLqBX5GWYKVXfgHMnSApkw5u7YyC76cgLZiV/6/j9DYiQWtK7hCqA J8f37bCC7+N9Y/Py4fm2u9GoSGBxNzc2M2CojL0gsfJAJ3Ggq08vhAurq1BUKpfFdX rybaOWCYWJwNl6FD53xcS81mnKETfT8ygSLt7inA= Date: Mon, 24 May 2021 13:39:15 +0200 From: Niklas Cassel To: Douglas Anderson Cc: "Rafael J . Wysocki" , Bjorn Andersson , Niklas Cassel , Akhil P Oommen , linux-arm-msm@vger.kernel.org, Ulf Hansson , Andy Gross , linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org Subject: Re: [PATCH v2] PM: AVS: qcom-cpr: Use nvmem_cell_read_variable_le_u32() Message-ID: <20210524113914.GA5000@flawful.org> References: <20210521134437.v2.1.Id1c70158722750aec0673d60c12e46a9c66bbfed@changeid> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210521134437.v2.1.Id1c70158722750aec0673d60c12e46a9c66bbfed@changeid> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 21, 2021 at 01:44:53PM -0700, Douglas Anderson wrote: > Let's delete the private function cpr_read_efuse() since it does the > basically the same thing as the new API call > nvmem_cell_read_variable_le_u32(). > > Differences between the new API call and the old private function: > * less error printing (I assume this is OK). > * will give an error if the value doesn't fit in 32-bits (the old code > would have truncated silently). > > Signed-off-by: Douglas Anderson > --- > I haven't done any more than compile-test this. Mostly I'm just > writing this patch because it helped provide inspiration for the > general API function. > > Changes in v2: > - Resending v1 as a singleton patch; dependency is merged in mainline. > > drivers/soc/qcom/cpr.c | 43 +++++------------------------------------- > 1 file changed, 5 insertions(+), 38 deletions(-) Acked-by: Niklas Cassel