From patchwork Wed Aug 29 04:46:25 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tushar Behera X-Patchwork-Id: 11006 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id A796123EFF for ; Wed, 29 Aug 2012 04:48:58 +0000 (UTC) Received: from mail-iy0-f180.google.com (mail-iy0-f180.google.com [209.85.210.180]) by fiordland.canonical.com (Postfix) with ESMTP id 1B375A1914B for ; Wed, 29 Aug 2012 04:48:27 +0000 (UTC) Received: by mail-iy0-f180.google.com with SMTP id j25so317391iaf.11 for ; Tue, 28 Aug 2012 21:48:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=63E1BXrDm/35HTaR7R+TQjEa/qmuLLAmyXZ9R8FTnuI=; b=ohOInWaYRn64tpt9/bd30jLTl2HuYB4Wk5S5OJmmghFAF49vZPdPraBhbjx+DcYqBs mCG3I6FbOoJIcHozKRf9Htzr9anYNqnT3uBqG596YLrXgSd+WX2etFBF+WBCVdSekC2Y c1y1RmDj1mpENsg18NOA+IQmhncajzac/VbSeamvX0vPGPyxxcbDg0IYAlV/JNPbkvrz tX7Mah9a4iDQJfOkP2cvWriGKFaUTDx5ELr4PPYsvj07JX1ZL5cyoZLP2oF+spn9GH8e zK4ZkrhLwc3WUSXB1oIaDF8d2QGSBei5EqOBQHuRcjWwE9mJO180hCW/7/d9J8krUVuB X9zQ== Received: by 10.50.237.41 with SMTP id uz9mr282054igc.43.1346215738098; Tue, 28 Aug 2012 21:48:58 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.50.184.232 with SMTP id ex8csp63913igc; Tue, 28 Aug 2012 21:48:57 -0700 (PDT) Received: by 10.68.129.131 with SMTP id nw3mr1774717pbb.43.1346215737564; Tue, 28 Aug 2012 21:48:57 -0700 (PDT) Received: from mail-pb0-f50.google.com (mail-pb0-f50.google.com [209.85.160.50]) by mx.google.com with ESMTPS id kt9si40368533pbc.290.2012.08.28.21.48.57 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 28 Aug 2012 21:48:57 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.50 is neither permitted nor denied by best guess record for domain of tushar.behera@linaro.org) client-ip=209.85.160.50; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.160.50 is neither permitted nor denied by best guess record for domain of tushar.behera@linaro.org) smtp.mail=tushar.behera@linaro.org Received: by mail-pb0-f50.google.com with SMTP id md12so490457pbc.37 for ; Tue, 28 Aug 2012 21:48:57 -0700 (PDT) Received: by 10.66.72.130 with SMTP id d2mr724333pav.59.1346215737241; Tue, 28 Aug 2012 21:48:57 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id hr1sm18511018pbc.23.2012.08.28.21.48.54 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 28 Aug 2012 21:48:56 -0700 (PDT) From: Tushar Behera To: linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: vinod.koul@intel.com, kgene.kim@samsung.com, jaswinder.singh@linaro.org, patches@linaro.org Subject: [PATCH 2/2] DMA: PL330: Set the capability of pdm0 and pdm1 as DMA_PRIVATE Date: Wed, 29 Aug 2012 10:16:25 +0530 Message-Id: <1346215585-31023-3-git-send-email-tushar.behera@linaro.org> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1346215585-31023-1-git-send-email-tushar.behera@linaro.org> References: <1346215585-31023-1-git-send-email-tushar.behera@linaro.org> X-Gm-Message-State: ALoCoQkx3Vh3axN+SAzUSf8ZZMBOEGMKl5WeoUDRxk3bUoZky0M2bYvPQz1W95CLs1uqImg7nG6I DMA clients pdma0 and pdma1 are internal to the SoC and are used only by dedicated peripherals. Since they cannot be used for generic purpose, their capability should be set as DMA_PRIVATE. CC: Vinod Koul Signed-off-by: Tushar Behera --- drivers/dma/pl330.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/dma/pl330.c b/drivers/dma/pl330.c index e4feba6..600ea5e 100644 --- a/drivers/dma/pl330.c +++ b/drivers/dma/pl330.c @@ -2954,6 +2954,7 @@ pl330_probe(struct amba_device *adev, const struct amba_id *id) if (pi->pcfg.num_peri) { dma_cap_set(DMA_SLAVE, pd->cap_mask); dma_cap_set(DMA_CYCLIC, pd->cap_mask); + dma_cap_set(DMA_PRIVATE, pd->cap_mask); } }