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: 1383641 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork1.kernel.org (Postfix) with ESMTP id A27B23FC33 for ; Wed, 29 Aug 2012 04:52:57 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1T6aDN-0006TH-F6; Wed, 29 Aug 2012 04:49:17 +0000 Received: from mail-pb0-f49.google.com ([209.85.160.49]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1T6aD3-0006S1-JS for linux-arm-kernel@lists.infradead.org; Wed, 29 Aug 2012 04:48:58 +0000 Received: by mail-pb0-f49.google.com with SMTP id rq8so451771pbb.36 for ; Tue, 28 Aug 2012 21:48:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=63E1BXrDm/35HTaR7R+TQjEa/qmuLLAmyXZ9R8FTnuI=; b=LqwTP45RtoLPxA9MPsHTQlvO5z1WyK0kOpcx+azDiw97zg+/uel6fYZlq2rWxRSi3d AZxQwvApg22I9GTvySY5OKjfB8tinE8oNfoMClvG3bADxJgSqmCG27tNvSuty+kfpoqz EU9u9K+P/jINH4TEsAbbvlxzzRpzLcYBCSVJzC88BUAy098jvEGvd4SQcEmEQcff/V7V P+ztsfx3cTIA6JAzp5c1z5YKaOuLrLnRcV/sFKeMq+D0BjLWaW7Q2CVSXxva4bugQIC+ omcJQ+2me/sCkcW/pCbvngTR01BC3bAIP7jjfuEyQZxtIDikc4UGLRvVxLRX2dwZTx2U iedQ== 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 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: ALoCoQlxCaFQ38e0HcRc6QO/DTbfw5rSnTFIGW4swBDd6WvaW+kaR0M1thIh2w2FSNyBNFc4AyDT X-Spam-Note: CRM114 invocation failed X-Spam-Score: -2.6 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.6 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.160.49 listed in list.dnswl.org] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: vinod.koul@intel.com, jaswinder.singh@linaro.org, kgene.kim@samsung.com, patches@linaro.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org 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); } }