Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp59271pxb; Tue, 12 Apr 2022 16:46:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxX9+0hcoE9Vij4YwIun7F0OOwh/2oPiwKK8bxB47/GZ6gPeCm5aHBw3bOFl4UEvocgslFx X-Received: by 2002:a17:902:d2ce:b0:158:6aaa:94e with SMTP id n14-20020a170902d2ce00b001586aaa094emr11568638plc.51.1649807204761; Tue, 12 Apr 2022 16:46:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649807204; cv=none; d=google.com; s=arc-20160816; b=TQp3Bv/EkCfhfaWsHaVof2C4uO2X0EqphBXPPpcE5g+RhGQROqEUleDphP5mxAR4pw EUiptnyt5bgV64Yi2ZEayJMEeXvpNxdqVuahEqn0HN0cd799dlGvH/jAR/51vQFjZco/ aZoDPuoPEipZgkhIGq1KzTK1L0r1+dV3sppHs2GSkG12R+LHy8o3jTbiiYAs6DNXFdW5 PRB7vtDmvjEQ14s2ZP4xGRRgjk1oScQ3EkEENgNw+UeDYesSfL0UpbThcyWGFk+Mq5/1 d88zR3K7ol6uXezjzkcqWOtFkNVVjOIXX7NUD6KFSkLzHzBvlgMtvf3nQT02E2Jn2LCp cMHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=3K51sbmQ8lmy2+7Rao3B6SkJ5pZ/iOE/xz34xa/ZFW0=; b=kbDyabJi35JHxrw+wJu5zMojpz4elSLDgJp6QC6z0Tktp7DxjZ53F2O15SPb1gT1La FAG7x2CnIM+8WLaieIPn0CcNinjWupgApuhuxILmAYzHmhHkf1cKTeq0W+u9qXoN3EsK +YEmNw1/QYaznvw7ZJXqJByNzRynLQPYttPrfpIsrc/2bpNlwFNohKBY/6L6r+xG0Z+m XshUgCi1dY3WNjZXv5KGGEwc+Wd0ZP7krIPZ9dJ0ItZpy9IQJIYKbQ4RrWZzrkv0dqeJ R8kvd6wlDLYRO0Zagp/Ws9IBLZKA8af+V9QBF82eg3ImGLqTzmqgxMiPbURx1CbYn7Ma 1NZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=XIDM+pO6; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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. [23.128.96.19]) by mx.google.com with ESMTPS id l14-20020a170902f68e00b00153b2d164afsi12894196plg.183.2022.04.12.16.46.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Apr 2022 16:46:44 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=XIDM+pO6; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 F2AAF1D66FA; Tue, 12 Apr 2022 14:39:09 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344144AbiDLJs7 (ORCPT + 99 others); Tue, 12 Apr 2022 05:48:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40326 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350623AbiDLJkx (ORCPT ); Tue, 12 Apr 2022 05:40:53 -0400 Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 75F93692B3 for ; Tue, 12 Apr 2022 01:46:09 -0700 (PDT) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 23C8k19Y115994; Tue, 12 Apr 2022 03:46:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1649753161; bh=3K51sbmQ8lmy2+7Rao3B6SkJ5pZ/iOE/xz34xa/ZFW0=; h=Date:Subject:To:CC:References:From:In-Reply-To; b=XIDM+pO6PvMLF2MyGFNcfrwFsAcmont47iAL1gn9vu9Z4q0rxyKNwKIF+06LjSb1g +S1d8ETZd42TsAsasheGqeNpIungiVl05EV2XhEd8IKTmmgw9cuGrALeqK1b4lFUei 9sUriGoGvetcDLkTnvjW7+k1bv9g9oOWtOXs30uE= Received: from DLEE103.ent.ti.com (dlee103.ent.ti.com [157.170.170.33]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 23C8k1Qb104814 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 12 Apr 2022 03:46:01 -0500 Received: from DLEE109.ent.ti.com (157.170.170.41) by DLEE103.ent.ti.com (157.170.170.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Tue, 12 Apr 2022 03:46:01 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE109.ent.ti.com (157.170.170.41) 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; Tue, 12 Apr 2022 03:46:01 -0500 Received: from [10.249.96.184] (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 23C8jwep053060; Tue, 12 Apr 2022 03:45:59 -0500 Message-ID: <48939b53-ede5-103a-ceae-9d7b9dcc4a1b@ti.com> Date: Tue, 12 Apr 2022 11:46:00 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [PATCH] soc: ti: knav_dma: using pm_runtime_resume_and_get instead of pm_runtime_get_sync Content-Language: en-US To: , CC: , , , Minghao Chi , Zeal Robot References: <20220412082923.2532649-1-chi.minghao@zte.com.cn> From: Grygorii Strashko In-Reply-To: <20220412082923.2532649-1-chi.minghao@zte.com.cn> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE 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 12/04/2022 11:29, 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 > --- > drivers/soc/ti/knav_dma.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/drivers/soc/ti/knav_dma.c b/drivers/soc/ti/knav_dma.c > index 700d8eecd8c4..061f92c8cf7d 100644 > --- a/drivers/soc/ti/knav_dma.c > +++ b/drivers/soc/ti/knav_dma.c > @@ -747,9 +747,8 @@ static int knav_dma_probe(struct platform_device *pdev) > INIT_LIST_HEAD(&kdev->list); > > pm_runtime_enable(kdev->dev); > - ret = pm_runtime_get_sync(kdev->dev); > + ret = pm_runtime_resume_and_get(kdev->dev); > if (ret < 0) { > - pm_runtime_put_noidle(kdev->dev); > dev_err(kdev->dev, "unable to enable pktdma, err %d\n", ret); > goto err_pm_disable; > } Thank you. Reviewed-by: Grygorii Strashko -- Best regards, Grygorii, Ukraine