From patchwork Thu Oct 7 11:12:27 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudiu Beznea X-Patchwork-Id: 12541623 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1C2C6C433EF for ; Thu, 7 Oct 2021 11:13:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 022FF61038 for ; Thu, 7 Oct 2021 11:13:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232729AbhJGLPP (ORCPT ); Thu, 7 Oct 2021 07:15:15 -0400 Received: from esa.microchip.iphmx.com ([68.232.153.233]:52560 "EHLO esa.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232820AbhJGLPP (ORCPT ); Thu, 7 Oct 2021 07:15:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1633605201; x=1665141201; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=P9G5mkeuHGSDm1qX15Pe+VCWC7BU1ZpOu7l6FKVirsw=; b=d6vU4hanDWJON8eosYAOEC3Mp6za+mhbvRcFalxVkI51W9D8MBvfAHnE BOdK+dnQTFWSd7bngXa2MSxkbwtZa4jLt73NqigpNsvE9S94QOyH2LNa4 bzxH3gv13nvEVzLcaR9a1bd7z+Bf755kJQ2SsLBrI4vKfLDMrT1Z+Uhv6 qmAcSRiZ+xwQcb43YUfmt1JzPXAW/RPSPFBh7jp3ioF648rXmpAI/5hU9 lsiU9hioY1jFbsfVH4M3HqLHMSk3u0bOkgeigI4a9XDPP1FxvO+Hrf0jR vl7DmM5SRWoYBsxdnaA0wQ3gR2LIQe6wsRqrWDg3CwuAJtpB2SRChGpIA Q==; IronPort-SDR: kcro7hrD7NmMGEweJg3yv4RNzMnDVLIjjErXwvQyrjd/JZ6pNdkYn+7e20rkthgL8TQBe2SrSQ I5ghwPvM1LNlr1PhRs8/X1pYy3LJ/0H25PrtSDgYC+crwajfC6/CVedexWmVTKlvoGaFK813ct VX0Om9V30uJn6RneQCKWPYP6yleP385Atq/ynqN15llv1lU6luf/aNhSsWm6+AbZDEVRrYyv0w 8X2I5pRxp0BTOwxbqZ5j/MnJweOW0VoStEscKG+RDsV4DebJ/JT/0wWU741KHygQ/jnW5zLYOg k1TD3DI+QSXwOiWezjBMM6UI X-IronPort-AV: E=Sophos;i="5.85,354,1624345200"; d="scan'208";a="147120373" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa1.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 07 Oct 2021 04:13:21 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.14; Thu, 7 Oct 2021 04:13:20 -0700 Received: from rob-dk-mpu01.microchip.com (10.10.115.15) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server id 15.1.2176.14 via Frontend Transport; Thu, 7 Oct 2021 04:13:18 -0700 From: Claudiu Beznea To: , , CC: , , , Claudiu Beznea Subject: [PATCH 1/4] dmaengine: at_xdmac: call at_xdmac_axi_config() on resume path Date: Thu, 7 Oct 2021 14:12:27 +0300 Message-ID: <20211007111230.2331837-2-claudiu.beznea@microchip.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211007111230.2331837-1-claudiu.beznea@microchip.com> References: <20211007111230.2331837-1-claudiu.beznea@microchip.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org at_xdmac could be used on SoCs which supports backup mode (where most of the SoC power, including power to DMA controller, is closed at suspend time). Thus, on resume, the settings which were previously done need to be restored. Do the same for axi configuration. Fixes: f40566f220a1 ("dmaengine: at_xdmac: add AXI priority support and recommended settings") Signed-off-by: Claudiu Beznea Reviewed-by: Tudor Ambarus --- drivers/dma/at_xdmac.c | 51 ++++++++++++++++++++++-------------------- 1 file changed, 27 insertions(+), 24 deletions(-) diff --git a/drivers/dma/at_xdmac.c b/drivers/dma/at_xdmac.c index ab78e0f6afd7..c66ad5706cb5 100644 --- a/drivers/dma/at_xdmac.c +++ b/drivers/dma/at_xdmac.c @@ -1926,6 +1926,30 @@ static void at_xdmac_free_chan_resources(struct dma_chan *chan) return; } +static void at_xdmac_axi_config(struct platform_device *pdev) +{ + struct at_xdmac *atxdmac = (struct at_xdmac *)platform_get_drvdata(pdev); + bool dev_m2m = false; + u32 dma_requests; + + if (!atxdmac->layout->axi_config) + return; /* Not supported */ + + if (!of_property_read_u32(pdev->dev.of_node, "dma-requests", + &dma_requests)) { + dev_info(&pdev->dev, "controller in mem2mem mode.\n"); + dev_m2m = true; + } + + if (dev_m2m) { + at_xdmac_write(atxdmac, AT_XDMAC_GCFG, AT_XDMAC_GCFG_M2M); + at_xdmac_write(atxdmac, AT_XDMAC_GWAC, AT_XDMAC_GWAC_M2M); + } else { + at_xdmac_write(atxdmac, AT_XDMAC_GCFG, AT_XDMAC_GCFG_P2M); + at_xdmac_write(atxdmac, AT_XDMAC_GWAC, AT_XDMAC_GWAC_P2M); + } +} + #ifdef CONFIG_PM static int atmel_xdmac_prepare(struct device *dev) { @@ -1975,6 +1999,7 @@ static int atmel_xdmac_resume(struct device *dev) struct at_xdmac *atxdmac = dev_get_drvdata(dev); struct at_xdmac_chan *atchan; struct dma_chan *chan, *_chan; + struct platform_device *pdev = container_of(dev, struct platform_device, dev); int i; int ret; @@ -1982,6 +2007,8 @@ static int atmel_xdmac_resume(struct device *dev) if (ret) return ret; + at_xdmac_axi_config(pdev); + /* Clear pending interrupts. */ for (i = 0; i < atxdmac->dma.chancnt; i++) { atchan = &atxdmac->chan[i]; @@ -2007,30 +2034,6 @@ static int atmel_xdmac_resume(struct device *dev) } #endif /* CONFIG_PM_SLEEP */ -static void at_xdmac_axi_config(struct platform_device *pdev) -{ - struct at_xdmac *atxdmac = (struct at_xdmac *)platform_get_drvdata(pdev); - bool dev_m2m = false; - u32 dma_requests; - - if (!atxdmac->layout->axi_config) - return; /* Not supported */ - - if (!of_property_read_u32(pdev->dev.of_node, "dma-requests", - &dma_requests)) { - dev_info(&pdev->dev, "controller in mem2mem mode.\n"); - dev_m2m = true; - } - - if (dev_m2m) { - at_xdmac_write(atxdmac, AT_XDMAC_GCFG, AT_XDMAC_GCFG_M2M); - at_xdmac_write(atxdmac, AT_XDMAC_GWAC, AT_XDMAC_GWAC_M2M); - } else { - at_xdmac_write(atxdmac, AT_XDMAC_GCFG, AT_XDMAC_GCFG_P2M); - at_xdmac_write(atxdmac, AT_XDMAC_GWAC, AT_XDMAC_GWAC_P2M); - } -} - static int at_xdmac_probe(struct platform_device *pdev) { struct at_xdmac *atxdmac; From patchwork Thu Oct 7 11:12:28 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudiu Beznea X-Patchwork-Id: 12541625 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A86E6C433FE for ; Thu, 7 Oct 2021 11:13:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 95C01610A2 for ; Thu, 7 Oct 2021 11:13:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232604AbhJGLPS (ORCPT ); Thu, 7 Oct 2021 07:15:18 -0400 Received: from esa.microchip.iphmx.com ([68.232.153.233]:52560 "EHLO esa.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240726AbhJGLPQ (ORCPT ); Thu, 7 Oct 2021 07:15:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1633605203; x=1665141203; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=hEtripnCOE0xsYLDlRIZuSzQPbXUlwmF5HeFZ+YxCas=; b=Cja10FpCes/5t8+yVN1QCCc6Q3wAchSsrgWvSsmk6foHa6Xmtv/wEMl/ EJ7LbECV5YgvLnFaAtCQzigbGkO2HoQbHzGOXHDKpO+MCOUHLpdunO/lq BexvPiX2PWAr+mFL1rQbggWL1j23ovoOWNVa7MDwqtX4v5FCNAr+eopqj w08NTbzyTo0pzVPZDtXbq5Uk3Uj6V9JNHlGTYcx3uOAaL0MBcSi/uCg+J /mT3m/2jBjuFhrVqiDiHhpJsZEVHKc/eTRQMHoMluXFsEKHxEBwEaK6yW s/eVyEp9yTNzdt4y2rO1ufh7R9AwppA9OHZ9KG06OSWbiCNMUwZ8NcKnA A==; IronPort-SDR: vbxXNVXHRUDIbuLsR4tU+ZGzCJIUpN1W3mj2tFpcbs5UTcnUa/mnL851UK/xDB9KsRcMQkYcmR Px03TSM7ILJTBq63eZwy5P16YRx6GIPTnF6NkY1YtCPoXm9evacTeUVgjohxjzlq/8/qS7GCUF DY9eZC0N25cbZ+WRRrJKrDNhu520MxQdtnTciBLWv5tSmts12rigCWI9CXHEPpQn/q1on0t2sr YvWHO5VtgQHgStpvVdqD3nG1yAwMRzfWm2AxweXsJ/TlEJwQizvKvi+cSZnl+2eLVaio8X9lUh n8CSrqVZ52KsvrBxjzkrmpgY X-IronPort-AV: E=Sophos;i="5.85,354,1624345200"; d="scan'208";a="147120376" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa1.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 07 Oct 2021 04:13:22 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.14; Thu, 7 Oct 2021 04:13:22 -0700 Received: from rob-dk-mpu01.microchip.com (10.10.115.15) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server id 15.1.2176.14 via Frontend Transport; Thu, 7 Oct 2021 04:13:20 -0700 From: Claudiu Beznea To: , , CC: , , , Claudiu Beznea Subject: [PATCH 2/4] dmaengine: at_xdmac: fix AT_XDMAC_CC_PERID() macro Date: Thu, 7 Oct 2021 14:12:28 +0300 Message-ID: <20211007111230.2331837-3-claudiu.beznea@microchip.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211007111230.2331837-1-claudiu.beznea@microchip.com> References: <20211007111230.2331837-1-claudiu.beznea@microchip.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org AT_XDMAC_CC_PERID() should be used to setup bits 24..30 of XDMAC_CC register. Using it without parenthesis around 0x7f & (i) will lead to setting all the time zero for bits 24..30 of XDMAC_CC as the << operator has higher precedence over bitwise &. Thus, add paranthesis around 0x7f & (i). Fixes: 15a03850ab8f ("dmaengine: at_xdmac: fix macro typo") Signed-off-by: Claudiu Beznea Reviewed-by: Tudor Ambarus --- drivers/dma/at_xdmac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma/at_xdmac.c b/drivers/dma/at_xdmac.c index c66ad5706cb5..e18abbd56fb5 100644 --- a/drivers/dma/at_xdmac.c +++ b/drivers/dma/at_xdmac.c @@ -155,7 +155,7 @@ #define AT_XDMAC_CC_WRIP (0x1 << 23) /* Write in Progress (read only) */ #define AT_XDMAC_CC_WRIP_DONE (0x0 << 23) #define AT_XDMAC_CC_WRIP_IN_PROGRESS (0x1 << 23) -#define AT_XDMAC_CC_PERID(i) (0x7f & (i) << 24) /* Channel Peripheral Identifier */ +#define AT_XDMAC_CC_PERID(i) ((0x7f & (i)) << 24) /* Channel Peripheral Identifier */ #define AT_XDMAC_CDS_MSP 0x2C /* Channel Data Stride Memory Set Pattern */ #define AT_XDMAC_CSUS 0x30 /* Channel Source Microblock Stride */ #define AT_XDMAC_CDUS 0x34 /* Channel Destination Microblock Stride */ From patchwork Thu Oct 7 11:12:29 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudiu Beznea X-Patchwork-Id: 12541627 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1D95FC433EF for ; Thu, 7 Oct 2021 11:13:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 04CB461130 for ; Thu, 7 Oct 2021 11:13:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240838AbhJGLPU (ORCPT ); Thu, 7 Oct 2021 07:15:20 -0400 Received: from esa.microchip.iphmx.com ([68.232.153.233]:52782 "EHLO esa.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240867AbhJGLPT (ORCPT ); Thu, 7 Oct 2021 07:15:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1633605206; x=1665141206; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=xVnn9WxWYI8p2PQEPWKAc0zs+S1iqFL65zaIk7wggGM=; b=fHMKpUw2uzCgU5UQpPIES+NuXlIJreiTzwApf8fKIFtmlQphj+Dmq8oE XTHLvCnt6nDyqVJhrH05W9uA0AkOTa4zDcJ5rFu47uBZ7yxUaiH4eJRM1 nNxBibHBduyn3xe4lUOtgk7ZfzNn71OgCvqQCM7CgnMDth7s9mZR+78fl hnBAp7/15qtHJ/jgiixA9EgiHm3hmRGNiL06IjTsySbp6rWzPYyL65Cwu vrOEXsn8CANzZMX9NqRw8puGDlBjVeD1D0/QoUYHcsZEbAyw1ZRhunPkh Zbw5vIuyGj2KlqDuexe8oPiaMz2E1gBJGViAEriseKLxHZx0ClBk0s2VS g==; IronPort-SDR: 2fyYNGt3pyRZKFY+Z96VHM6+zArKgqdXFYRmzip1tgrcu2oEIVdZHBYZj4XRNqfJQOali31ZYp YWcWvxaGd5EWdQaOOdt17+3P2/eN+tPypgDkmPYMt8yKcdk03RJS143Y9G1SclU2k23hDQ8FEK FjCzJhGE9V8QNGgQnCo7TO2z1x3ol5G8CGZNVpodNhGTcYQcRO2D9yC27BYXjwwnhTjPoRAIpS xUxWuUVc2GJX2BWckpJ+vu7NYW9reRiqVXQ7dBjWSGVHTmgb4mZZma9+5MBl04TCyA09ALlOPo ifJD24zQ1ldz/kfzKQYmNfy9 X-IronPort-AV: E=Sophos;i="5.85,354,1624345200"; d="scan'208";a="139381853" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa3.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 07 Oct 2021 04:13:25 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.14; Thu, 7 Oct 2021 04:13:24 -0700 Received: from rob-dk-mpu01.microchip.com (10.10.115.15) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server id 15.1.2176.14 via Frontend Transport; Thu, 7 Oct 2021 04:13:22 -0700 From: Claudiu Beznea To: , , CC: , , , Claudiu Beznea Subject: [PATCH 3/4] dmaengine: at_xdmac: use __maybe_unused for pm functions Date: Thu, 7 Oct 2021 14:12:29 +0300 Message-ID: <20211007111230.2331837-4-claudiu.beznea@microchip.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211007111230.2331837-1-claudiu.beznea@microchip.com> References: <20211007111230.2331837-1-claudiu.beznea@microchip.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org Use __maybe_unused for pm functions. Signed-off-by: Claudiu Beznea Reviewed-by: Tudor Ambarus --- drivers/dma/at_xdmac.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/drivers/dma/at_xdmac.c b/drivers/dma/at_xdmac.c index e18abbd56fb5..12371396fcc0 100644 --- a/drivers/dma/at_xdmac.c +++ b/drivers/dma/at_xdmac.c @@ -1950,8 +1950,7 @@ static void at_xdmac_axi_config(struct platform_device *pdev) } } -#ifdef CONFIG_PM -static int atmel_xdmac_prepare(struct device *dev) +static int __maybe_unused atmel_xdmac_prepare(struct device *dev) { struct at_xdmac *atxdmac = dev_get_drvdata(dev); struct dma_chan *chan, *_chan; @@ -1965,12 +1964,8 @@ static int atmel_xdmac_prepare(struct device *dev) } return 0; } -#else -# define atmel_xdmac_prepare NULL -#endif -#ifdef CONFIG_PM_SLEEP -static int atmel_xdmac_suspend(struct device *dev) +static int __maybe_unused atmel_xdmac_suspend(struct device *dev) { struct at_xdmac *atxdmac = dev_get_drvdata(dev); struct dma_chan *chan, *_chan; @@ -1994,7 +1989,7 @@ static int atmel_xdmac_suspend(struct device *dev) return 0; } -static int atmel_xdmac_resume(struct device *dev) +static int __maybe_unused atmel_xdmac_resume(struct device *dev) { struct at_xdmac *atxdmac = dev_get_drvdata(dev); struct at_xdmac_chan *atchan; @@ -2032,7 +2027,6 @@ static int atmel_xdmac_resume(struct device *dev) } return 0; } -#endif /* CONFIG_PM_SLEEP */ static int at_xdmac_probe(struct platform_device *pdev) { From patchwork Thu Oct 7 11:12:30 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudiu Beznea X-Patchwork-Id: 12541629 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DF9A9C433F5 for ; Thu, 7 Oct 2021 11:13:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C5BCA61038 for ; Thu, 7 Oct 2021 11:13:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240850AbhJGLPW (ORCPT ); Thu, 7 Oct 2021 07:15:22 -0400 Received: from esa.microchip.iphmx.com ([68.232.153.233]:52142 "EHLO esa.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240912AbhJGLPU (ORCPT ); Thu, 7 Oct 2021 07:15:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1633605208; x=1665141208; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=k/mSN7o+aoBZYxo/n7LsESco3AX+6x+Db3/dTL8XL34=; b=Y0NZyOJi338jz2D0nVo6X6qhLzu2j/ggRmZpXco5TE18t1Ei5BpJIDCE 4NKznFpGkWsjciMYYZmv0bKDa18BpRgzbhxn4lrJSz7KNn0PcjPc7eK83 5cHOwdB9r2M3iD9hFqsAGZDpW8WFG77ewkRaPRhGRQDzw+jKiQeJqCGbN aRiCU/R6EzePHkEUPyqPAaR44BRFXaownUpUWYNVi0yS2qD0C83anD3QZ J8FIagR8Z1DPdIfuq+2IV9e14Mt4bv+ThqSn7xDH0U+tU0AVbI1DNORM/ MBXrKViulWWjh2ryMWZV2jYeZHd4VFQotS+n0yTIA2oMXz3cPYuIGXsVy w==; IronPort-SDR: giOBcYN79/7gJcJ339ZhXg710xwf8hRdx3UUxXpgGI9hYeEBLw9OYTSP3MBFx0nj2rQvM1aj+i n2+1V4OGoAhWMnt5SbyT9WnMiqMA5t/bMh3Y8UMgtGoE6zbVwEWNbsEUOsHQgJxRwUEOpJp/Y9 TBV0qNxzrJMmoTt6LYZnJwyy6MK5vMRhnaYakFXpEM0OrYIAp0k9OZIfgiCVzS7IgIN7uWzka/ +P1xrivR6fiKGIKau3naW4E0AWOykxXuoBPWiCCNCGdvpKLzCGBxyxCkwVtEPk0yebRD9ed4Or jw/lO+hOr4vEExwoaxuseHFu X-IronPort-AV: E=Sophos;i="5.85,354,1624345200"; d="scan'208";a="138808614" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa5.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 07 Oct 2021 04:13:28 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.14; Thu, 7 Oct 2021 04:13:26 -0700 Received: from rob-dk-mpu01.microchip.com (10.10.115.15) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server id 15.1.2176.14 via Frontend Transport; Thu, 7 Oct 2021 04:13:25 -0700 From: Claudiu Beznea To: , , CC: , , , Claudiu Beznea Subject: [PATCH 4/4] dmaengine: at_xdmac: use pm_ptr() Date: Thu, 7 Oct 2021 14:12:30 +0300 Message-ID: <20211007111230.2331837-5-claudiu.beznea@microchip.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211007111230.2331837-1-claudiu.beznea@microchip.com> References: <20211007111230.2331837-1-claudiu.beznea@microchip.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org Use pm_ptr() macro to fill at_xdmac_driver.driver.pm. Signed-off-by: Claudiu Beznea Reviewed-by: Tudor Ambarus --- drivers/dma/at_xdmac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma/at_xdmac.c b/drivers/dma/at_xdmac.c index 12371396fcc0..7fb19bd18ac3 100644 --- a/drivers/dma/at_xdmac.c +++ b/drivers/dma/at_xdmac.c @@ -2231,7 +2231,7 @@ static struct platform_driver at_xdmac_driver = { .driver = { .name = "at_xdmac", .of_match_table = of_match_ptr(atmel_xdmac_dt_ids), - .pm = &atmel_xdmac_dev_pm_ops, + .pm = pm_ptr(&atmel_xdmac_dev_pm_ops), } };