Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2171695iof; Tue, 7 Jun 2022 22:06:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzhSTN+KYbAd2VZPYPwb4f89EsZgCrInOmcQJCchqzkubxQosIL8Os9g5ltMv7iOvdjkJPr X-Received: by 2002:a65:668b:0:b0:3f6:4026:97cd with SMTP id b11-20020a65668b000000b003f6402697cdmr28361006pgw.420.1654664814263; Tue, 07 Jun 2022 22:06:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654664814; cv=none; d=google.com; s=arc-20160816; b=UJdRJsXTnuAKKPuy0HVhfNEH07MuxmEYFlwS2fYvO/GF1Sa+LSN2NB5Vz9BuXRO2wh J9j3Idq3RSOhvae0oldqNScGJuWQ5zgwZh3RV1B7Rq3B3tYNaMUZesPpQQLwMmBaPKaF niqhS58buqJo7SAnTBtbe39YF4JqmXslIeOqkSTTFKjZW49vJyhzlljN/0GV2DlBs6uI KB7/+WxKEYohk52xhCrtas1+BY6z38e7P2XDqMaJM7tY3hLYDhsnH+NFwoSU2+MG3IGS H11e55Mv4/8ke+VnqHAwtVUQWURV0ktKZzTiaJXwaWEK5DwkHWRcq3VjzsxKmtQpi7/K mPeA== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=5sXpuVDjIm6IudEuQ4kqJsCbdWn/hrR5/BjzawTg3f4=; b=KTp2Kwkt5PoPvwDq8+IkOAZRaQGQvqR6oHNVAeca693trv9sJ1Ofr0KYMZm8G8PAlX 6RSTu4xnsilr8cfW7bTom3uLqUYBjiROnXA4WXIykx7NuwHEUPAIBL12Dr7MhlfDlm04 rAWtrkearhfKX+OcrCT7Ehe8zVgVMu6x1kqnCRbb3sL9BN/Dnxebh9budKZmIO0PA04J cLuS5IEJ6r9jyhXdthV7i8tqgBEs8AufjZ4kKNENRrIRCvOhQNL19oyOKlAC277WModT XhNeffRZW1F5Q0fj03cgCzzjq7KyFSqXzeTo8a3bfSwnWjemJgD5WGTlYFi5unrBq31m nsMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=w4NmNzc4; 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=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id q4-20020a056a00088400b0050e0d9b0e4dsi28907371pfj.166.2022.06.07.22.06.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 22:06:54 -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=@linuxfoundation.org header.s=korg header.b=w4NmNzc4; 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=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 533573BC3C4; Tue, 7 Jun 2022 21:36:23 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346047AbiFGRXB (ORCPT + 99 others); Tue, 7 Jun 2022 13:23:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43016 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346088AbiFGRUV (ORCPT ); Tue, 7 Jun 2022 13:20:21 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F1664104CB2; Tue, 7 Jun 2022 10:20:19 -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 ams.source.kernel.org (Postfix) with ESMTPS id A2CF9B822AF; Tue, 7 Jun 2022 17:20:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 000B7C385A5; Tue, 7 Jun 2022 17:20:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654622417; bh=8fyaHLfs66JSD8DWARG4Vmw9VaXoP4pQwZnrSrmzxME=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=w4NmNzc4Sq3Oviy8q3AG7BsNybW8cBTUYuqpWHkt6XxzAao/OOJr3RCLnQ6X419H4 +8Vjf8RacfRD0ComFfwHvLh0eBIQIHhfMU9ZwG8Em0SUAOLlP+qrhPoyvYvKw9zekr NgimN60j2y2hD6YcpVyuiSovOseMK2sVLu3X9+Rk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Zeal Robot , Minghao Chi , "Martin K. Petersen" , Sasha Levin Subject: [PATCH 5.10 051/452] scsi: ufs: Use pm_runtime_resume_and_get() instead of pm_runtime_get_sync() Date: Tue, 7 Jun 2022 18:58:28 +0200 Message-Id: <20220607164910.069151299@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220607164908.521895282@linuxfoundation.org> References: <20220607164908.521895282@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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,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 From: Minghao Chi [ Upstream commit 75b8715e20a20bc7b4844835e4035543a2674200 ] Using pm_runtime_resume_and_get() to replace pm_runtime_get_sync() and pm_runtime_put_noidle(). This change is just to simplify the code, no actual functional changes. Link: https://lore.kernel.org/r/20220420090353.2588804-1-chi.minghao@zte.com.cn Reported-by: Zeal Robot Signed-off-by: Minghao Chi Signed-off-by: Martin K. Petersen Signed-off-by: Sasha Levin --- drivers/scsi/ufs/ti-j721e-ufs.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/scsi/ufs/ti-j721e-ufs.c b/drivers/scsi/ufs/ti-j721e-ufs.c index eafe0db98d54..122d650d0810 100644 --- a/drivers/scsi/ufs/ti-j721e-ufs.c +++ b/drivers/scsi/ufs/ti-j721e-ufs.c @@ -29,11 +29,9 @@ static int ti_j721e_ufs_probe(struct platform_device *pdev) return PTR_ERR(regbase); 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 disable_pm; - } /* Select MPHY refclk frequency */ clk = devm_clk_get(dev, NULL); -- 2.35.1