From patchwork Thu Oct 17 10:51:20 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 3060091 Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 247CE9F2B6 for ; Thu, 17 Oct 2013 10:51:29 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 34B4E20176 for ; Thu, 17 Oct 2013 10:51:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6D783201BE for ; Thu, 17 Oct 2013 10:51:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753396Ab3JQKvW (ORCPT ); Thu, 17 Oct 2013 06:51:22 -0400 Received: from mail-pa0-f42.google.com ([209.85.220.42]:44669 "EHLO mail-pa0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752557Ab3JQKvV (ORCPT ); Thu, 17 Oct 2013 06:51:21 -0400 Received: by mail-pa0-f42.google.com with SMTP id kx10so2554078pab.29 for ; Thu, 17 Oct 2013 03:51:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:sender:message-id:to:cc:in-reply-to:references:from:subject :mime-version:content-type; bh=Yn5bKMsuFY20pgIiuP2tSjZoD8W+6FXgserJfVlYDJU=; b=LYlUgOXZGwvrnoErLFpxBQzZzof2rumQD5qTZcSTJMbEQxh9t5E7aRsDhQgufQ8MtM qk8frQ97KRyTNRfGr+EA1TT38TIxcyzb8dsQj84C57VgQbzYc3LsWTyBq9U3A/t+JsTy hRUoJfRr/OlrRcshg8bW2h9J8Q7y2h4TelKoOLgBEVTq0aCT5GAvBmWI6sT+NC+7oLvv XadWDLlUFzu5gOQfVbELQRGNEDANcXgtaypMMJFBc747ZMj179VCfckDdX67R0vZGLF1 pk9L8XqHLtEI0ZurKVQQUtWZ7vNCvBYpjhpS/blhHERZEs1P5307iHKJHiJtm4e8XLAp DzJA== X-Received: by 10.66.66.202 with SMTP id h10mr8559052pat.70.1382007081435; Thu, 17 Oct 2013 03:51:21 -0700 (PDT) Received: from morimoto-Dell-XPS420.gmail.com (49.14.32.202.bf.2iij.net. [202.32.14.49]) by mx.google.com with ESMTPSA id ye1sm113540925pab.19.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 17 Oct 2013 03:51:20 -0700 (PDT) Date: Thu, 17 Oct 2013 03:51:20 -0700 (PDT) Message-ID: <87ioww187v.wl%kuninori.morimoto.gx@renesas.com> To: Simon , Max Filippov Cc: Magnus , linux-sh@vger.kernel.org, Kuninori Morimoto In-Reply-To: <87k3hc189h.wl%kuninori.morimoto.gx@renesas.com> References: <87k3hc189h.wl%kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH 1/3] rcar-hpbdma: add max transfer size MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP shdma_chan_probe() can set max transfer size, but it will be PAGE_SIZE with out this patch. Signed-off-by: Kuninori Morimoto --- drivers/dma/sh/rcar-hpbdma.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/dma/sh/rcar-hpbdma.c b/drivers/dma/sh/rcar-hpbdma.c index ebad845..b1ae8dc 100644 --- a/drivers/dma/sh/rcar-hpbdma.c +++ b/drivers/dma/sh/rcar-hpbdma.c @@ -510,6 +510,8 @@ static int hpb_dmae_chan_probe(struct hpb_dmae_device *hpbdev, int id) } schan = &new_hpb_chan->shdma_chan; + schan->max_xfer_len = HPB_DMA_TCR_MAX + 1; + shdma_chan_probe(sdev, schan, id); if (pdev->id >= 0)