From patchwork Sun Sep 20 19:11:02 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: hamzahfrq.sub@gmail.com X-Patchwork-Id: 7226601 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id EBEAEBF036 for ; Sun, 20 Sep 2015 19:11:25 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 30A9120673 for ; Sun, 20 Sep 2015 19:11:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 67387206BC for ; Sun, 20 Sep 2015 19:11:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755510AbbITTLT (ORCPT ); Sun, 20 Sep 2015 15:11:19 -0400 Received: from mail-wi0-f169.google.com ([209.85.212.169]:33595 "EHLO mail-wi0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755502AbbITTLT (ORCPT ); Sun, 20 Sep 2015 15:11:19 -0400 Received: by wiclk2 with SMTP id lk2so120397103wic.0; Sun, 20 Sep 2015 12:11:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=w7TWDQGssH6PgneaPNdRUoGDRHmITbOCY5P/YmyhRdQ=; b=tdxivi/Eh2Of/CEQWAdYFnal7gzF0cH8ae03b7KxyQtWnyC4zYA+dGtezt3mEkbmiQ aPWq2wru9FJJF/1D233eLmAkjt76NgfqFXpEK0RchW5Hi/eY8sQvS5mmi8WlPlAB6Xlm Oq2YiHGa5xjBCCiCXxgGz4BAn+i/3KtCFxzRnbJd2a+pyby9Q6nyiGTcorEHXd+gj21A AzSqS3zkKaXpBj5lvc62vIDeHqsKkEr8A1aBAOzckFJS5GBEZ3TqtIp8m/Z5n4xeGvYA 4+xSyNKp2PXI1Wu72985v+yEGN0FOYV3A3COo02s5ekb8cXigk2SYzTdxQs3/JYUgcNn TLYw== X-Received: by 10.180.221.193 with SMTP id qg1mr9039712wic.87.1442776277847; Sun, 20 Sep 2015 12:11:17 -0700 (PDT) Received: from ubuntu-VirtualBox.fritz.box (p4FDCDB66.dip0.t-ipconnect.de. [79.220.219.102]) by smtp.googlemail.com with ESMTPSA id fz1sm9644738wic.8.2015.09.20.12.11.16 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 20 Sep 2015 12:11:17 -0700 (PDT) From: hamzahfrq.sub@gmail.com To: laurent.pinchart@ideasonboard.com Cc: dmaengine@vger.kernel.org, j@bitron.ch, joe@perches.com, kuninori.morimoto.gx@renesas.com, broonie@kernel.org, geert+renesas@glider.be, vinod.koul@intel.com, linux-sh@vger.kernel.org, Muhammad Hamza Farooq Subject: [RESEND PATCH 6/6] dma: rcar-dma: Fixed active descriptor initializing Date: Sun, 20 Sep 2015 21:11:02 +0200 Message-Id: <1442776262-2503-7-git-send-email-hamzahfrq.sub@gmail.com> X-Mailer: git-send-email 1.7.9.5 Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, 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 From: Muhammad Hamza Farooq Running descriptor pointer is set to NULL upon freeing resources. Other- wise, rcar_dmac_issue_pending might not start new transfers Signed-off-by: Muhammad Hamza Farooq --- drivers/dma/sh/rcar-dmac.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/dma/sh/rcar-dmac.c b/drivers/dma/sh/rcar-dmac.c index d007351..39306c9 100644 --- a/drivers/dma/sh/rcar-dmac.c +++ b/drivers/dma/sh/rcar-dmac.c @@ -1042,6 +1042,7 @@ static void rcar_dmac_free_chan_resources(struct dma_chan *chan) list_splice_init(&rchan->desc.active, &list); list_splice_init(&rchan->desc.done, &list); list_splice_init(&rchan->desc.wait, &list); + rchan->desc.running = NULL; list_for_each_entry(desc, &list, node) rcar_dmac_realloc_hwdesc(rchan, desc, 0);