Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp1537289pxy; Mon, 2 Aug 2021 04:21:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyHY0cckdNq4RkDiaIt57xxt7ICppsQNn09+v2PPeS0HQ4v/T3S05C1fBkq0vl8RHEhDlp7 X-Received: by 2002:a17:907:2e01:: with SMTP id ig1mr15193674ejc.387.1627903308945; Mon, 02 Aug 2021 04:21:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627903308; cv=none; d=google.com; s=arc-20160816; b=OOPPO8C3YGddlpVueeJkHuISDRO6Qd0mVJCOjTFIK3sdJw7BJ3Pr44cju4J5ZhEeKM DoNBoYtliiGoqgSOaCFwmgyVK4lz3LetFAWjMPkjwOVbyV0SGZWOzxyxXraVjyjVeucP 4cIGbxhaTyAmZYf0yiO3RdgOfiuZNJbEdSu2Td5cjg0PGFYH7WVrWrz9ArjvWERIfP8N 33QVKx8b+pJoVEBBvs1Qwz77cilFksWKjc/E3Su9nBE0imeldc6R3q3iDmPuo9nRjCWG k/kocfHtA0EZKI/eGsx9LzXsZ8Jg6WL35Kcn7FUvhbBTIqJwjQysEnRCfWvCUznotX3P razA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=/JAmS8wvVy4y4SnKnMeVsMtIImqK8tLg7glG0zt3gSc=; b=iSKX0GbdY1ChdBK64rP5nRqltFTfUEOnJ7ECGSxQucLo6l+9jadMifLBMNrhFFf8ep PRX5nN1KB54CgvTCjXcZ+rNZESWYLYs7hGnLbaWttxJE5v7uscCgn8w1uQzParDGzMxr +pdDJsGyXu+hmw9NFUIAlBAQS5EBcj8YFYUJ2jZ/0o7fclX9oc4pPirOV+a8DVsGQDCs H01A0MAJopaR7UnIekF8Wnd86qAjCVNWxgqbahgjl3hcffp6e7jOp9bECbxkLKM65U16 nLYXHRjgHuScf4m+Yg6KsZ8rqhNGJWOkOHyYH/OC65mFbU2gQMUqFO7osivySQM5BRwW zCdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dsK2597a; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b3si9596582edx.133.2021.08.02.04.21.25; Mon, 02 Aug 2021 04:21:48 -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 header.i=@linaro.org header.s=google header.b=dsK2597a; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233412AbhHBLUO (ORCPT + 99 others); Mon, 2 Aug 2021 07:20:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58318 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232553AbhHBLUO (ORCPT ); Mon, 2 Aug 2021 07:20:14 -0400 Received: from mail-vs1-xe36.google.com (mail-vs1-xe36.google.com [IPv6:2607:f8b0:4864:20::e36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CC38DC06175F for ; Mon, 2 Aug 2021 04:20:04 -0700 (PDT) Received: by mail-vs1-xe36.google.com with SMTP id y1so1667836vsc.1 for ; Mon, 02 Aug 2021 04:20:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=/JAmS8wvVy4y4SnKnMeVsMtIImqK8tLg7glG0zt3gSc=; b=dsK2597aaj0CgIdvqVQkHR795RotwvG5A4/u70kJ0TJVekQ7IvIH1e5/Y6SgOgYA06 RK6naf1sK2M4kitQvktRTKv4M7MdN4gs+KXuymR1kkRXlKp76D+mptGYPvjrSGVS/vBc /4nHen2KTAUvuu4sZxhkLzEuR1V5aIBapA2oxZbyAJ+ABjH1cRlfKYyqYaIGpJ0PNUEh n/NbNcUYOfXE8IxJW94di4VPuLDdopPmzVRInWH5fzJnyEeIhju0MN7hzd4exLMUI1L+ E9WKFdhhu4Ky1IkFxHqS3XtbnnlRnm1F5jGZtYasXlwNamLCMusJ1YuVAE5qeFkadXF7 cCuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=/JAmS8wvVy4y4SnKnMeVsMtIImqK8tLg7glG0zt3gSc=; b=eVnADI9fcvcZyBquib41MZcejoGLjo5PXI0DW3nrhLn4r67N2AKU0SmeFHCjulsLmi qdr7FZvNyOiwL1s4NOzD4E/tdZwvWEKHBbMTZu9Bxeqgbtigbw7QL/TQTTSUCppCvbPj D3/fDZFL7hKG8WgDr3VJxzb6/vKAGwCUbJ3z89q7fl2YOUUS0D9pii4COzbTLbgsI5dM gCTsPfGq9nH8MlcukSe2ELuXzl9kQSkw9WdTw853mg9PpH1cPL2Ih7nTAKUON7FpMxnD 67WZu2R+RYKXWZHWq5dSMt4+bKKub2sHsqga1QCz/CqwVP9nzVx7FAlKo1dOVSqxiDhu fQ+g== X-Gm-Message-State: AOAM533CoBAo7tsz4DH0D2h5EQYi47DzVcXTA6n5Icsfo1ckszXI4hDu Ep5vXUDUSXh9wvUqwlOv6+Uq82MYYzq2HJNjJxmyPQ== X-Received: by 2002:a67:7c14:: with SMTP id x20mr830130vsc.42.1627903203796; Mon, 02 Aug 2021 04:20:03 -0700 (PDT) MIME-Version: 1.0 References: <20210521134437.v2.1.Id1c70158722750aec0673d60c12e46a9c66bbfed@changeid> In-Reply-To: From: Ulf Hansson Date: Mon, 2 Aug 2021 13:19:27 +0200 Message-ID: Subject: Re: [PATCH v2] PM: AVS: qcom-cpr: Use nvmem_cell_read_variable_le_u32() To: Doug Anderson , Bjorn Andersson Cc: "Rafael J . Wysocki" , Niklas Cassel , Akhil P Oommen , linux-arm-msm , Andy Gross , Niklas Cassel , LKML , Linux PM Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 24 Jul 2021 at 01:05, Doug Anderson wrote: > > Rafael / Bjorn, > > On Fri, May 21, 2021 at 1:45 PM 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(-) > > Are either of you interested in landing this? I guess Rafael landed > most of the recent changes to this driver, but it used to be under the > 'power' directory. Now that it's under 'drivers/soc/qcom' maybe it > should go through Bjorn's tree? Yes, that was exactly the intent of moving the files. I guess Bjorn has simply been busy. Kind regards Uffe