From patchwork Tue Jun 19 13:20:50 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 139120 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp5201930lji; Tue, 19 Jun 2018 06:21:18 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIM53CfHBaEyzZRyTTZKLJzmE8Vmqc1zK9CA7y+6u4nRT3sPuCCY6wX6ZVLdHFqwdmHWGGD X-Received: by 2002:a17:902:b110:: with SMTP id q16-v6mr18949402plr.286.1529414478342; Tue, 19 Jun 2018 06:21:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529414478; cv=none; d=google.com; s=arc-20160816; b=CraGVNgHvsOZI9MRS67PgX1WWUpXmtzcuoSDM7FDEhccj3vCnR11ArVSMMeGvmlaxC howNtiCo/BQ9CC16YEAHsxXAXr3VrD6Qgi+eJZKoKAA++tV14XPWqcbqefB4R1bw3T5x /kILb6JFkBpl9ylOd9yhNmooM4SPXwguYB/Tfiww5crQ7VnK/65wFxz+Kk3y6ilZ5O19 2EcQuQ43xIq5AI06D7iYr5nzeZbLRWa3wN7b4wA1jCQduNjwNm9/jDzvLh+yB4xBdnQ9 L0n61FzUBbyakqLgNDLEmg6mAKf/atRYFyBMcMu+BTMkDAROWSW5Ixxh+mnb3+jMQuDr pPGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter :arc-authentication-results; bh=qoHR8+qXsNjZi7u3+3lgx+mL/hH8eTG1Yg+ilyn4Oo4=; b=UOezC3aqUuUxXBwTi5Jqv+XfFLF48vzmJJ1HRAVvF6yAI2ujpyLLYckO3G6Oqqim4H BEkOuWrue98N41ivE6wU2Q+/8a3ENHZg4SlTU5SHYiBb8sd1Grf3DpU/YfqI5ALG51vq Zv8ib7qaOAtVUPm1o3jjEqRZrx4WdoMiRKn3X0oP+MPtnyGl8cxrkJ7X8oBgC+j6thDa 8KhKl9UbMInbkjgyEsS4PD0Pfmkw17XXiHpkIfNtljTm3VG/gsg6Hv3butZMZYnxmd5t ijzAEcP5g7FRhtkRmoXVUqUj+jy+C39mx+P7hD5ZCZfKeb7GthqfwFWPTxbq79zgQs+5 /l3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@samsung.com header.s=mail20170921 header.b=iTdfSijg; spf=pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a27-v6si14455459pgd.281.2018.06.19.06.21.18; Tue, 19 Jun 2018 06:21:18 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@samsung.com header.s=mail20170921 header.b=iTdfSijg; spf=pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S937616AbeFSNVR (ORCPT + 3 others); Tue, 19 Jun 2018 09:21:17 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:42704 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S937733AbeFSNVP (ORCPT ); Tue, 19 Jun 2018 09:21:15 -0400 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20180619132113euoutp01f33301c085179269f5d633aa05e7e467~5klxJzfNS2362623626euoutp01t for ; Tue, 19 Jun 2018 13:21:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20180619132113euoutp01f33301c085179269f5d633aa05e7e467~5klxJzfNS2362623626euoutp01t DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1529414473; bh=AopyXzZZStgO21ZL2cwN9AcAK+ju6vQDkv2PMdfvhEs=; h=From:To:Cc:Subject:Date:References:From; b=iTdfSijg6n9DKrU7fE0JowzgeLLqxFt/tVlpEMmer5DOZVrihcs3vA/+2F+r/UjcM Qz5Y+rNr1Ro6X8O5MzOcEzZFkSSP6JG91ekfp0h1+KX/DkQjHkkzLC92+YvatLifZl KDyGwmn7fmX8RJAofh8UJjgSpVpX56KwCpspdbT4= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20180619132110eucas1p2ad2ad43c718d4506bc855b3a438d41fd~5kluZo09m1347613476eucas1p2W; Tue, 19 Jun 2018 13:21:10 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id 1C.46.10409.343092B5; Tue, 19 Jun 2018 14:21:07 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20180619132105eucas1p2d65cbd799e60a8ab1849c4ae716275c4~5klprrrtK1347113471eucas1p2M; Tue, 19 Jun 2018 13:21:05 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20180619132103eusmtrp165b5876e521693d0e4df4c3abe7798c0~5kln5e0rW0837908379eusmtrp1b; Tue, 19 Jun 2018 13:21:03 +0000 (GMT) X-AuditID: cbfec7f5-b5fff700000028a9-7d-5b290343898e Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 16.20.04183.F33092B5; Tue, 19 Jun 2018 14:21:03 +0100 (BST) Received: from AMDC2765.digital.local (unknown [106.116.147.25]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20180619132103eusmtip2d3cdce470e6e9eeafbdfc6532d1e2c22~5klndjFX_2740627406eusmtip2I; Tue, 19 Jun 2018 13:21:03 +0000 (GMT) From: Marek Szyprowski To: linux-samsung-soc@vger.kernel.org, dmaengine@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Marek Szyprowski , Krzysztof Kozlowski , Bartlomiej Zolnierkiewicz , Vinod Koul Subject: [PATCH] dmaengine: pl330: report BURST residue granularity Date: Tue, 19 Jun 2018 15:20:50 +0200 X-Mailer: git-send-email 2.17.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrEIsWRmVeSWpSXmKPExsWy7djP87rOzJrRBns3ylhsnLGe1WL11L+s FufPb2C32PT4GqvF5V1z2CxmnN/HZLH2yF12i5d9+1kcODwW73nJ5LFpVSebx+Yl9R59W1Yx enzeJBfAGsVlk5Kak1mWWqRvl8CV8WPzP+aCJ+wVe7adY2lgvMbWxcjJISFgInH7/zTGLkYu DiGBFYwS+x9ch3K+MErc+XuDFcL5zCjx68pRVpiWyS+eQiWWM0qc29TFAuF8ZZQ4/ngWO0gV m4ChRNfbLjaQhIhAG6PE7PaTzCAOs8BmRollXy+xgFQJCzhLbHxwC8jm4GARUJVoXckHsUJe YvWGA8wQ9n02ie1rhUBsXoEyiXWT7zJCxF0k7vzYB3WSsMSr41vYIWwZidOTe8AukhBoZpRo nwFyEYjTwyixdc4OqL+tJQ4fv8gKsphZQFNi/S59iLCjxNOmU4wgYQkBPokbbwVBwsxA5qRt 05khwrwSHW1CENVqErOOr4Nbe/DCJagSD4mJf+xBTCGBWImL03UmMMrNQti0g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eJtSZfz66836AcvLJmZU rme+tWKbkUd4MX/d4gZRSebcJ4ob2zzXMB1Q4Sky/mZ0K6LgboL+NKeimiAlluKMREMt5qLi RACo3+J6XQIAAA== Message-Id: <20180619132105eucas1p2d65cbd799e60a8ab1849c4ae716275c4~5klprrrtK1347113471eucas1p2M@eucas1p2.samsung.com> X-CMS-MailID: 20180619132105eucas1p2d65cbd799e60a8ab1849c4ae716275c4 X-Msg-Generator: CA X-RootMTR: 20180619132105eucas1p2d65cbd799e60a8ab1849c4ae716275c4 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20180619132105eucas1p2d65cbd799e60a8ab1849c4ae716275c4 References: Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org The reported residue is already calculated in BURST unit granularity, so advertise this capability properly to other devices in the system. Fixes: aee4d1fac887 ("dmaengine: pl330: improve pl330_tx_status() function") Signed-off-by: Marek Szyprowski --- drivers/dma/pl330.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1 -- 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/pl330.c b/drivers/dma/pl330.c index defcdde4d358..de0957fe9668 100644 --- a/drivers/dma/pl330.c +++ b/drivers/dma/pl330.c @@ -3033,7 +3033,7 @@ pl330_probe(struct amba_device *adev, const struct amba_id *id) pd->src_addr_widths = PL330_DMA_BUSWIDTHS; pd->dst_addr_widths = PL330_DMA_BUSWIDTHS; pd->directions = BIT(DMA_DEV_TO_MEM) | BIT(DMA_MEM_TO_DEV); - pd->residue_granularity = DMA_RESIDUE_GRANULARITY_SEGMENT; + pd->residue_granularity = DMA_RESIDUE_GRANULARITY_BURST; pd->max_burst = ((pl330->quirks & PL330_QUIRK_BROKEN_NO_FLUSHP) ? 1 : PL330_MAX_BURST);