Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4623905iob; Sun, 8 May 2022 19:37:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz8xxy9kFhVwFEEJ4JixruWDB4hgYGR6793ULNoWO7k4Dpbl/Ok8LdTTmJNtoaXR6cz2xd8 X-Received: by 2002:a63:2c8a:0:b0:3aa:86ea:f2c9 with SMTP id s132-20020a632c8a000000b003aa86eaf2c9mr11527374pgs.46.1652063851582; Sun, 08 May 2022 19:37:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652063851; cv=none; d=google.com; s=arc-20160816; b=rqzxzOLIKQWDCXEKqy28nz6XsuWbSmHDsGpUn75phy+59VYiAm5kf/+SMfCk6zcez7 1jkeFgb5i9DexuAK3MOwDBX1gvL4IaodGgdqWfuq6pSbm/rmT1AtGe8VOCm/U9k6CNgk BMQMjWE7/XFHvg3Y2pLVERRpMebCMOiFHqOzfRYcYMtTqMZRfN12dDMOIgEfummECfa5 9B+mbonaMSzfeUWF222SURXiO6Eg+CS95u2r3M8PIFAuBotQ+8iR75+DlwJkRk3zYgf4 YHtuWwbZlUt1mhEm97QLcG6pDtFoXoIobwlXTCdvpVb5HdiSqZG0Ic0T8cmZ54mU5zN+ O1yw== 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 :dkim-signature; bh=UArImUFvNKHacRXvpNLIfvx/nkVFBIIqhhzgSK6NXF4=; b=rB55tJSa++wa68gGvmjfR9I/2uttr7z4hPGJYdF15BU3LKbEnfXm7Fwp6iLCcG0Grm N6eZmVwqFZs6q82ewwGeCg6pGKclzC6nJ2Qlx+dOO+IdBdJ7rR1dapQkhDFkEjeipH9N S/zeXc7azuuS9TbkApkWIxbOJlOpR7/w49KKV+il2lvQTxjvd9us+3aYci30OiPKPJKj 7IjZB3xbsM4U8JdvxV+DNLk2AKWvUE9vG1wroQS5z23cLtyQceGXqwkTfUknTcpJzL/W znZCSoPbWf9ZgIBalzvQUW1Yj7zQsG8+jykjKZFOwm2i+/wRWdjXTU9tej8+TlqlV48B p9YA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=GjGt2cFo; 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=foss.st.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id j29-20020a63231d000000b003c16f7043d0si12578291pgj.804.2022.05.08.19.37.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 May 2022 19:37: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=@foss.st.com header.s=selector1 header.b=GjGt2cFo; 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=foss.st.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9B62E32073; Sun, 8 May 2022 19:36:39 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1355614AbiEEKbA (ORCPT + 99 others); Thu, 5 May 2022 06:31:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38616 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1355546AbiEEKay (ORCPT ); Thu, 5 May 2022 06:30:54 -0400 Received: from mx07-00178001.pphosted.com (mx08-00178001.pphosted.com [91.207.212.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EBD77517F3; Thu, 5 May 2022 03:27:14 -0700 (PDT) Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 2458amkU026482; Thu, 5 May 2022 12:26:57 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=selector1; bh=UArImUFvNKHacRXvpNLIfvx/nkVFBIIqhhzgSK6NXF4=; b=GjGt2cFo5lmy2hb8sdfslf1qSdBIX22SMqnsCnIaMWi+NP/JbOBhmD62KMrWxyPzvLeX M6KMUQZGqXugXdfZcr+zKyOC2YzGHMTW+kHCGNORwT5vCHtvt4eGhsh9yZ/Tx6386dNR zIVtl0yCumTK2d5aXXezgBzC4ZduAwxgfyVQeLLSb7pg7BiXZG3HPGU5VG4c9OoSAvND HMg4DtE6DjBEbearQyfQ8AaBorN/OsayxtNR4FhqsyoFkJ507M7FZHq9ryU5dAIXVglx mL0y7rN5GPA1lPTlwLPFzhicVmRcDQQsAAHgdr5aGbF8b0I4lZPVRzCfZBgjGuE5EN0O xA== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3frt8937fd-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 05 May 2022 12:26:57 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 26A2710002A; Thu, 5 May 2022 12:26:57 +0200 (CEST) Received: from Webmail-eu.st.com (sfhdag2node2.st.com [10.75.127.5]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 211C12171CE; Thu, 5 May 2022 12:26:57 +0200 (CEST) Received: from localhost (10.75.127.50) by SFHDAG2NODE2.st.com (10.75.127.5) with Microsoft SMTP Server (TLS) id 15.0.1497.26; Thu, 5 May 2022 12:26:56 +0200 From: Amelie Delaunay To: Vinod Koul , Maxime Coquelin , Alexandre Torgue CC: , , , , Amelie Delaunay Subject: [PATCH 3/4] dmaengine: stm32-dma: rename pm ops before dma pause/resume introduction Date: Thu, 5 May 2022 12:26:35 +0200 Message-ID: <20220505102636.35506-4-amelie.delaunay@foss.st.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220505102636.35506-1-amelie.delaunay@foss.st.com> References: <20220505102636.35506-1-amelie.delaunay@foss.st.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.75.127.50] X-ClientProxiedBy: SFHDAG2NODE3.st.com (10.75.127.6) To SFHDAG2NODE2.st.com (10.75.127.5) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.858,Hydra:6.0.486,FMLib:17.11.64.514 definitions=2022-05-05_04,2022-05-05_01,2022-02-23_01 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,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=no 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 dmaengine framework offers device_pause and device_resume ops to pause an on-going transfer and resume it later. To avoid any misunderstanding with system sleep pm ops, rename pm ops into stm32_dma_pm_suspend and stm32_dma_pm_resume. Signed-off-by: Amelie Delaunay --- drivers/dma/stm32-dma.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/dma/stm32-dma.c b/drivers/dma/stm32-dma.c index eecd13795943..0b35c5178501 100644 --- a/drivers/dma/stm32-dma.c +++ b/drivers/dma/stm32-dma.c @@ -1486,7 +1486,7 @@ static int stm32_dma_runtime_resume(struct device *dev) #endif #ifdef CONFIG_PM_SLEEP -static int stm32_dma_suspend(struct device *dev) +static int stm32_dma_pm_suspend(struct device *dev) { struct stm32_dma_device *dmadev = dev_get_drvdata(dev); int id, ret, scr; @@ -1510,14 +1510,14 @@ static int stm32_dma_suspend(struct device *dev) return 0; } -static int stm32_dma_resume(struct device *dev) +static int stm32_dma_pm_resume(struct device *dev) { return pm_runtime_force_resume(dev); } #endif static const struct dev_pm_ops stm32_dma_pm_ops = { - SET_SYSTEM_SLEEP_PM_OPS(stm32_dma_suspend, stm32_dma_resume) + SET_SYSTEM_SLEEP_PM_OPS(stm32_dma_pm_suspend, stm32_dma_pm_resume) SET_RUNTIME_PM_OPS(stm32_dma_runtime_suspend, stm32_dma_runtime_resume, NULL) }; -- 2.25.1