Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp4276979pxv; Tue, 27 Jul 2021 03:25:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyLVNAZ6lKvxJ23cnbtGNxOgEZArWZ4ZaRON+vl7kl2u+85iYygUCqrXzWPxItGl3go9vNi X-Received: by 2002:a05:6402:22ac:: with SMTP id cx12mr6505942edb.254.1627381519474; Tue, 27 Jul 2021 03:25:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627381519; cv=none; d=google.com; s=arc-20160816; b=CwnwYsS5eIHx7MQ///Iy6P7ZE/PFt9pcqTKPt//jAiMFn2gFcoMkDvq83E3k4DZuvq 26WOrp4gHWaXyl2xJIs3t041Mm//16zSORPXa/9kDoEPhVT02yCiVFbDu5ZOe5H7YpB8 lUK7qEnDZYoJcTkJiBiIIUxaw6gOGbYkWs0ZPihoE1vq4UWutULpGv9dn9Kn3n4nfs17 IJbWuCBDU2SIMUdcgDXibQaw5Tel6ArBxcH7nfUV3X1ndI0LBwEeNvvzc9fpLz1yod1y CmwOxdbIzQjIxShJ8N0XRcN2nUjmt7S+Ig6N+5JK5CmW/yh3VQW4xDn93Ep8MWf3DKcB 4btw== 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=aAD8U5JdGXZKXjtfsNBDH1gRUNj2F1gMZ+8tJ+7xU74=; b=T3zA/JW3IivG4KkmHbfUfdZkol9K/ty9n7tG6m9MSFUKLxlAEe9f0zmkpe8fDkjtIx jqZzc6E8a/3nYXGMVokl0HR8GtJ3mLHBg852Cwea2/x7HUyf8OQYPkMItqrWg5e56ocy SCs1dg9UTMT7OESgKwsr8EeoGdPsBFpIZDi3f4wTeBSBrPnzpR34IVEQvO+23zftEQ50 /e4jU7PA84JNjgqByosROuIn4qaauO/A2eiSxXGb9eIAVKbkXuVmYrXTIq2PFvnGGY2t sieXFfXmFFbySgBKKuBjcCz6ZPbwoeG6NdI8a50b264ga29SfPT6/TJirVPVJfH+gq8j oaiQ== 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 u3si2521415edy.55.2021.07.27.03.24.56; Tue, 27 Jul 2021 03:25:19 -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 S236260AbhG0KYI (ORCPT + 99 others); Tue, 27 Jul 2021 06:24:08 -0400 Received: from muru.com ([72.249.23.125]:55824 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236262AbhG0KXz (ORCPT ); Tue, 27 Jul 2021 06:23:55 -0400 Received: from hillo.muru.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTP id 7F045812F; Tue, 27 Jul 2021 10:24:11 +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 3/6] crypto: omap-sham - add missing pm_runtime_dontuse_autosuspend() Date: Tue, 27 Jul 2021 13:23:36 +0300 Message-Id: <20210727102339.49141-3-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 We should pair the usage of pm_runtime_use_autosuspend() with pm_runtime_dont_use_autosuspend(). Cc: Lokesh Vutla Cc: Tero Kristo Signed-off-by: Tony Lindgren --- drivers/crypto/omap-sham.c | 2 ++ 1 file changed, 2 insertions(+) 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 @@ -2198,6 +2198,7 @@ static int omap_sham_probe(struct platform_device *pdev) list_del(&dd->list); spin_unlock(&sham.lock); err_pm: + pm_runtime_dont_use_autosuspend(dev); pm_runtime_disable(dev); if (!dd->polling_mode) dma_release_channel(dd->dma_lch); @@ -2225,6 +2226,7 @@ static int omap_sham_remove(struct platform_device *pdev) dd->pdata->algs_info[i].registered--; } tasklet_kill(&dd->done_task); + pm_runtime_dont_use_autosuspend(&pdev->dev); pm_runtime_disable(&pdev->dev); if (!dd->polling_mode) -- 2.32.0