Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp4277071pxv; Tue, 27 Jul 2021 03:25:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxEeM+CfHHyuwICNeys3adnRLoslkR2/44BwpNZ5ePM2xa5sUCNOeLHObhfRg08ZN4e4q95 X-Received: by 2002:aa7:c043:: with SMTP id k3mr26242702edo.160.1627381531953; Tue, 27 Jul 2021 03:25:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627381531; cv=none; d=google.com; s=arc-20160816; b=kRYSQc4xSPVJinlX6yiSssUk/NAvPUb5vQAJEOsyjRn61Ea8yohBOUITCBX7mlSgQp CChXldkjM+YQeRSmyiwaCuuD0eUF86fKk8knqi1bv9LpjwtX65eWDFuwE5BdEQXyiTNb PavFiXowf5mGWxTd2+CqMLeey53N9n2/gAvlXxXsensB+8SKEk18WVQhvhKvFLUy3eNU ZVEahoWnCdqcYfjkQv9AgEx++XgcyLwvjaZ3CHURwPOrxMkMuYuaoVibRlkisp0j491J lJ0Wmbujx40L0nSGLDxc6aAXd5krIp23XDpbEIQVnqFIBYtLza2xrG24TKafEmU4pA/9 RXmA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=TmfW/FEooYGd43TbA0VqEZDrleGxfjgX8SaLD/D9IJo=; b=lzEL4q0XLUUL/sPfpWH1gEFNT55EhIz5Tx8USvw1DwObu1V0uvNldex95qZ2l87QiN YmL/81ilZe47A7zb2805gBw7UQPDJu0pJyhRQi8XDNtxk7PAEBhiu3JM9keGjdMWmewK rSbo3fN5QeuwpJd3jCuNRUOviNy7HyWPW2mVgRXTUsCoh+eyFcExfAz/Ro/g95u4fVas dKRZtbjBVvU6keTxrLfHUbJ7FigdN1oaATU7bVppegFKYXO6PwKLJg0PZ14PWFpblHpO 7sJJ1ChTSc/XxMML4sD8VNDJbHQEO7EYuBQ8Udcp8jUBVwJF/549Yvu87ghQIQsPoTg6 rdxg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n15si2743036edy.519.2021.07.27.03.25.07; Tue, 27 Jul 2021 03:25:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236269AbhG0KYr (ORCPT + 99 others); Tue, 27 Jul 2021 06:24:47 -0400 Received: from muru.com ([72.249.23.125]:55838 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236286AbhG0KYC (ORCPT ); Tue, 27 Jul 2021 06:24:02 -0400 Received: from hillo.muru.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTP id AD4FD8132; Tue, 27 Jul 2021 10:24:18 +0000 (UTC) From: Tony Lindgren To: "David S . Miller" , Herbert Xu , linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org Cc: linux-crypto@vger.kernel.org, Lokesh Vutla , Tero Kristo Subject: [PATCH 5/6] crypto: omap-sham - drop suspend and resume functions Date: Tue, 27 Jul 2021 13:23:38 +0300 Message-Id: <20210727102339.49141-5-tony@atomide.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210727102339.49141-1-tony@atomide.com> References: <20210727102339.49141-1-tony@atomide.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Let's get rid of the suspend and resume calls to runtime PM as these calls do not idle the hardware. The runtime suspend has been disabled for system suspend since commit 88d26136a256 ("PM: Prevent runtime suspend during system resume"). Instead of runtime PM, the system suspend and resume functions should call driver internal shared functions to idle the hardware as needed. Cc: Lokesh Vutla Cc: Tero Kristo Signed-off-by: Tony Lindgren --- drivers/crypto/omap-sham.c | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/drivers/crypto/omap-sham.c b/drivers/crypto/omap-sham.c --- a/drivers/crypto/omap-sham.c +++ b/drivers/crypto/omap-sham.c @@ -2221,32 +2221,11 @@ static int omap_sham_remove(struct platform_device *pdev) return 0; } -#ifdef CONFIG_PM_SLEEP -static int omap_sham_suspend(struct device *dev) -{ - pm_runtime_put_sync(dev); - return 0; -} - -static int omap_sham_resume(struct device *dev) -{ - int err = pm_runtime_resume_and_get(dev); - if (err < 0) { - dev_err(dev, "failed to get sync: %d\n", err); - return err; - } - return 0; -} -#endif - -static SIMPLE_DEV_PM_OPS(omap_sham_pm_ops, omap_sham_suspend, omap_sham_resume); - static struct platform_driver omap_sham_driver = { .probe = omap_sham_probe, .remove = omap_sham_remove, .driver = { .name = "omap-sham", - .pm = &omap_sham_pm_ops, .of_match_table = omap_sham_of_match, }, }; -- 2.32.0