Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp1730989ybm; Tue, 21 May 2019 20:30:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqyzbNjoSQEbpyNQ7vOxsTOBAx1yCGoLR6TIRrL6ttvDWhlCqDKxYm56ZT2qjf0G28GdanRG X-Received: by 2002:a63:a41:: with SMTP id z1mr85978717pgk.389.1558495823621; Tue, 21 May 2019 20:30:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558495823; cv=none; d=google.com; s=arc-20160816; b=LxdFaarW/QdftuiiGlg5HSUGCk/3P0NpFv9ofzIS9SHvmlzIN3HKLG3DyZBIEgnmxl duBT2scWLiu/xSEIfO9Ne6+pwPBARxPe9AtZyFk9LQHaY4Qar5C5yecAlQarCW3TqB4E rA9T4rLazG/uYn8ziz+NQJzTjV0P4s8Vj5xvs2rcIOvPaj81l5ydxPrvmQdJslt5AQQh zAygR6EJ+B7Rx2bZF36aZ2lgngfLhvNlDV/kffJmP51dY3XwLDL8M9mKEVbafItOrafM 0Z5Zv3RhgoTABDZJeMwxmk+QPtxGkls/ELBbHPsuvvM/mRk4h/VZtzwMmDXa9P9zXj0f MIVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=BXaUijpdDCYWXmpPYLEjuY657Q4nZazCPf4vzBaXGvY=; b=HpacBbhXydQ+G0xhi6USnqsskdPREAHrc0Iat0BCrYbHaEEFghTPDOFCO8kWBD93+1 +qa+61oaFav5aY8aQNudagdC3jUC8kruVVyYX/V9Znq2+uUUnR7hc0cfHtnh8+21RO8Z PAS90SSZC8RJUw0FZNRFpjVHljiND3NI4c7fJZWyjix14ReSqYgYNWM8iK2UUey2AylK kzDhEQuOM4WikEox4cnNXcxRaD5QVZbcQwUMlx57p3tGWG69NPf11shdOIG2iLhXeffR DJMDMgr58cTI2Qjr1bVAqAMUw1VQX1YwA678s+JAh5Yxr+bSidLaJvn1hNsDBk0NXdKn diZQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 204si9530535pga.373.2019.05.21.20.30.07; Tue, 21 May 2019 20:30:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728434AbfEVD3E (ORCPT + 99 others); Tue, 21 May 2019 23:29:04 -0400 Received: from inva021.nxp.com ([92.121.34.21]:45342 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727733AbfEVD3E (ORCPT ); Tue, 21 May 2019 23:29:04 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id C452F20002D; Wed, 22 May 2019 05:29:02 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 365F7200033; Wed, 22 May 2019 05:29:00 +0200 (CEST) Received: from titan.ap.freescale.net (TITAN.ap.freescale.net [10.192.208.233]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 8BAE1402E7; Wed, 22 May 2019 11:28:56 +0800 (SGT) From: Peng Ma To: vkoul@kernel.org, dan.j.williams@intel.com Cc: dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, Peng Ma Subject: [V3 2/2] dmaengine: fsl-qdma: Add improvement Date: Wed, 22 May 2019 03:21:03 +0000 Message-Id: <20190522032103.13713-2-peng.ma@nxp.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20190522032103.13713-1-peng.ma@nxp.com> References: <20190522032103.13713-1-peng.ma@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When an error occurs we should clean the error register then to return Signed-off-by: Peng Ma --- changed for V3: - no changed. drivers/dma/fsl-qdma.c | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/drivers/dma/fsl-qdma.c b/drivers/dma/fsl-qdma.c index da8fdf5..8e341c0 100644 --- a/drivers/dma/fsl-qdma.c +++ b/drivers/dma/fsl-qdma.c @@ -703,10 +703,8 @@ static irqreturn_t fsl_qdma_error_handler(int irq, void *dev_id) intr = qdma_readl(fsl_qdma, status + FSL_QDMA_DEDR); - if (intr) { + if (intr) dev_err(fsl_qdma->dma_dev.dev, "DMA transaction error!\n"); - return IRQ_NONE; - } qdma_writel(fsl_qdma, FSL_QDMA_DEDR_CLEAR, status + FSL_QDMA_DEDR); return IRQ_HANDLED; -- 1.7.1