Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp986518pxb; Fri, 22 Apr 2022 16:02:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwNaB3NwiIbrO6KZb/DHdqJOswM4ZBDAKUjWK18A3Rj4WFNBGYNWw0J1AO8VmcD7k/7r1w0 X-Received: by 2002:a63:3f8f:0:b0:386:3116:a1f3 with SMTP id m137-20020a633f8f000000b003863116a1f3mr5867326pga.136.1650668551881; Fri, 22 Apr 2022 16:02:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650668551; cv=none; d=google.com; s=arc-20160816; b=ZWGlJry4N2194N5GZZ846n24y/SgGDXqPz2BbqSgH1xyRb1betZI6DOcsAZ8qTooI8 Y2x4TCPudtFeIwy55+KHg0+U97KLX/r7KrBMTKvLkiTeXQesr/nu0P1Y9Vv4knNSZ5FO d48AGb+Rm6vmBjVKINraI0lmaOHEED74cyKz+hoW33KVhPWv4LZAgnx3pth6I9anHMVj slArltqy5XkB5Rgrlwq24Wn4OJ/sOgoi9EArfHjLwHXq3XRyvaO+1wU9mgUrspbWBQV3 7n0iD5rmXUtNu0HLmd3/8qAE9YjxIAOW8T6zsu/UV+Qh7WQzUGqZWS2Ir9n0b533u+31 7bYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=jL5+JwCMsTSzM2LVGeKWU46/zHtkF+EJ8LNwJy/lJNM=; b=dlHiEUjLLDxjPImBgubPdpXRAysEaQ8lyBB9kBL0NMP4wd1oNBzoWrcVnJ2oVZuS6N HEe6S8AHSs1ji6l/IJdr8TYWzRF3hshuDj7yIlHO7tgoC55gh2jc4PIc1LqA1Ak5/fWw cA78Oj5FNBQXBRXaVxnVhEHP70WqqJN94ikbwK17f69RkWdVac7LCM8pTACsvqUR/YOf wFViT2h+Ob4k0AxN/M1BdvzeCH0sxDcOwLWzunsSXUH5BDchzuqjuTs5BxHhnCrzVDVM 7sqDJ0lUuJ4D5sF8cpqpfKvv2dIXNDsr5zJQ2juh9c0UZalj9cWLwVEVkV3kkuQTKF64 pK/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=cTkH6TME; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id u64-20020a638543000000b003aaf7a65618si234094pgd.22.2022.04.22.16.02.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 16:02:31 -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=@ti.com header.s=ti-com-17Q1 header.b=cTkH6TME; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id BF4B432A9EA; Fri, 22 Apr 2022 14:55:27 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230422AbiDVV5Q (ORCPT + 99 others); Fri, 22 Apr 2022 17:57:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60740 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231137AbiDVV4w (ORCPT ); Fri, 22 Apr 2022 17:56:52 -0400 Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C5BDF407ED4 for ; Fri, 22 Apr 2022 13:42:03 -0700 (PDT) Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 23MIeMoG033941; Fri, 22 Apr 2022 13:40:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1650652822; bh=jL5+JwCMsTSzM2LVGeKWU46/zHtkF+EJ8LNwJy/lJNM=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=cTkH6TMEhd/jT7YSK904kjPRxu962l78xyt8Dhv0/OvVn4MNtq/9sVLnVXfg3bmux ZlMAVyn3QwcyX3x4EpL9+HQPUuwV/4cG6jOjKSb4llGQIA0iJLT9Q0EjMO0R3dMVIq j+/8wotR7NnktIST0hxWIh5h62OXE5zdZXr3kwjY= Received: from DFLE100.ent.ti.com (dfle100.ent.ti.com [10.64.6.21]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 23MIeMAp011441 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 22 Apr 2022 13:40:22 -0500 Received: from DFLE107.ent.ti.com (10.64.6.28) by DFLE100.ent.ti.com (10.64.6.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Fri, 22 Apr 2022 13:40:21 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DFLE107.ent.ti.com (10.64.6.28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14 via Frontend Transport; Fri, 22 Apr 2022 13:40:21 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 23MIeL4o078154; Fri, 22 Apr 2022 13:40:21 -0500 Date: Fri, 22 Apr 2022 13:40:21 -0500 From: Nishanth Menon To: , CC: , , , Minghao Chi , Zeal Robot Subject: Re: [PATCH] soc: ti: pm33xx: using pm_runtime_resume_and_get instead of pm_runtime_get_sync Message-ID: <20220422184021.v2w55kbvllu3flar@daughter> References: <20220418063059.2558074-1-chi.minghao@zte.com.cn> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20220418063059.2558074-1-chi.minghao@zte.com.cn> User-Agent: NeoMutt/20171215 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE autolearn=unavailable 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 06:30-20220418, cgel.zte@gmail.com wrote: > From: Minghao Chi > > Using pm_runtime_resume_and_get is more appropriate > for simplifing code > > Reported-by: Zeal Robot > Signed-off-by: Minghao Chi Tony: Could you check? > --- > drivers/soc/ti/pm33xx.c | 6 ++---- > 1 file changed, 2 insertions(+), 4 deletions(-) > > diff --git a/drivers/soc/ti/pm33xx.c b/drivers/soc/ti/pm33xx.c > index 7bab4bbaf02d..ce09c42eaed2 100644 > --- a/drivers/soc/ti/pm33xx.c > +++ b/drivers/soc/ti/pm33xx.c > @@ -555,11 +555,9 @@ static int am33xx_pm_probe(struct platform_device *pdev) > #endif /* CONFIG_SUSPEND */ > > pm_runtime_enable(dev); > - ret = pm_runtime_get_sync(dev); > - if (ret < 0) { > - pm_runtime_put_noidle(dev); > + ret = pm_runtime_resume_and_get(dev); > + if (ret < 0) > goto err_pm_runtime_disable; > - } > > ret = pm_ops->init(am33xx_do_sram_idle); > if (ret) { > -- > 2.25.1 > > -- Regards, Nishanth Menon Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3 1A34 DDB5 849D 1736 249D