Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp193483imn; Tue, 2 Aug 2022 23:29:48 -0700 (PDT) X-Google-Smtp-Source: AA6agR7gzke/hExuj24gFtFG2U9hwvmvBgmjW7GI2A/nvaDctjzk5Fao87enfFwyr0vqJ+Td8LC4 X-Received: by 2002:a17:90b:4b44:b0:1f4:fb36:a9b6 with SMTP id mi4-20020a17090b4b4400b001f4fb36a9b6mr3334050pjb.120.1659508188551; Tue, 02 Aug 2022 23:29:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659508188; cv=none; d=google.com; s=arc-20160816; b=QE2OYzejxBALIWLZQgpF84hvdmbjlP+8ECzZEwTsLZZZsHSMJwTJlTrRxUKRSwJiUJ Dw9V9pou4wCa7I6XlRJautxvy8X0rw2qSqqPCcEfG+He0EYWQLXVQwlrDi1Ss/VIBNwi ZFcpdMC3SAiU+dQSQkIxwSFL5PRIKGWpExMQt1Cndz9FcY2Hl3a8Jup9+p6OXYHOnzKz MFcO0g1FMsspzkCwevYzrdjLR+UV8QTRj4vOrVNsYDy7pyPbcJFY+0YJmyCbIHh4W7NN X7FpZd6Epcd6BrAtqoYAmGexUQECLwIOqDoRuO++FEncqRxPxGjkuwfWKX1z2QY9v6i4 8zZA== 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=pofh/mBkV9iyAkeXPvhTnC/91KwnyKUAxl/+MJcDnJ8=; b=qcrlVAgEoDhMgpSk7HK5QXBVFZUEelgvkf4yXFjcSStHveHkIn/bss/sCFzbWebF5J 4IELIw7RdTHksTZQP2eMzXDmhTYjGcvYi+38/0cb18XbT5lyUVj5NWPXOYBzwXkHAk1E 4dvBrdXreIIeW0gY4RDxMSBEidlpib2wsEuhnXzxOUfB/HPCSzTiMWk4PaWanG/mvGMn TpJYbUreA4jqenhOZZDBitabWHGkYHLFI5C2sj8Ygv6Tipwq4zCMkvFX738gEO56ADXZ VhfhqotDt52xZ/FMLhZSBv89guVhJWFng/oR+Je5XG4ydx3zZhjUZwAw46SfCGT1y+xK zh5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Xbp0g8fX; 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 q16-20020a056a00151000b00527cbdcec6bsi19864961pfu.150.2022.08.02.23.29.33; Tue, 02 Aug 2022 23:29:48 -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=Xbp0g8fX; 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 S235699AbiHCGXF (ORCPT + 99 others); Wed, 3 Aug 2022 02:23:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39020 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231150AbiHCGXD (ORCPT ); Wed, 3 Aug 2022 02:23:03 -0400 Received: from mail-pl1-x62c.google.com (mail-pl1-x62c.google.com [IPv6:2607:f8b0:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0CD67422D6 for ; Tue, 2 Aug 2022 23:23:03 -0700 (PDT) Received: by mail-pl1-x62c.google.com with SMTP id d16so7403307pll.11 for ; Tue, 02 Aug 2022 23:23:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc; bh=pofh/mBkV9iyAkeXPvhTnC/91KwnyKUAxl/+MJcDnJ8=; b=Xbp0g8fX57U6TlkZXO9/p38tBgYrr5OiEcJnmkdc8AE8Q197Qk8nfzZWyFtkx6cqCC Nq0XKqMqtrpo9BlRKpxC1MCqvfSPlNVtLtrHFd1hpG0H23QINjZN7Q1DqDg45kf0XNdc QrRunSuT9DIXuNjC8s7v17thS6IEoDnj5am3zdtgNGx3SM/QvjaPxmocH2W5eQHXlB1q imrdEsnG86XSH0nzz7oqGbY/abogh8MGLxiXo0eMJ8W5fPHQOsVXsQw7FYcYIOCK8ojq ndILB4WJIpfdgi17uiPUcMxJ8qNaHVH0ucEdJhY3h5vfIYKnK91ND+GahrpTbDpgSGDx YZFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc; bh=pofh/mBkV9iyAkeXPvhTnC/91KwnyKUAxl/+MJcDnJ8=; b=XjWIhq/npQ/F0ZKhtOVtqYOmntZDavebwkD4XtrzNYapIK53tfUNbTwpy+VATGzHEX SGR3JQz+hmRbpLKi+JixZOj/ikxz4oEuJh96ZBbiTTZgkP0U1WuU6rl8bPc9xdG1OHWs X5znbKWP4eL2b9wWjyFTxlYd/11ZorzYafm7dcT4gQDnJtRXnS8azTRP6KVtIrKGI2J+ E49fMWHPg5UihF2HkLajpVZzNgnngeBz+JupEWW/CBxxrXc8DpL+Ji9OGAHTJEu77h3Z l1iVMLCPbuwVecrmttYzr8r9DqVRr/GR52jbc/oQI15oiEb7bWmWqnhU9hAu9UGEzODt pS3g== X-Gm-Message-State: ACgBeo202yhOXZmwzp9bdJkFexdYaca4JW2+d0rraWfy7tw0iWO7aFrO twSGBFHi5jjpyF29n/4BuJW1LMdtCSQ= X-Received: by 2002:a17:903:1c3:b0:16f:878:ed42 with SMTP id e3-20020a17090301c300b0016f0878ed42mr5555777plh.163.1659507782442; Tue, 02 Aug 2022 23:23:02 -0700 (PDT) Received: from localhost.localdomain ([193.203.214.57]) by smtp.gmail.com with ESMTPSA id k12-20020a170902ce0c00b0016bf9437766sm865885plg.261.2022.08.02.23.23.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Aug 2022 23:23:02 -0700 (PDT) From: cgel.zte@gmail.com X-Google-Original-From: ye.xingchen@zte.com.cn To: linux-kernel@vger.kernel.org Cc: gregkh@linuxfoundation.org, greybus-dev@lists.linaro.org, ye xingchen , Zeal Robot Subject: [PATCH linux-next] staging: greybus:using the Date: Wed, 3 Aug 2022 06:22:58 +0000 Message-Id: <20220803062258.1650792-1-ye.xingchen@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 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: ye xingchen Using pm_runtime_resume_and_get() to instade of pm_runtime_get_sync and pm_runtime_put_noidle. Reported-by: Zeal Robot Signed-off-by: ye xingchen --- drivers/greybus/core.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/greybus/core.c b/drivers/greybus/core.c index e546c6431877..b9063e86534b 100644 --- a/drivers/greybus/core.c +++ b/drivers/greybus/core.c @@ -174,9 +174,8 @@ static int greybus_probe(struct device *dev) if (!id) return -ENODEV; - retval = pm_runtime_get_sync(&bundle->intf->dev); + retval = pm_runtime_resume_and_get(&bundle->intf->dev); if (retval < 0) { - pm_runtime_put_noidle(&bundle->intf->dev); return retval; } -- 2.25.1