From patchwork Tue Oct 29 06:52:21 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 3106391 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 EA6019F432 for ; Tue, 29 Oct 2013 06:52:25 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E77842034E for ; Tue, 29 Oct 2013 06:52:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 262B420240 for ; Tue, 29 Oct 2013 06:52:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751476Ab3J2GwX (ORCPT ); Tue, 29 Oct 2013 02:52:23 -0400 Received: from mail-pa0-f50.google.com ([209.85.220.50]:62895 "EHLO mail-pa0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751445Ab3J2GwX (ORCPT ); Tue, 29 Oct 2013 02:52:23 -0400 Received: by mail-pa0-f50.google.com with SMTP id fb1so8047910pad.37 for ; Mon, 28 Oct 2013 23:52:22 -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=Ufb1d4WCKfaAVrgs7lnf15IWcgU9fZgSSbihrF1y3L8=; b=DB9o3SpuZ0LjBtF2aEwMDd2I8qb1z6KNWCdEXYFWwKSkZiZTplcAIDUVNTrln4534F F7OJEtvyT/wpHtHgWQXVIxNnsYvenigx8X2QYekxY1oRrO2X+yfs8Wzl5aytgGp4BGB/ OHtuvZPqOKoSd6Oe32yRSIYp4GQF6YZUOlqhD6q2kN+EnnIAt1SKo5ObpWHS9H1i8TKP GM/jKlCs5kK0RZM6cJZwxT+6PwWi9Mc0RTidhruHaL+X+FeFxQeD+kovy6PaV3+ZENXA FSRXhNDm8/bStD0PFFATAge6XT7mpqKvqKRhyWf8fDxwLWIP2fgb5w4xMXKZS71cQyTA b7LQ== X-Received: by 10.68.225.232 with SMTP id rn8mr24932930pbc.32.1383029542436; Mon, 28 Oct 2013 23:52:22 -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 b3sm32720250pbu.38.2013.10.28.23.52.19 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 28 Oct 2013 23:52:21 -0700 (PDT) Date: Mon, 28 Oct 2013 23:52:21 -0700 (PDT) Message-ID: <87bo287en9.wl%kuninori.morimoto.gx@renesas.com> To: "Koul, Vinod" Cc: Simon , Max Filippov , Magnus , linux-sh@vger.kernel.org, Kuninori Morimoto , linux-kernel@vger.kernel.org In-Reply-To: <87eh747eoj.wl%kuninori.morimoto.gx@renesas.com> References: <87k3hc189h.wl%kuninori.morimoto.gx@renesas.com> <87eh747eoj.wl%kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH 2/3] rcar-hpbdma: initialise plane information when halted 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.3 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 Plane information should be initialized when halted. It may restart from the wrong plane without this patch. Reviewed-by: Max Filippov Signed-off-by: Kuninori Morimoto --- drivers/dma/sh/rcar-hpbdma.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/dma/sh/rcar-hpbdma.c b/drivers/dma/sh/rcar-hpbdma.c index 496180a..19af32d 100644 --- a/drivers/dma/sh/rcar-hpbdma.c +++ b/drivers/dma/sh/rcar-hpbdma.c @@ -286,6 +286,9 @@ static void hpb_dmae_halt(struct shdma_chan *schan) ch_reg_write(chan, HPB_DMAE_DCMDR_DQEND, HPB_DMAE_DCMDR); ch_reg_write(chan, HPB_DMAE_DSTPR_DMSTP, HPB_DMAE_DSTPR); + + chan->plane_idx = 0; + chan->first_desc = true; } static const struct hpb_dmae_slave_config *