Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp197068imn; Tue, 2 Aug 2022 23:39:13 -0700 (PDT) X-Google-Smtp-Source: AA6agR7WKpXT9NaONXPUo5pADmu7XUhKTANUw6GuKOSlW9b9dq8d76ltKUWENcESMJI+PcxvAZsx X-Received: by 2002:a17:90b:2684:b0:1f4:f2a7:f2b3 with SMTP id pl4-20020a17090b268400b001f4f2a7f2b3mr3494374pjb.70.1659508753790; Tue, 02 Aug 2022 23:39:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659508753; cv=none; d=google.com; s=arc-20160816; b=YfZbNkoU26pFwPuMbMBwiDjqttUaEqs5J6OG4RwlakTxPFA+K0wLgSnDrorLgc5Zo/ HrPBdPXDHzyjALboVBWOQCtEmbsutW9CBFPSEVH24NEyDsjXEUg3MRv+20cVBQQpFe0x wu/nGLilGohQPkf45tU6ZXi6YfuHjf9u/CvnpGEsfV2hN+Df2mxORXUWAmg5Uae0Iu3k 4LBLMdzjxofGTCwieuCg4SzsQGANcDbBWYlcEThBt5bk9s81J1CEA0my4wKo0bR1nN2V Um5MM+JjWcK2PLlkQyaLmF0HnjVD0MmJo2Z2BLUPph2t4IfhgU9lMb5BeUf1g30Xvfv8 sgfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=e6A+hkhePMtbvQk89ggXs/GeXWZju6ezu3FPZ9Hvylk=; b=LUBC4dp+XgDeuX/Ltknq3VdgVJVE305AxXM+A8YmhoWjOUGYL/wV4Awm/Aq65S6shy 2LN7JP+uVGvmoUPOqwRtt4OkbX9rBiYGhzZFYfpZxr4rGDRVWyOG6iB0zB9GOC5uU0LP en0c+tlxzljaQXo3IOsVyzHp+F3XVzgSUxB64GOS4iiYFpvp2rZKF1j0v7SZGmGzBAAL NLRojiJGbr2C+Q6hWw8mqH0M6qIwqzlfT1D63h8ewwsbRwrWnC7lFuccuStAU0aJxzMI aZjUKGIE+zkVFjg5JdRM99ZVz2MivRw7jyud0jZ8cv+sP3Effa6WhML54g39Dped8zqP sDpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=pVLnA6aV; 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=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k71-20020a63844a000000b0041c33516ca1si7007355pgd.658.2022.08.02.23.38.57; Tue, 02 Aug 2022 23:39: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=@linuxfoundation.org header.s=korg header.b=pVLnA6aV; 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=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237233AbiHCGav (ORCPT + 99 others); Wed, 3 Aug 2022 02:30:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44476 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232602AbiHCGah (ORCPT ); Wed, 3 Aug 2022 02:30:37 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0608160C8 for ; Tue, 2 Aug 2022 23:30:37 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 93EA4614C8 for ; Wed, 3 Aug 2022 06:30:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9E399C433D6; Wed, 3 Aug 2022 06:30:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1659508236; bh=uRiFD4YkF3E1o4CEeQJKWDz+kcz0iU4N40GXcvKkJec=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=pVLnA6aVgSIxEDyB653YdR2hEn2+osHv2mIR9xkaPNhXk+Au8W4iuxA1fgukQlMwJ G2s+8yWQXRtd7TmeMcRJvFFqxc4xc5OASyevz8Tu5XcHNfJRqM8iVmNgo93lJhhh1f vmjYO7pOFv3+ejbQ9l7hNAIRFNdbLVGHmmVPKOCk= Date: Wed, 3 Aug 2022 08:30:33 +0200 From: Greg KH To: cgel.zte@gmail.com Cc: linux-kernel@vger.kernel.org, greybus-dev@lists.linaro.org, ye xingchen , Zeal Robot Subject: Re: [PATCH linux-next] staging: greybus:using the Message-ID: References: <20220803062258.1650792-1-ye.xingchen@zte.com.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220803062258.1650792-1-ye.xingchen@zte.com.cn> X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 On Wed, Aug 03, 2022 at 06:22:58AM +0000, cgel.zte@gmail.com wrote: > 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 Now this is just being silly. Consider all future emails also dropped. greg k-h