Received: by 2002:a05:6512:3d0e:0:0:0:0 with SMTP id d14csp10657lfv; Tue, 12 Apr 2022 15:10:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwvgiu0V8CIqwArrQ/7BpCOi+2kCnH5GEgbzwf6m1ZzOX/CYDk87l69qHSnsv+CxSy9EiPY X-Received: by 2002:a17:902:a40f:b0:14b:61:b19e with SMTP id p15-20020a170902a40f00b0014b0061b19emr39664541plq.20.1649801441410; Tue, 12 Apr 2022 15:10:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649801441; cv=none; d=google.com; s=arc-20160816; b=UWLBkv88RCApKqhwtAYuO7z3Y89g5ya32sJEVQFgTE7MibxIy1ogrLbOD3ozDF+PZG dLVYJtPKAJz6SWrc96UtFREL6tKELElCL8v7L5e40D7u9G/CWNJEmHl0v60Zo8Ff38QU wuc2QKUk3/FXbJwBXEuH+laBxztOEdfT55Zf6ibnBhMAMKZSyzkZEVwTJJ9cwLGZoVgY VLTmmVDqJlVD7YgyfRkfc9II9mTnFCkaR7hb1PddMLCAruHwTGqCywHOBZo4kMriIV5y 7qkMSh+MReKVIi0cjDPgtb55yBEX8EVLClD8/JzSKgKng1vefX6IaSKI0UTrXf8V8Hyr 8XQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=/L0IJbKP3lY8e64VY887AJTXuXf2o/pfs3vhcd0kvnE=; b=b6k8tNwt9AgZJnSvAs8eYXdz0WZ6fGzm6qjKBI1Z11Jix0gaBo4zDiFWDz0GSBcegw XCvnR/aXZwl8az/aCyqCuRKxlzd/Ci1KxQBCKzvCzQOoGfCSsiCUOX/VIo9XaPh41FfF bKO1DhYHGt7ge20+HnJo8xYm/QbP91UdHiH0ELkPw8tOyoJe+EFFeWPThBGg1byzO2Iu fEmT4ueu6bUeTsES3dNumeozq+9jsaPy/0aLVSHbJZtXRiNOa1Fgr5azMDy6BxQ1C2AG OIYV4SvQwKvtXiK8Ly/7oiUFDGqC+80x2Lz54uak+58palgQ40nDzv5QipeRUK3EcIZO kpOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=HhYHV7+Q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id v1-20020a17090a634100b001c68967d8f1si12600778pjs.80.2022.04.12.15.10.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Apr 2022 15:10:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=HhYHV7+Q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 08BB6174E80; Tue, 12 Apr 2022 14:02:10 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244284AbiDKBm6 (ORCPT + 99 others); Sun, 10 Apr 2022 21:42:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42826 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231403AbiDKBmz (ORCPT ); Sun, 10 Apr 2022 21:42:55 -0400 Received: from mail-qv1-xf2b.google.com (mail-qv1-xf2b.google.com [IPv6:2607:f8b0:4864:20::f2b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5B9C2BE25 for ; Sun, 10 Apr 2022 18:40:43 -0700 (PDT) Received: by mail-qv1-xf2b.google.com with SMTP id a10so822018qvm.8 for ; Sun, 10 Apr 2022 18:40:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=/L0IJbKP3lY8e64VY887AJTXuXf2o/pfs3vhcd0kvnE=; b=HhYHV7+QfjbR22YueWQ1hQZtsxTdvw/eZ6GfITrRKFrLEeACNJgbCR4+7DYTSzJBe1 U4WPtA6Act49/sbSLA6NfesOygapuDKRVR1xbnvCRADDdlbIYOh8MOdgnCpYdR6W5giX t0gQyzcnnyVbbTfDPZCG0GgQ+HAxUXQRyE6R8y+Js/t7HiS2RoBzcRHnsJnYEqTrZJpT BAO7zUXZHyUcJdiUfwDLHMbMeLKEnfYaIXZMybPWsfz64AiY8UtyM2/AqSn996bCc0qL HzDY05oRMyG6lb0XQyrdHswhtqcycGgFTkETY50WEvXAU4YNvd7hrfg6oS6JzG+UIK57 tOMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=/L0IJbKP3lY8e64VY887AJTXuXf2o/pfs3vhcd0kvnE=; b=Ai9vDiWrlay0Z87t1mwV4sDTlz0SxNQVxIlp7spw5x+nUxhdjO0BV97RuBax5/Ka6A RRAsIhDSvVbDEqSg6VCiK/jlKQ8sKfPFdPXZXmlz4s6+KFQ3BIEzxcM+vVyweG6iSjso jPVOA2TOlCDgEqWfAa1k6EiQiZLVtCR/5qCGo8hriZTu/jbjxvwDrxuZmteY6NKoeewU J+Knc9hV6h8kCPmwsvEqx5kq/zq9iUOmdN1cinGt5nnMHNw8DQG6c2He4/ubnTAIC8Xd qFQeoDDfDOfRJdyaYMrdXV11KsJmUvKjWFw6AnXvvpnQ/OpwIzMSQv76LVmU666XR4Aa U+KA== X-Gm-Message-State: AOAM530UHeuGbjJEMhtP4dYLHEht9GtzEYc7fFms2l7zNMJGPn08p+GD 102AbdWD2w7ObIYLIhklwcPT7Wn2mfM= X-Received: by 2002:a05:6214:5185:b0:444:38ef:5942 with SMTP id kl5-20020a056214518500b0044438ef5942mr6086252qvb.42.1649641242598; Sun, 10 Apr 2022 18:40:42 -0700 (PDT) Received: from localhost.localdomain ([193.203.214.57]) by smtp.gmail.com with ESMTPSA id k20-20020a05622a03d400b002ec16d2694fsm8811022qtx.39.2022.04.10.18.40.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 Apr 2022 18:40:42 -0700 (PDT) From: cgel.zte@gmail.com X-Google-Original-From: chi.minghao@zte.com.cn To: srinivas.kandagatla@linaro.org Cc: linux-kernel@vger.kernel.org, Minghao Chi , Zeal Robot Subject: [PATCH] nvmem: qfprom: using pm_runtime_resume_and_get instead of pm_runtime_get_sync Date: Mon, 11 Apr 2022 01:40:36 +0000 Message-Id: <20220411014036.2517274-1-chi.minghao@zte.com.cn> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Minghao Chi Using pm_runtime_resume_and_get is more appropriate for simplifing code Reported-by: Zeal Robot Signed-off-by: Minghao Chi --- drivers/nvmem/qfprom.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/nvmem/qfprom.c b/drivers/nvmem/qfprom.c index 162132c7dab9..c1e893c8a247 100644 --- a/drivers/nvmem/qfprom.c +++ b/drivers/nvmem/qfprom.c @@ -217,9 +217,8 @@ static int qfprom_enable_fuse_blowing(const struct qfprom_priv *priv, goto err_clk_rate_set; } - ret = pm_runtime_get_sync(priv->dev); + ret = pm_runtime_resume_and_get(priv->dev); if (ret < 0) { - pm_runtime_put_noidle(priv->dev); dev_err(priv->dev, "Failed to enable power-domain\n"); goto err_reg_enable; } -- 2.25.1