From patchwork Tue Nov 8 15:53:40 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: 9417673 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 9C7F260459 for ; Tue, 8 Nov 2016 15:53:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8E94628B89 for ; Tue, 8 Nov 2016 15:53:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8253E28BA6; Tue, 8 Nov 2016 15:53:56 +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=unavailable 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 E081A28B89 for ; Tue, 8 Nov 2016 15:53:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752210AbcKHPxy (ORCPT ); Tue, 8 Nov 2016 10:53:54 -0500 Received: from mailout1.w1.samsung.com ([210.118.77.11]:20448 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752132AbcKHPxw (ORCPT ); Tue, 8 Nov 2016 10:53:52 -0500 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0OGB006UIYTQPI70@mailout1.w1.samsung.com>; Tue, 08 Nov 2016 15:53:50 +0000 (GMT) Received: from eusmges1.samsung.com (unknown [203.254.199.239]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20161108155349eucas1p1651e4898e161a24632fc9b2997b6ddcf~FHXJbJFvU0309603096eucas1p15; Tue, 8 Nov 2016 15:53:49 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges1.samsung.com (EUCPMTA) with SMTP id CF.64.23383.E05F1285; Tue, 8 Nov 2016 15:53:50 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20161108155348eucas1p2fd2ec7583c14999305647983f809f062~FHXIwVoeH1407114071eucas1p2X; Tue, 8 Nov 2016 15:53:48 +0000 (GMT) X-AuditID: cbfec7ef-f79e76d000005b57-e1-5821f50e6aa6 Received: from eusync4.samsung.com ( [203.254.199.214]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 26.AB.10494.FE4F1285; Tue, 8 Nov 2016 15:53:19 +0000 (GMT) Received: from [106.116.147.40] by eusync4.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OGB00HGEYTGUT30@eusync4.samsung.com>; Tue, 08 Nov 2016 15:53:48 +0000 (GMT) Subject: Re: [PATCH RFC 2/7] ARM: S3C64XX: Add DMA slave maps for PL080 devices To: Charles Keepax Cc: linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, dmaengine@vger.kernel.org, vinod.koul@intel.com, broonie@kernel.org, ym0914@gmail.com, arnd@arndb.de, kgene@kernel.org, javier@osg.samsung.com, andi.shyti@samsung.com, sbkim73@samsung.com From: Sylwester Nawrocki Message-id: Date: Tue, 08 Nov 2016 16:53:40 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-version: 1.0 In-reply-to: <20161108145534.GE1575@localhost.localdomain> Content-type: text/plain; charset=windows-1252 Content-transfer-enc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KPExsVy+t/xa7rvvyhGGNyepGKx/cgzVou/k46x W0x9+ITN4t+UG+wWq6f+ZbV483YNk0X/49fMFpseX2O1mHF+H5PFxRVfmCxe9u1nsejZ8J/V gcfj969JjB47Z91l91i85yWTx6ZVnWwem5fUe7yc+JvNY0s/ULxvyypGj8+b5AI4o9xsMlIT U1KLFFLzkvNTMvPSbZVCQ9x0LZQU8hJzU22VInR9Q4KUFMoSc0qBPCMDNODgHOAerKRvl+CW 8fbxIaaCL3wVm3exNzDe4O5i5OSQEDCRWDh1BROELSZx4d56ti5GLg4hgSWMEl1dcxghnOeM Ek+eLGcGqRIW8JfY1fKVDcQWEbCQmLLkFjNE0XYmiX9vHrOAOMwCfUwSt54sZAWpYhMwlOg9 2scIYvMK2Ek03r8ONolFQFXiyuzTYLtFBSIkNn2dwwJRIyjxY/I9MJtTwEri+txz7F2MHEBD 9STuX9QCCTMLyEtsXvOWeQKjwCwkHbMQqmYhqVrAyLyKUSS1tDg3PbfYSK84Mbe4NC9dLzk/ dxMjMGa3Hfu5ZQdj17vgQ4wCHIxKPLwZDxUjhFgTy4orcw8xSnAwK4nw+jwBCvGmJFZWpRbl xxeV5qQWH2I0BXphIrOUaHI+MJ3klcQbmhiaWxoaGVtYmBsZKYnzTv1wJVxIID2xJDU7NbUg tQimj4mDU6qBcXqi+/tnrqIJL/lYorQZBcUfHk/Lsja/tTSwQa9sxspXutUbpOT1uBODBLJW hTwrtu1dev9Q5YackL8s/NWBjB4qK+Z6lzp+fXbL4r9Wchfjge2sxk1fp7FwyJdJMXLoMFaU 5z56a2v3/murJiNjonye4YmS/I3MW769ce45Zao6Z8Lq/NdKLMUZiYZazEXFiQCpJaC87wIA AA== X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20161108155348eucas1p2fd2ec7583c14999305647983f809f062 X-Msg-Generator: CA X-Sender-IP: 182.198.249.180 X-Local-Sender: =?UTF-8?B?U3lsd2VzdGVyIE5hd3JvY2tpG1NSUE9MLUtlcm5lbCAoVFAp?= =?UTF-8?B?G+yCvOyEseyghOyekBtTZW5pb3IgU29mdHdhcmUgRW5naW5lZXI=?= X-Global-Sender: =?UTF-8?B?U3lsd2VzdGVyIE5hd3JvY2tpG1NSUE9MLUtlcm5lbCAoVFAp?= =?UTF-8?B?G1NhbXN1bmcgRWxlY3Ryb25pY3MbU2VuaW9yIFNvZnR3YXJlIEVuZ2luZWVy?= X-Sender-Code: =?UTF-8?B?QzEwG0VIURtDMTBDRDAyQ0QwMjczOTI=?= CMS-TYPE: 201P X-HopCount: 7 X-CMS-RootMailID: 20161108145620epcas2p4b8e2ec5ffdd4bf04ab3bf0728b46e3f2 X-RootMTR: 20161108145620epcas2p4b8e2ec5ffdd4bf04ab3bf0728b46e3f2 References: <1478276094-19135-1-git-send-email-s.nawrocki@samsung.com> <1478276094-19135-4-git-send-email-s.nawrocki@samsung.com> <20161108144445.GD1575@localhost.localdomain> <20161108145534.GE1575@localhost.localdomain> 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 On 11/08/2016 03:55 PM, Charles Keepax wrote: >>> diff --git a/arch/arm/mach-s3c64xx/pl080.c b/arch/arm/mach-s3c64xx/pl080.c >>> > > index 89c5a62..8c88680 100644 >>> > > --- a/arch/arm/mach-s3c64xx/pl080.c >>> > > +++ b/arch/arm/mach-s3c64xx/pl080.c >> > >>> > > @@ -134,6 +153,8 @@ struct pl08x_platform_data s3c64xx_dma0_plat_data = { >>> > > .put_xfer_signal = pl08x_put_xfer_signal, >>> > > .slave_channels = s3c64xx_dma0_info, >>> > > .num_slave_channels = ARRAY_SIZE(s3c64xx_dma0_info), >>> > > + .slave_map = s3c64xx_dma0_slave_map, >>> > > + .slavecnt = ARRAY_SIZE(s3c64xx_dma0_slave_map), >>> > > }; >> > >> > Here we add a .slavecnt but the pl08x_platform_data structure doesn't >> > contain that field. I can't see it on the branch you linked in >> > the cover letter either, is it added by a patch on another branch >> > I am missing? >> > > Ah I think I see it should be .slave_map_len here. Yeah, sorry, I fixed it after getting report from the kbuild test but have forgotten to push changes to the git tree. I pushed now to branch for-v4.10/dma/pl080-s3c64xx-v2 with this issue fixed and added initialization of the filer function. -------------------8<------------------------- Tested-by: Charles Keepax --- Thanks, Sylwester -- To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/dma/amba-pl08x.c b/drivers/dma/amba-pl08x.c index 939a7c3..d441c4b 100644 --- a/drivers/dma/amba-pl08x.c +++ b/drivers/dma/amba-pl08x.c @@ -2307,6 +2307,10 @@ static int pl08x_probe(struct amba_device *adev, const struct amba_id *id) ret = -EINVAL; goto out_no_platdata; } + } else { + pl08x->slave.filter.map = pl08x->pd->slave_map; + pl08x->slave.filter.mapcnt = pl08x->pd->slave_map_len; + pl08x->slave.filter.fn = pl08x_filter_id; } -------------------8<-------------------------