From patchwork Wed Oct 26 09:08:27 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Sylwester Nawrocki/Kernel \\(PLT\\) /SRPOL/Staff Engineer/Samsung Electronics" X-Patchwork-Id: 9396423 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 3899460477 for ; Wed, 26 Oct 2016 09:08:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E8E30298CE for ; Wed, 26 Oct 2016 09:08:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DD66E298F3; Wed, 26 Oct 2016 09:08:54 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2C7B2298F5 for ; Wed, 26 Oct 2016 09:08:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756239AbcJZJIp (ORCPT ); Wed, 26 Oct 2016 05:08:45 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:55423 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756133AbcJZJIl (ORCPT ); Wed, 26 Oct 2016 05:08:41 -0400 Received: from epcpsbgm1new.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout3.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0OFN009XWDEA5ED0@mailout3.samsung.com>; Wed, 26 Oct 2016 18:08:38 +0900 (KST) X-AuditID: cbfee61a-f79926d000005981-b2-581072961ee7 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1new.samsung.com (EPCPMTA) with SMTP id 9A.63.22913.69270185; Wed, 26 Oct 2016 18:08:38 +0900 (KST) Received: from AMDC3061.digital.local ([106.116.147.40]) by mmp1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OFN00DGKDE6E210@mmp1.samsung.com>; Wed, 26 Oct 2016 18:08:38 +0900 (KST) From: Sylwester Nawrocki To: ulf.hansson@linaro.org, linux-samsung-soc@vger.kernel.org Cc: sam.van.den.berge@telenet.be, linux-mmc@vger.kernel.org, Sylwester Nawrocki Subject: [PATCH] mmc: s3cmci: Use DMA slave map rather than exported DMA filter Date: Wed, 26 Oct 2016 11:08:27 +0200 Message-id: <1477472907-5932-1-git-send-email-s.nawrocki@samsung.com> X-Mailer: git-send-email 1.9.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrCLMWRmVeSWpSXmKPExsVy+t9jAd1pRQIRBptW6lsc+d/PaDHj/D4m i8Nv2lktVq9Yz2xxfG24A6vHnWt72Dz6tqxi9Nj54zqbx+dNcgEsUW42GamJKalFCql5yfkp mXnptkqhIW66FkoKeYm5qbZKEbq+IUFKCmWJOaVAnpEBGnBwDnAPVtK3S3DL+P3mHnvBNO6K KS+aGRsY13B2MXJySAiYSPx6c5oFwhaTuHBvPVsXIxeHkMBSRomeBT+ZIZxfjBK7dvazglSx CRhK9B7tYwSxRQRsJc69e8jexcjBwSyQJXGxrwgkLCzgL7Fo71SwoSwCqhJHdq9lB7F5BVwl znfvYoVYJidx8thk1gmM3AsYGVYxSqQWJBcUJ6XnGuallusVJ+YWl+al6yXn525iBIfgM6kd jAd3uR9iFOBgVOLhrTjKHyHEmlhWXJl7iFGCg1lJhNekUCBCiDclsbIqtSg/vqg0J7X4EKMp 0AETmaVEk/OB8ZFXEm9oYm5ibmxgYW5paWKkJM7bOPtZuJBAemJJanZqakFqEUwfEwenVAOj XF+aadHTBf+EN3D9zlFfYf0jvTGPaSafV/Bys2ciZ/0unmB7vu5ibGLpMsnPbPOj7tRwFy42 9ot+4Sm2ZImm3843LeI2lupW1i12C1a/lTgWdss54MrfC3lLX7Guj/64+c1Evd6qhMw3Upu1 o4s11WYnTJO8++9j32nb6LZHCj6JDYL7NXcqsRRnJBpqMRcVJwIAMRk0zlcCAAA= X-MTR: 20000000000000000@CPGS Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Support for DMA slave map has been added to the s3c24xx-dma controller in commit 34681d84a0f7cc22ded1413dc79eef8a2f23d9c3 "dmaengine: s3c24xx: Add dma_slave_map for s3c2440 devices" This patch converts the s3cmci driver to also use it, so we can eventually get rid of the exported filter function once all DMA related clients are updated. Signed-off-by: Sylwester Nawrocki --- drivers/mmc/host/s3cmci.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/drivers/mmc/host/s3cmci.c b/drivers/mmc/host/s3cmci.c index c531dee..c109e57 100644 --- a/drivers/mmc/host/s3cmci.c +++ b/drivers/mmc/host/s3cmci.c @@ -28,7 +28,6 @@ #include #include -#include #include #include "s3cmci.h" @@ -1685,13 +1684,7 @@ static int s3cmci_probe(struct platform_device *pdev) /* depending on the dma state, get a dma channel to use. */ if (s3cmci_host_usedma(host)) { - dma_cap_mask_t mask; - - dma_cap_zero(mask); - dma_cap_set(DMA_SLAVE, mask); - - host->dma = dma_request_slave_channel_compat(mask, - s3c24xx_dma_filter, (void *)DMACH_SDI, &pdev->dev, "rx-tx"); + host->dma = dma_request_slave_channel(&pdev->dev, "rx-tx"); if (!host->dma) { dev_err(&pdev->dev, "cannot get DMA channel.\n"); ret = -EBUSY;