Received: by 2002:a05:6a10:144:0:0:0:0 with SMTP id 4csp77676pxw; Fri, 8 Apr 2022 01:19:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzF9TQLTGJjhJdfoiWEnFGHqa6XMJRFVPdDJd7wItHUD4n8C71rgnoRFX85kzQ0G+PzbxlN X-Received: by 2002:a17:906:7948:b0:6da:64ed:178e with SMTP id l8-20020a170906794800b006da64ed178emr17961744ejo.523.1649405953029; Fri, 08 Apr 2022 01:19:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649405953; cv=none; d=google.com; s=arc-20160816; b=VV34auGHMQlh7+1iZHyzTEE4lJ3KLoCxY+8Bdo4aYINXdaPukYc2OQDQUvSBYJucFg PXSi1Si9a4aAla0CVSN97X4PrlivDY0qwl3Y4kpOT93MAV1G+UCDhwvxyO/KV4mMl9VE 5/qIP4Ygxgh8KW86R7y5zdhCdIAI26ch2skw+52j535Kcb8mEryJMngc40EQb0gyLFkS rzMbOMx5i5anTQtINMbe2AJFNDLehH1LsOrem0IJ5RdUZIid9Jzgacg50oOAAaB2oO2r uRU8eH/WdYOtpa4zHuyyxDftFjvjZuq62ttAdBvu5anStXr9qqb0QpCm+fm2YsIkgq9Z aJog== 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=0nZ8Cf3LRZ0eXC+/jDpJdGvASXhI58JudQeh/uFiupk=; b=vQdhINWDCmhndWFZDljRMmmU/0j25ZjqLob41faYVwaMJRXazqUsViIY4vUyP0A6T7 TMbdOmO8Oj+c6VlGAZD36ogbnIhaMDMGlxnMV66/y1JmxZKPnMNacAF+D5Jb1VaqK9/S 9E7Nas7/JKaZjrLvfVZZoSeMAKUC+Uxnzn72gDdhBL3c9624xiDOfKbvR0GsICzGG1zr 5jGxDBZlPSNqHUY80T+Kv+aTa6jXRugkPcBtCcz2bWk7anw4Vo18ebdy6b9bit/hLMST h5WAZtycDiqpW61lNsSW7DITKz40uy2lUQAQIYLudHeLDcGFhF4JUSwZUKN7/nGBmrYn 3uNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=H1IEa2iW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x7-20020aa7cd87000000b0041cbd10e5cesi287258edv.125.2022.04.08.01.18.48; Fri, 08 Apr 2022 01:19:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=H1IEa2iW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230301AbiDHILH (ORCPT + 99 others); Fri, 8 Apr 2022 04:11:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33468 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229520AbiDHILF (ORCPT ); Fri, 8 Apr 2022 04:11:05 -0400 Received: from mail-qv1-xf31.google.com (mail-qv1-xf31.google.com [IPv6:2607:f8b0:4864:20::f31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0867331369 for ; Fri, 8 Apr 2022 01:09:02 -0700 (PDT) Received: by mail-qv1-xf31.google.com with SMTP id a5so6948874qvx.1 for ; Fri, 08 Apr 2022 01:09:01 -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=0nZ8Cf3LRZ0eXC+/jDpJdGvASXhI58JudQeh/uFiupk=; b=H1IEa2iWhEQ1d1Yjqu37Cs/OifXy4ZmAuFmoO6+VooAyXg1ksBXzGezyqoNwfDQV6t PnvA4NdgCNYKChIP20C18F3IWSwY+8P+CFq3R0siTVXKY0WPp1ArzWky5FomG97bmHUy VTgIUM1XOwPNdQskNNEeJ0r7JGQ3FD5tZR8z9caRTHNxPtA8K41qIXjM9GoNURXe42hK z8VXV+0c7p0EzXc3/G6GzT6LucdwhFJ/LKFLDSQ9MAm2amFNCT2ZfSgSoKncRwBtegKQ vVD7gyG38/vk7+mtAA1/se21LH4Xv993+W5sM8cHpy92zry8WXG2xTYIieCmlEy065+V fvug== 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=0nZ8Cf3LRZ0eXC+/jDpJdGvASXhI58JudQeh/uFiupk=; b=Y0Gs30Uzr9Z6b+BxPvMmWYJV1iHYO9iFUMkG6o2HMIWkMtvf7QOXRuC5SD+y4diQIn VhRJbQ//62OPp/tePJzmm+FKQG1zy5vY6gA5wMgbghSuvgsWVfO39ovRQ0fQ71n2zxU4 xVatuq2woud+eqvMtu/MbNvgO+2hPtHTRUth3q+Wos2RH6srC7l2X961H6Oi6DfFVCFa JH8zhNkupwHbYloduI3bsTD7GZV8B2YVx4s0jXiREXS3NR9PvoUJKJmnBbHTO6l2p7w0 g+58JNWjKjDifsohvjUC1jK83MyY4hVUXZkTthJxpdn8yOuuieF1JuwZrBeKLnu/ts1N CbZA== X-Gm-Message-State: AOAM531sEdl6CAuCREG5MV9VvKW1F+I4h1rRqx51mLx8WmWdJB1L8vIn g0Ohndzw7jCrTuycP54p+zg= X-Received: by 2002:a0c:f649:0:b0:443:da6c:4297 with SMTP id s9-20020a0cf649000000b00443da6c4297mr14824550qvm.71.1649405341255; Fri, 08 Apr 2022 01:09:01 -0700 (PDT) Received: from localhost.localdomain ([193.203.214.57]) by smtp.gmail.com with ESMTPSA id c65-20020a37b344000000b00699aa260f5dsm12102323qkf.1.2022.04.08.01.08.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Apr 2022 01:09:00 -0700 (PDT) From: cgel.zte@gmail.com X-Google-Original-From: chi.minghao@zte.com.cn To: nm@ti.com Cc: ssantosh@kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Minghao Chi , Zeal Robot Subject: [PATCH] soc: ti: pruss: using pm_runtime_resume_and_get instead of pm_runtime_get_sync Date: Fri, 8 Apr 2022 08:08:53 +0000 Message-Id: <20220408080853.2494292-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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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/soc/ti/pruss.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/soc/ti/pruss.c b/drivers/soc/ti/pruss.c index b36779309e49..0e4ba0f89533 100644 --- a/drivers/soc/ti/pruss.c +++ b/drivers/soc/ti/pruss.c @@ -279,10 +279,9 @@ static int pruss_probe(struct platform_device *pdev) platform_set_drvdata(pdev, pruss); pm_runtime_enable(dev); - ret = pm_runtime_get_sync(dev); + ret = pm_runtime_resume_and_get(dev); if (ret < 0) { dev_err(dev, "couldn't enable module\n"); - pm_runtime_put_noidle(dev); goto rpm_disable; } -- 2.25.1